Christine Hoogland | 18 Mar 07:15 2014

Bio::Graphics::Glyph::translation how to show the correct sequences


I'm trying to display the frame translation sequences into images built 
with Bio::Graphics showing exons, introns, CDS... like the example shown 
in figure 13a and 13b on this page:

Currently sequences shown are always the same, whatever the CDS (see 
image attached), although sequences printed in the console for debugging 
are fine.

my  <at> CDS = sort {$a->start <=> $b->start} $mRNA->CDS;
my $cdsft=Bio::Graphics::Feature->new();
for my $cds ( <at> CDS) {
				-start=> $cds->start,
				-end  => $cds->end,
				-seq  => Bio::Seq->new(-seq=> $cds->dna, -alphabet => 'dna'),
				-strand => $cds->strand,
				-phase => $cds->phase


             -glyph      => 'translation',
	    -show_sequence => 'true',
             -key        => 'Sequence',
	    -height   => 64,
	    -bump     => +1,
	    -translation => '3frame',
	    -label    => 1,
	    -description    => 1,

Is anybody able to see what's wrong with this code?

Thanks a lot!
Bioperl-l mailing list
Bioperl-l <at>