def test_blast(self):
     result = classify_consensus_blast(self.reads, self.reads,
                                       self.taxonomy)
     res = result.Taxon.to_dict()
     tax = self.taxonomy.to_dict()
     right = 0.
     for taxon in res:
         right += tax[taxon].startswith(res[taxon])
     self.assertGreater(right / len(res), 0.5)
 def test_blast(self):
     result = classify_consensus_blast(self.reads, self.reads,
                                       self.taxonomy)
     res = result.Taxon.to_dict()
     tax = self.taxonomy.to_dict()
     right = 0.
     for taxon in res:
         right += tax[taxon].startswith(res[taxon])
     self.assertGreater(right/len(res), 0.5)