tgbugs / ontquery

a framework querying ontology terms
MIT License
3 stars 3 forks source link

Still the issue with remote function #34

Open LinkunGao opened 2 years ago

LinkunGao commented 2 years ago

Thanks for your response!!! Now the install issue is fixed, by using python3 -m pip install "ontquery[services]" . But we still cannot use SciGraphRemote

image image

Is there something wrong? Or do we need to install a specific version of ontquery?

LinkunGao commented 2 years ago
image

Also for the CURIE_MAP

tgbugs commented 2 years ago

If you are installing with services enabled then I suggest that you use pyontutils fully configured OntTerm.

Replace first block of the readme with

from pyontutils.core import OntTerm
query = OntTerm.query
list(query('mouse'))

The readme as written will not work due to missing entries in MANIFEST.in which I am in the process of fixing, but I won't be able to push a new release until tomorrow.

LinkunGao commented 2 years ago

Thanks so much!

I've already installed services, do I need to do some configs? Also, without SciGraphRemote how can we add api-key? Because when I run the code above, it lets me set up API key. I've already got the API key from https://scicrunch.org/account/developer

image
tgbugs commented 2 years ago

See https://github.com/SciCrunch/sparc-curation/blob/master/docs/setup.org#accounts-and-api-access and https://github.com/SciCrunch/sparc-curation/blob/master/docs/setup.org#scigraph.