[BioPython] Inverse codon table?

Philipp Pagel p.pagel at gsf.de
Tue Aug 14 18:08:18 UTC 2007


	Hi!

> I need a table that I coulld enter "M" and get the all triples that
> translate into "M". Is this available in Biopyhon?

Hm - I'm not sure but it's easy enough to make one yourself:

>>> foo = {}
>>> for codon, AA in t.forward_table.items():
...     if AA not in foo:
...             foo[AA] = []
...     foo[AA].append(codon)
...
>>> foo['L']
['CTT', 'CTG', 'CTA', 'CTC', 'TTA', 'TTG']
>>> foo['V']
['GTA', 'GTC', 'GTG', 'GTT']

cu
	Philipp

-- 
Dr. Philipp Pagel                              Tel.  +49-8161-71 2131
Lehrstuhl für Genomorientierte Bioinformatik   Fax.  +49-8161-71 2186
Technische Universität München
Wissenschaftszentrum Weihenstephan
85350 Freising, Germany

 and

Institut für Bioinformatik / MIPS
GSF - Forschungszentrum für Umwelt und Gesundheit
Ingolstädter Landstrasse 1
85764 Neuherberg, Germany
http://mips.gsf.de/staff/pagel




More information about the Biopython mailing list