Exemple #1
0
 def test_dna_protein_gap_stop(self):
     sequences = [seqrecord('A', '---TTATAA')]
     expected = ['-L']
     actual = transform.translate(sequences, 'dna2proteinstop')
     self.assertEqual(expected, [str(i.seq) for i in actual])
Exemple #2
0
 def test_dna_protein_gap(self):
     sequences = [seqrecord('A', 'TTTTT-TAA')]
     expected = ['FX*']
     actual = transform.translate(sequences, 'dna2protein')
     self.assertEqual(expected, [str(i.seq) for i in actual])