V quick query for JP, not well documented! https://github.com/monarch-initiative/operations/issues/91#issuecomment-308893761
from ontobio.ontol_factory import OntologyFactory
ofactory= OntologyFactory()
# For SciGraph we need to use a config file that maps the SciGraph
# handle onto a URL
from ontobio.config import set_config
set_config('../conf/config.yaml')
<ontobio.config.Config at 0x108c61a90>
sgo = ofactory.create('scigraph:data')
matches = sgo.search('Fatty acid biosynthesis')
matches
['KEGG-path:map00061']
from ontobio.golr.golr_query import GolrAssociationQuery
q = GolrAssociationQuery(subject_category='gene', object=matches[0], subject_taxon='NCBITaxon:9606')
assocs = q.exec()['associations']
for a in assocs:
gene = a['subject']
print("{} {}".format(gene['id'], gene['label']))
NCBIGene:31 ACACA NCBIGene:27349 MCAT NCBIGene:2194 FASN NCBIGene:55301 OLAH NCBIGene:54995 OXSM NCBIGene:32 ACACB