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])
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])