Beispiel #1
0
 def test_blast_wrong_input(self):
     for i in self.neg_fp:
         for aligner in ['blastp', 'blastx']:
             with self.assertRaisesRegex(
                     ApplicationError,
                     r'(Error reading file)|(Invalid input file format)'):
                 search_protein_homologs(
                     i, self.db, self.temp_dir, aligner)
Beispiel #2
0
 def test_blast(self):
     for aligner, query, exp in self.blast:
         res = search_protein_homologs(
             query, self.db, self.temp_dir, aligner)
         with open(res) as o, open(exp) as e:
             self.assertEqual(o.read(), e.read())