[BioPython] Translation method for Seq object

Michiel de Hoon mjldehoon at yahoo.com
Tue Oct 14 00:50:14 UTC 2008


> (a) Just use translate (ignore the existing string method)
> (b) Use translate_ (trailing underscore, see PEP8)
> (c) Use translation (a noun rather than verb; different
> style).
> (d) Use something else (e.g. bio_translate or ...)
> (e) Don't add a biological translation method at all
> because ...


(a).
Note also that once Seq objects inherit from string, the Python .translate method is still accessible as str.translate(seq).

--Michiel.



      



More information about the Biopython mailing list