[BioPython] Translation method for Seq object

Michiel de Hoon mjldehoon at yahoo.com
Mon Oct 13 20:50:14 EDT 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