Package Bio :: Module Translate
[hide private]
[frames] | no frames]

Module Translate

source code

Code to translate DNA or RNA into proteins (DEPRECATED).

Instead of Bio.Translate, for translation you are now encouraged to use the Seq object's translate method, or the translate function in the Bio.Seq module. Translate-to-stop functionality is via an optional argument.

Bio.Seq does not offer any back-translation function like the one here. It was concluded that a since a simple back-translation giving a Seq or python string could only capture some of the possible back translations, there were no practical uses for such a method/function.

This module is now deprecated, and will be removed in a future release of Biopython.

Classes [hide private]
  Translator
Variables [hide private]
  unambiguous_dna_by_name = {}
  unambiguous_dna_by_id = {}
  unambiguous_rna_by_name = {}
  unambiguous_rna_by_id = {}
  ambiguous_dna_by_name = {}
  ambiguous_dna_by_id = {}
  ambiguous_rna_by_name = {}
  ambiguous_rna_by_id = {}
  __package__ = 'Bio'
  __warningregistry__ = {('Bio.Translate and Bio.Transcribe are ...
  key = 23
  value = <Bio.Data.CodonTable.AmbiguousCodonTable instance at 0...
Variables Details [hide private]

__warningregistry__

Value:
{('Bio.Translate and Bio.Transcribe are deprecated, and will be remove\
d in a future release of Biopython. Please use the functions or object\
 methods defined in Bio.Seq instead (described in the tutorial). If yo\
u want to continue to use this code, please get in contact with the Bi\
opython developers via the mailing lists to avoid its permanent remova\
l from Biopython.',
  <class 'Bio.BiopythonDeprecationWarning'>,
  24): True}

value

Value:
<Bio.Data.CodonTable.AmbiguousCodonTable instance at 0x974440>