Bio::G...slation(3pm)
πΈ NAME πΈ
Bio::Graphics::Glyph::translation β ok so this is the "6-frame translation" glyph π that's literally the whole name, periodt. It's part of the User Contributed Perl Documentation situation (perl v5.30.0, if anyone's keeping track π«Ά).
π SYNOPSIS π
Like, go read these first, bestie:
See L<Bio::Graphics::Panel> and L<Bio::Graphics::Glyph>.
β¨ DESCRIPTION β¨
Okay so what does this glyph do? It draws the conceptual translation of DNA sequences. That's it. That's the job. π
And the way it switches it up depending on zoom? Iconic behaviour, honestly:
- At high magnifications, it simply draws lines indicating open reading frames.
- At low magnifications, it draws a conceptual protein translation.
And you can use options to set a 1-frame, 3-frame or 6-frame translation. Pick your fighter. π
π OPTIONS π
The following options are standard among all Glyphs. See Bio::Graphics::Glyph for a full explanation. (Yes bestie, every glyph shares these, it's giving family resemblance.)
-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 (these are the ones that are, like, hers π ):
-translationβ Type of translation to perform. One of"1frame","3frame", or"6frame". Default:1frame-strandβ Forward (+1) or reverse (-1) translation. Default:+1-frame0β Color for the first frame. Default:fgcolor-frame1β Color for the second frame. Default:fgcolor-frame2β Color for the third frame. Default:fgcolor-gridcolorβ Color for the horizontal lines of the reading frames. Default:lightgrey-start_codonsβ Draw little arrowheads indicating start codons. Default:0(false)-stop_codonsβ Draw little vertical ticks indicating stop codons. Default:1(true)-arrow_heightβ Height of the start codon arrowheads. Default:1-show_sequenceβ Show the amino acid sequence if there's room. Default:1(true)-triletter_codeβ Show the 3-letter amino acid code if there's room. Default:0(false)-codontableβ Codon table to use. Default:1(seeBio::Tools::CodonTable)
π¦ SUGGESTED STANZA FOR GENOME BROWSER π¦
Okay so this next bit? This produces a nice gbrowse display in which the DNA/GC Content glyph is sandwiched between the forward and reverse three-frame translations. Sandwich. Like a little protein panini π₯ͺβ¨
The frames are color-coordinated with the example configuration for the "cds" glyph. Ate.
[TranslationF]
glyph = translation
global feature = 1
frame0 = cadetblue
frame1 = blue
frame2 = darkblue
height = 20
fgcolor = purple
strand = +1
translation = 3frame
key = 3-frame translation (forward)
[DNA/GC Content]
glyph = dna
global feature = 1
height = 40
do_gc = 1
fgcolor = red
axis_color = blue
[TranslationR]
glyph = translation
global feature = 1
frame0 = darkred
frame1 = red
frame2 = crimson
height = 20
fgcolor = blue
strand = -1
translation = 3frame
key = 3-frame translation (reverse)
π BUGS π
Please report them. (That's it. That's the whole section. Not me being dramatic, that's literally all it says π go report your bugs bestie, they want them.)
π SEE ALSO π
Bio::Graphics::PanelBio::Graphics::GlyphBio::Graphics::Glyph::arrowBio::Graphics::Glyph::cdsBio::Graphics::Glyph::crossboxBio::Graphics::Glyph::diamondBio::Graphics::Glyph::dnaBio::Graphics::Glyph::dotBio::Graphics::Glyph::ellipseBio::Graphics::Glyph::extending_arrowBio::Graphics::Glyph::genericBio::Graphics::Glyph::graded_segmentsBio::Graphics::Glyph::heterogeneous_segmentsBio::Graphics::Glyph::lineBio::Graphics::Glyph::pinsertionBio::Graphics::Glyph::primersBio::Graphics::Glyph::rndrectBio::Graphics::Glyph::segmentsBio::Graphics::Glyph::ruler_arrowBio::Graphics::Glyph::toomanyBio::Graphics::Glyph::transcriptBio::Graphics::Glyph::transcript2Bio::Graphics::Glyph::translationBio::Graphics::Glyph::triangleBio::DB::GFFBio::SeqIBio::SeqFeatureIBio::DasGD
π«Ά AUTHOR π«Ά
Lincoln Stein <lstein@cshl.org>. Legend behaviour, fr fr. π
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, you're fully caught up π the manual name up top was Bio::G...slation(3pm) β truncated by the docs themselves, not by me, I would never π β and this whole thing was served up by perl v5.30.0, dated 2019-11-25. Go draw some translations. Slay. β¨π
π¦ 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