Python API and Command Line Client for SciGraph
This API works off of a SciGraph REST service. Consult SciGraph docs for details.
This API is generic and will work off of any SciGraph instance, regardless of whether it is used to store genotype-phenotype data, neuroanatomy or pizzas.
Alpha software: API may change
from scigraph.api.SciGraph import SciGraph
sg = SciGraph("http://datagraph.monarchitiative.org/")
g = sg.neighbors('OMIM:118300',{'depth':1})
for n in g.nodes:
print(n.id +" " + n.label)
for e in g.edges:
print(n.subject +" " + e.predicate + " " + e.target)
For up to date help, always use:
./run-scigr.py -h
The most useful global parameter is -u
which sets the base URL
./run-scigr.py a Parkinson
./run-scigr.py s Parkinson
./run-scigr.py ann "the big ears and the hippocampus neurons"
./run-scigr.py -t tsv n OMIM:118300
./run-scigr.py -t png g OMIM:118300