Bio::G...slation(3pm)

πŸ“¦
version 2.40 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

🌸 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 (see Bio::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::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>. 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