Bio::G...w_gene(3pm)

πŸ“¦
version 2.40 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

✨ Bio::Graphics::Glyph::gene ✨

okay so bestie, welcome to the manual page for Bio::Graphics::Glyph::gene (she's a 3pm Perl doc, one of the User Contributed ones, and yes her full name is Bio::Graphics::Glyph::gene(3pm) β€” the header up top just truncates her bc she's long πŸ’…).


🌸 NAME 🌸

Bio::Graphics::Glyph::gene β€” a GFF3-compatible gene glyph 🧬✨


πŸŽ€ SYNOPSIS πŸŽ€

See L<Bio::Graphics::Panel> and L<Bio::Graphics::Glyph>.

πŸ¦‹ DESCRIPTION πŸ¦‹

So this glyph is the one you call when you're drawing genes that might have alternatively-spliced transcripts. The different isoforms get stacked on top of each other, and the whole stack shares one single label and one single description. Each individual transcript's name can optionally be printed to the left of the transcript glyph, if you want. 🫢

The transcripts (aka splice isoforms) are drawn using the processed_transcript glyph. CDS features get drawn in the background color, and the UTRs get drawn in an alternate color that you pick with the utr_color option. Bonus: you can make the UTRs thinner than the CDS by setting the "thin_utr" option. Obsessed. 😌

This glyph is literally designed to work properly with GFF3-style three-tier genes, where:

  • the top level feature has the Sequence Ontology type of "gene"
  • the second level feature(s) have the SO type "mRNA"
  • the third level feature(s) have the SO type "CDS", "five_prime_utr" and "three_prime_utr"

Subparts named "UTR" are also honored πŸ’–. The feature can contain other subparts too (like exon, intron, translation), but rn they're currently ignored unless you supply the sub_part option. And if you do use the sub_part option, that feature type gets used and the CDS and UTR features get excluded. So like, you could use that to say "actually use exons instead" β€” that's the whole vibe. 🎯

Also! This glyph is a subclass of processed_transcript, and it recognizes the same options. Slay.


✨ OPTIONS ✨

The following options are standard among all Glyphs. For a full explanation, go see Bio::Graphics::Glyph. πŸ‘‘

  • -fgcolor β€” foreground color. Default: black
  • -outlinecolor β€” synonym for -fgcolor
  • -bgcolor β€” background color. Default: turquoise
  • -fillcolor β€” synonym for -bgcolor
  • -linewidth β€” line width. Default: 1
  • -height β€” height of glyph. Default: 10
  • -font β€” glyph font. Default: gdSmallFont
  • -connector β€” connector type. Default: undef (false)
  • -connector_color β€” connector color. Default: black
  • -label β€” whether to draw a label. Default: undef (false)
  • -description β€” whether to draw a description. Default: undef (false)
  • -strand_arrow β€” whether to indicate strandedness. Default: undef (false)
  • -hilite β€” highlight color. Default: undef (no color)

In addition, the gene glyph recognizes these glyph-specific options πŸ’…:

  • -label_transcripts β€” flag. If true, then the display name of each transcript will be drawn to the left of the transcript glyph. Default: undef (false)
  • -thin_utr β€” flag. If true, UTRs will be drawn at 2/3 of the height of CDS segments. Default: undef (false)
  • -utr_color β€” color of UTR segments. Default: Gray #D0D0D0
  • -decorate_introns β€” draw strand with little arrows on the intron. Default: undef (false)
⚠️ heads up bestie: the -adjust_exons and -implied_utrs options are inherited from processed_transcript, but they are quietly ignored here. If you want that type of processing, please use the processed_transcript glyph itself. no cap.

πŸ’€ BUGS πŸ’€

The SO terms are hard-coded 😭. They should be more flexible and should recognize ISA relationships.


🌈 SEE ALSO 🌈

Bio::Graphics::Panel, Bio::Graphics::Glyph, Bio::Graphics::Glyph::arrow, Bio::Graphics::Glyph::cds, Bio::Graphics::Glyph::crossbox, Bio::Graphics::Glyph::diamond, Bio::Graphics::Glyph::dna, Bio::Graphics::Glyph::dot, Bio::Graphics::Glyph::ellipse, Bio::Graphics::Glyph::extending_arrow, Bio::Graphics::Glyph::generic, Bio::Graphics::Glyph::graded_segments, Bio::Graphics::Glyph::heterogeneous_segments, Bio::Graphics::Glyph::line, Bio::Graphics::Glyph::pinsertion, Bio::Graphics::Glyph::primers, Bio::Graphics::Glyph::rndrect, Bio::Graphics::Glyph::segments, Bio::Graphics::Glyph::ruler_arrow, Bio::Graphics::Glyph::toomany, Bio::Graphics::Glyph::transcript, Bio::Graphics::Glyph::transcript2, Bio::Graphics::Glyph::translation, Bio::Graphics::Glyph::triangle, Bio::DB::GFF, Bio::SeqI, Bio::SeqFeatureI, Bio::Das, GD


πŸ‘‘ AUTHOR πŸ‘‘

Lincoln Stein <lstein@cshl.org>

Copyright (c) 2001 Cold Spring Harbor Laboratory

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See DISCLAIMER.txt for disclaimers of warranty.


and that's the whole page, bestie 🫢 this one's perl v5.30.0, dated 2019-11-25, and it lives under the manual name Bio::G...w_gene(3pm) (yes the name got cut off, she's just that iconic πŸ’…βœ¨). mwah, go draw some genes πŸ§¬πŸ’–

πŸ“¦ where this page comes from