[BioPython] Inverse codon table?

Sebastian Bassi sbassi at gmail.com
Tue Aug 14 17:38:01 UTC 2007


On 8/14/07, Peter <biopython at maubp.freeserve.co.uk> wrote:
> I'm not sure without a thorough check, but its fairly be trivial to
> build such a dictionary from the CodonTable.standard_dna_table like this:
...

Thnaks.
That is nicer than my hand made back trans dictionary:

tdict={"A":("GCT","GCC","GCA","GCG"),"R":("CGT","CGC","CGA","CGG","AGA","AGG"),\
       "N":("AAT","ACC"),"D":("GAT","GAC"),"C":("TGT","TGC"),"Q":("CAA","CAG"),\
       "E":("GAA","GAG"),"G":("GGT","GGC","GGA","GGG"),"H":("CAT","CAC"),\
       "I":("ATT","ATC","ATA"),"L":("TTA","TTG","CTT","CTC","CTA","CTG"),\
       "K":("AAA","AAG"),"M":("AUG"),"F":("TTT","TTC"),"P":\
       ("CCT","CCC","CCA","CCG"),"S":("TCT","TCC","TCA","TCG","AGT","AGC"),\
       "T":("ACT","ACC","ACA","ACG"),"W":("TGG"),"Y":("TAT","TAC"),\
       "V":("GTT","GTC","GTA","GTG")}

And yours is better since allows to construct a back dict using
another translation table.

Best,
SB.

-- 
Bioinformatics news: http://www.bioinformatica.info
Lriser: http://www.linspire.com/lraiser_success.php?serial=318



More information about the Biopython mailing list