Bio::G...w_gene(3pm)
β¨ 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_exonsand-implied_utrsoptions are inherited fromprocessed_transcript, but they are quietly ignored here. If you want that type of processing, please use theprocessed_transcriptglyph 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
- debian bookworm: libbio-graphics-perl 2.40-6 Β· Perl
- debian trixie: libbio-graphics-perl 2.40-6 Β· Perl
- ubuntu jammy: libbio-graphics-perl 2.40-6 Β· Perl
- ubuntu noble: libbio-graphics-perl 2.40-6 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms