def testFdr(self): sample1 = discover.dist_from_distfile( tests.get_test_data('synechocystis')) sample2 = discover.dist_from_distfile( tests.get_test_data('s.cerevisiae')) mybinom = discover.BinomTest(sample1, sample2) result = mybinom() result.fdr() self.failUnlessEqual(len(result[0]), 7)
def testFromFile(self): dist = discover.dist_from_annot_file( tests.get_test_data('test_annot.txt')) self.failUnlessEqual(dist.size(), 278)