Bio::Graphics::Glyph::translation3pm
The "6-frame translation" glyph
Usage
See L<Bio::Graphics::Panel> and L<Bio::Graphics::Glyph>.
Overview
This glyph draws the conceptual translation of DNA sequences. At high magnifications, it simply draws lines indicating open reading frames. At low magnifications, it draws a conceptual protein translation. Options can be used to set 1-frame, 3-frame or 6-frame translations.
Options
The following options are standard among all Glyphs. See Bio::Graphics::Glyph for a full explanation.
Option Description Default------ ----------- --------fgcolor Foreground color black-outlinecolor Synonym for -fgcolor-bgcolor Background color turquoise-fillcolor Synonym for -bgcolor-linewidth Line width 1-height Height of glyph 10-font Glyph font gdSmallFont-connector Connector type 0 (false)-connector_colorConnector color black-label Whether to draw a label 0 (false)-description Whether to draw a description 0 (false)-hilite Highlight color undef (no color)
In addition to the common options, the following glyph-specific options are recognized:
Option Description Default------ ----------- --------translation Type of translation to 1frameperform. One of "1frame","3frame", or "6frame"-strand Forward (+1) or reverse (-1) +1translation.-frame0 Color for the first frame fgcolor-frame1 Color for the second frame fgcolor-frame2 Color for the third frame fgcolor-gridcolor Color for the horizontal lightgreylines of the reading frames-start_codons Draw little arrowheads 0 (false)indicating start codons-stop_codons Draw little vertical ticks 1 (true)indicating stop codons-arrow_height Height of the start codon 1arrowheads-show_sequence Show the amino acid sequence 1 (true)if there's room.-triletter_code Show the 3-letter amino acid 0 (false)code if there's room-codontable Codon table to use 1 (see Bio::Tools::CodonTable)
Suggested stanza for genome browser
This produces a nice gbrowse display in which the DNA/GC Content glyph is sandwiched between the forward and reverse three-frame translations. The frames are color-coordinated with the example configuration for the "cds" glyph.
[TranslationF]glyph = translationglobal feature = 1frame0 = cadetblueframe1 = blueframe2 = darkblueheight = 20fgcolor = purplestrand = +1translation = 3framekey = 3-frame translation (forward)[DNA/GC Content]glyph = dnaglobal feature = 1height = 40do_gc = 1fgcolor = redaxis_color = blue[TranslationR]glyph = translationglobal feature = 1frame0 = darkredframe1 = redframe2 = crimsonheight = 20fgcolor = bluestrand = -1translation = 3framekey = 3-frame translation (reverse)
Releases
9 releases since Debian 5.0 (Lenny); the text changed 6 times.