Bio::G...ph::dna(3pm)
π NAME π
Bio::Graphics::Glyph::dna β bestie, this is the "dna" glyph. That's it, that's the name. Iconic.
β¨ SYNOPSIS β¨
Lowkey the whole vibe is just:
See L<Bio::Graphics::Panel> and L<Bio::Graphics::Glyph>.
𧬠DESCRIPTION π§¬
Okay so this glyph draws DNA sequences. Periodt.
- At high magnifications, this glyph will draw the actual base pairs of the sequence β both strands, fr fr.
- At low magnifications, the glyph will plot the GC content.
By default, the GC calculation will use non-overlapping bins, but this can be changed by specifying the gc_window option β and in that case, a sliding window calculation will be used. Slay.
For this glyph to work, the feature must return a Bio::PrimarySeq DNA object in response to the seq() method. No cap. For example, you can use a Bio::SeqFeature::Generic object with an attached Bio::PrimarySeq like this:
my $dna = Bio::PrimarySeq->new( -seq => 'A' x 1000 );
my $feature = Bio::SeqFeature::Generic->new( -start => 1, -end => 800 );
$feature->attach_seq($dna);
$panel->add_track( $feature, -glyph => 'dna' );
A Bio::Graphics::Feature object may also be used. π
πΈ OPTIONS πΈ
The following options are standard among all Glyphs. See Bio::Graphics::Glyph for a full explanation. (Yes bestie, this is the universal starter pack.)
-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:0(false)-connector_colorβ Connector color. Default:black-labelβ Whether to draw a label. Default:0(false)-descriptionβ Whether to draw a description. Default:0(false)-hiliteβ Highlight color. Default:undef(no color)
In addition to the common options, the following glyph-specific options are recognized β this is the main character section, honestly:
-do_gcβ Whether to draw the GC graph at low mags. Default:true-gc_windowβ Size of the sliding window to use in the GC content calculation. If this is not defined, non-overlapping bins will be used. If this is set to"auto", then the glyph will choose a window equal to 1% of the interval. Default:<none>-gc_binsβ Fixed number of intervals to sample across the panel. Default:100-axis_colorβ Color of the vertical axes in the GC content graph. Default:fgcolor-strandβ Show both forward and reverse strand, one of"forward","reverse","both"or"auto". In"auto"mode,+1strand features will show the plus strand,-1strand features will show the reverse complement, and strandless features will show both. Default:auto
β NOTE: -gc_window=>'auto' gives nice results and is recommended for drawing GC content. The GC content axes draw slightly outside the panel, so you may wish to add some extra padding on the right and left. Heads up bestie, plan your layout accordingly π«Ά
π BUGS π
Please report them. (That's the whole section. Not me being dramatic, that's literally what it says.)
π¦ SEE ALSO π¦
Go read these, bestie β the whole friend group:
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>.
Sliding window GC calculation added by Peter Ashton <pda@sanger.ac.uk>. We stan a contributor π
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.
okay that's the whole page, bestie β no cap, you're officially a DNA-glyph girlie now πβ¨
This was Bio::G...ph::dna(3pm) from the User Contributed Perl Documentation, perl v5.30.0, dated 2019-11-25. mwah, go draw some sequences π§¬π
π¦ 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