コード例 #1
0
 def test_cmsearch_from_file(self):
     """cmsearch_from_file should work as expected
     """
     exp_search_res = [['a', 5, 23, 1, 19, 12.85, '-', 37],\
                       ['b', 1, 19, 1, 19, 14.359999999999999, '-', 47]]
     search_res = cmsearch_from_file(cm_file_path=self.cmfile,\
         seqs=self.seqs2_unaligned,moltype=RNA)
     for search, exp in zip(search_res, exp_search_res):
         self.assertEqual(search[1:],exp)
コード例 #2
0
 def test_cmsearch_from_file_no_hits(self):
     """cmsearch_from_file should work as expected
     """
     search_res = cmsearch_from_file(cm_file_path=self.cmfile,\
         seqs=self.seqs1_unaligned,moltype=RNA)
     self.assertEqual(search_res,[])