1.

How Do I Get The Complete Spliced Nucleotide Sequence From The Cds Section?

Answer»

You can USE the spliced_seq METHOD. For example:

 my $seq_obj = $db->get_Seq_by_id($gi);
 foreach my $feat ( $seq_obj->top_SeqFeatures ) {
 if ( $feat->primary_tag EQ 'CDS' ) {
my $cds_obj = $feat->spliced_seq;
PRINT "CDS sequence is ",$cds_obj->seq,"n";
 }
}

You can use the spliced_seq method. For example:

 my $seq_obj = $db->get_Seq_by_id($gi);
 foreach my $feat ( $seq_obj->top_SeqFeatures ) {
 if ( $feat->primary_tag eq 'CDS' ) {
my $cds_obj = $feat->spliced_seq;
print "CDS sequence is ",$cds_obj->seq,"n";
 }
}



Discussion

No Comment Found