예제 #1
0
 def test_scores_article(self):
     """ Test the scores function. """
     obio = OboIO()
     terms = obio.get_graph(GOFILE)
     gsgo = GsesameGO(terms)
     output = 0.7727272727272726
     self.assertEqual(output, gsgo.scores('0043229','0043231'))
예제 #2
0
 def test_scores(self):
     """ Test the scores function. """
     obio = OboIO()
     terms = obio.get_graph(GOFILE2)
     gsgo = GsesameGO(terms)
     output = 0.8259052924791086
     self.assertEqual(output, gsgo.scores('0043229','0043231'))