This commit is contained in:
2007-07-23 13:25:34 +00:00
parent 9db5991108
commit 155dfada5c
4 changed files with 31 additions and 17 deletions

View File

@@ -1,6 +1,5 @@
""" Module for Gene ontology related functions called in R"""
import scipy
import rpy
silent_eval = rpy.with_mode(rpy.NO_CONVERSION, rpy.r)
@@ -126,3 +125,8 @@ def parents_dag(go_terms, ontology=['BP']):
else:
edge_dict[nn] = [head]
return edge_dict
def gene_GO_hypergeo_test(genelist, universe, ontology = ['BP']):
pvals = geneGoHyperGeoTest(entrezGeneIds, lib=None, ontology=ontology[0], universe=universe)
return pvals