Example #1
0
 def back_translate(self) :
     """Translate a protein sequence back into coding DNA, using using the
     standard genetic code. See corebio.transform.GeneticCode for
     details and more options.
     """
     from transform import GeneticCode
     return GeneticCode.std().back_translate(self)
Example #2
0
 def translate(self) :
     """Translate a nucleotide sequence to a polypeptide using full
     IUPAC ambiguities in DNA/RNA and amino acid codes, using the
     standard genetic code. See corebio.transform.GeneticCode for
     details and more options.
     """
     # Note: masks str.translate
     from transform import GeneticCode
     return GeneticCode.std().translate(self)