예제 #1
0
 def test_addSeqsToAlignment(self):
     """Clustalw addSeqsToAlignment shoudl work as expected"""
     res = addSeqsToAlignment('/tmp/ct/align1','/tmp/ct/seq2.txt',\
         'alignseqs')
     self.assertEqual(cw_vers.sub("", res['Align'].read()),
                         cw_vers.sub("", self.alignseqs))
     self.assertEqual(res['Dendro'].read(),self.treeduringalignseqs)
     res.cleanUp()
예제 #2
0
 def test_buildTreeFromAlignment(self):
     """Clustalw buildTreeFromAlignment shoudl work as expected"""
     pre_res = addSeqsToAlignment('/tmp/ct/align1','/tmp/ct/seq2.txt',\
         'alignseqs',WorkingDir='/tmp/ct')
     res = buildTreeFromAlignment('/tmp/ct/alignseqs',WorkingDir='/tmp/ct')
     self.assertEqual(res['Tree'].read(),self.treefromalignseqs)
     
     res.cleanUp()
     pre_res.cleanUp()