[Bioperl-l] About reverse translation using CodonUsage table ?

Richard Adams Richard.Adams at ed.ac.uk
Fri Sep 24 06:10:12 EDT 2004


Hi Jian,
I've added a new method in the CVS to Bio::Tools::CodonTable.
To get a reverse translation of a protein sequence in IUPAC nucleotide 
sequence

my $cttable = Bio::Tools::CodonTable->new(-id=>1);
my $str       = "DFGTRF" ;
my $seq      =  Bio::Seq->new(-seq=>$str);
my $iu        =  $cttable->reverse_translate_all($seq); ##takes a 
sequence object as argument)
print $iu;

HTH,
Richard

-- 
Dr Richard Adams
Psychiatric Genetics Group,
Medical Genetics,
Molecular Medicine Centre,
Western General Hospital,
Crewe Rd West,
Edinburgh UK
EH4 2XU

Tel: 44 131 651 1084
richard.adams at ed.ac.uk




More information about the Bioperl-l mailing list