Exemplo n.º 1
0
 def test_cmsearch_from_alignment_no_hits(self):
     """cmsearch_from_alignment should work as expected
     """
     search_res = cmsearch_from_alignment(aln=self.seqs2_aligned,\
         structure_string=self.struct2_aligned_string,\
         seqs=self.seqs1_unaligned,moltype=RNA)
     self.assertEqual(search_res,[])
Exemplo n.º 2
0
 def test_cmsearch_from_alignment(self):
     """cmsearch_from_alignment 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_alignment(aln=self.seqs2_aligned,\
         structure_string=self.struct2_aligned_string,\
         seqs=self.seqs2_unaligned,moltype=RNA)
     for search, exp in zip(search_res, exp_search_res):
         self.assertEqual(search[1:],exp)