Пример #1
0
 def test_preprocessSeq_5(self):
     '''Test preprocess_seq() on RNA alphabet'''
     seqrec = SeqRecord(Seq('GAUUACA', SingleLetterAlphabet()))
     target = ms.preprocess_seq(seqrec, IUPAC.IUPACUnambiguousRNA())
     expected = 'GAUUACA'
     self.assertEqual(str(target), expected)
Пример #2
0
 def test_preprocessSeq_6(self):
     '''Test preprocess_seq() on RNA alphabet'''
     seqrec = SeqRecord(Seq('KHIL', ContextualSecondaryStructure()))
     target = ms.preprocess_seq(seqrec, IUPAC.IUPACUnambiguousRNA())
     expected = 'KHIL'
     self.assertEqual(str(target), expected)
Пример #3
0
 def test_preprocessSeq_4(self):
     '''Test preprocess_seq() on DNA alphabet'''
     seqrec = SeqRecord(Seq('GATTACA', IUPAC.IUPACUnambiguousDNA()))
     target = ms.preprocess_seq(seqrec, IUPAC.IUPACUnambiguousDNA())
     expected = 'GATTACA'
     self.assertEqual(str(target), expected)