Bio::G...generic(3pm)
π Bio::G...generic β the "generic" glyph π
okay bestie, pull up a chair, because this is the User Contributed Perl Documentation page for Bio::Graphics::Glyph::generic, and honestly? she's the blueprint. the default. the moment. periodt.
β¨ NAME β¨
Bio::Graphics::Glyph::generic β The "generic" glyph π
π SYNOPSIS π
See L<Bio::Graphics::Panel> and L<Bio::Graphics::Glyph>.
that's it, that's the synopsis, go read your faves π
π¦ DESCRIPTION π¦
So basically this glyph is identical to the "box" glyph, with one iconic little twist: it will draw the subparts of features that contain subfeatures. π―ββοΈ
But β and hear me out β the subparts are not connected. like, no lines linking them, no bridge, nothing. if that's the energy you want, go use the "segments" glyph instead, she does the connecting. π
and the tea? "Generic" is the default glyph used when not otherwise specified. no cap. she's the fallback, the understudy who's actually the main character. π
πΈ METHODS πΈ
okay so this module overrides the maxdepth() method so it returns 0 unless the -maxdepth option is provided explicitly. π
this is a big deal, bestie: it means any module that inherits fromgenericwill need to overridemaxdepth()again in order to draw subfeatures. so in general, if you're implementing multi-segmented feature glyphs, you should inherit fromBio::Graphics::Glyph::segmentsinstead β that one allows for one level of descent. π
in addition, the following new methods are implemented:
labelfont(),descfont(),labelwidth(),descriptionwidth()β return the font, width for the label or description. ποΈlabel()β return the glyph label text (printed above the glyph). β¬οΈdescription()β return the glyph description text (printed below the glyph). β¬οΈdraw_translation()β draw the protein translation of the feature (assumes that the feature is attached to a DNA sequence). π§¬draw_sequence()β draw the sequence of the feature (either DNA or protein). π§ͺ
π OPTIONS π
the following options are standard among all Glyphs. see Bio::Graphics::Glyph for a full explanation. iykyk β¨
-fgcolorβ Foreground color. default:blackπ€-bgcolorβ Background color. default:turquoiseπ-fillcolorβ Synonym for-bgcolor. (yes girl, same thing, two names, we love an alias) πͺ-linewidthβ Line width. default:1π-heightβ Height of glyph. default:10π-fontβ Default font. default:gdSmallFontπ€-label_fontβ Font used for label. default:gdSmallFontπ·οΈ-desc_fontβ Font used for description. default:gdSmallFontπ-connectorβ Connector type. default:0 (false)π-connector_colorβ Connector color. default:blackπ€-pad_topβ Top padding. default:0β¬οΈ-pad_bottomβ Bottom padding. default:0β¬οΈ-labelβ Whether to draw a label. default:0 (false)π·οΈ-label_positionβ Where to draw the label. default:"top" (default) or "left"π§-descriptionβ Whether to draw a description. default:0 (false)π-strand_arrowβ Whether to indicate strandedness. default:0 (false)β‘οΈ-hiliteβ Highlight color. default:undef (no color)ποΈ-draw_dnaβ If true, draw the dna residues when magnification level allows. default:0 (false)π§¬-canonical_strandβ If true, draw the dna residues as they appear on the plus strand even if the feature is on the minus strand. default:0 (false)β
-pad_top and -pad_bottom allow you to insert some blank space between the glyph's boundary and its contents. this is useful if you are changing the glyph's height dynamically based on its feature's score. π (padding = self-care for your glyphs, fr fr π«Ά)
π BUGS π
Please report them.
that's the whole section. yes really. please report them. we are begging. π
π SEE ALSO π
go off, read the whole squad:
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::Graphics::Glyph::xyplot, Bio::DB::GFF, Bio::SeqI, Bio::SeqFeatureI, Bio::Das, GD β¨
π AUTHOR π
Allen Day <day@cshl.org>, Lincoln Stein <lincoln.stein@gmail.com> β icons, legends, the moment. π«Ά
Copyright (c) 2001 Cold Spring Harbor Laboratory Copyright (c) 2010 Ontario Institute for Cancer Research
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 beauty shipped with perl v5.30.0, dated 2019-11-25, and it lives under User Contributed Perl Documentation. slay, stay generic, and remember: no subparts were connected in the making of this glyph. πβ¨ππ¦
π¦ 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