This glyph is used for drawing transcripts. It is like "transcript2"
except that if the underlying feature is an Ace::Sequence object, the
description is derived from some wormbase-specific fields, including
info(), brief_identification() and locus(). Otherwise, the
description is obtained from the notes() field.
In addition, this glyph can show different bgcolors depending on the
direction of transcription.
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_color
Connector color black
-label Whether to draw a label 0 (false)
-description Whether to draw a description 0 (false)
-strand_arrow Whether to indicate 0 (false)
strandedness
In addition, the alignment glyph recognizes the following
glyph-specific options:
Option Description Default
------ ----------- -------
-forwardcolor Bgcolor for forward Same as -bgcolor.
transcripts
-reversecolor Bgcolor for reverse Same as -bgcolor.
transcripts
None available.
sub bgcolor
{ my $self = shift;
my $feature = $self->feature;
if ($feature->strand >= 0) {
return $self->color('forwardcolor');
} else {
return $self->color('reversecolor');
}} |
sub get_description
{ my $self = shift;
my $feature = shift;
if ($feature->isa('Ace::Sequence::Transcript')) {
return eval {
my $t = $feature->info;
my $id = $t->Brief_identification;
my $comment = $t->Locus;
$comment .= $comment ? " ($id)" : $id if $id;
$comment;
};
} else {
return join '; ',eval { $feature->notes };
} } |
Please report them.