Tralala ...

This commit is contained in:
2007-11-07 12:34:13 +00:00
parent ca51a0b382
commit aef2e1daf0
11 changed files with 316 additions and 121 deletions

View File

@@ -46,7 +46,7 @@ def dag(terms, ontology):
__parents = {'bp' : rpy.r.GOBPPARENTS,
'mf' : rpy.r.GOMFPARENTS,
'cc' : rpy.r.GOCCPARENTS}
gograph = rpy.r.GOGraph(terms, __parents.get(ontology))
gograph = rpy.r.GOGraph(terms, __parents.get(ontology.lower()))
dag = rpy.r.edges(gograph)
#setattr(dag, "_ontology", ontology)
return dag