def test_shortcuts(self): protein('gGGGGG-PPPPP') dna('ACGTRYSWKMBDHVN') dna('t') dna('actgta') dna('acgtrysw-kmb-dhvn') rna('ACUUUUU')
def test_shortcuts(self): protein("gGGGGG-PPPPP") dna("ACGTRYSWKMBDHVN") dna("t") dna("actgta") dna("acgtrysw-kmb-dhvn") rna("ACUUUUU")
def test_reverse_complement(self): s = dna('GGGGaaaaaaaatttatatat') rc = s.reverse_complement() self.assertEqual(rc, dna('atatataaattttttttCCCC')) self.assertEqual( dna('ACGTRYSWKMBDHVN').reverse_complement(), dna('NBDHVKMWSRYACGT')) self.assertRaises(ValueError, protein('G').reverse_complement)
def test_reverse_complement(self): s = dna("GGGGaaaaaaaatttatatat") rc = s.reverse_complement() self.assertEqual(rc, dna("atatataaattttttttCCCC")) self.assertEqual( dna("ACGTRYSWKMBDHVN").reverse_complement(), dna("NBDHVKMWSRYACGT")) self.assertRaises(ValueError, protein("G").reverse_complement)