Beispiel #1
0
    def test_back_translate(self):
        prot = "ACDEFGHIKLMNPQRSTVWY*"
        t = GeneticCode.std()
        t.table["CGA"]
        s = t.back_translate(prot)
        self.assertEqual(prot, str(t.translate(s)))

        GeneticCode.std().back_table
Beispiel #2
0
    def test_translate_std(self):
        dna = "GCCATTGTAATGGGCCGCTGAAAGGGTGCCCGA"
        t = GeneticCode.std()
        s = t.translate(dna)
        self.assertEqual(str(s), "AIVMGR*KGAR")

        for t in GeneticCode.std_list():
            t.translate(dna)