monarch-initiative / biolink-api

API for linked biological knowledge
https://api.monarchinitiative.org/api/
BSD 3-Clause "New" or "Revised" License
64 stars 25 forks source link

Preload ontologies #239

Closed deepakunni3 closed 5 years ago

deepakunni3 commented 5 years ago

This PR adds the ability to preload ontologies, as defined in config.yaml.

Note: I had to comment out 'mp' from the config.yaml due to errors encountered in ontobio (RecursionError: maximum recursion depth exceeded while calling a Python object) while trying to load MP ontology.

kshefchek commented 5 years ago

Looks good to me, it may be better to set the defaults as false since some of these will take a while and people will not notice the new configuration. How long does mondo take to preload?

deepakunni3 commented 5 years ago

@kshefchek Good point. I'll edit the config and set to false.

Mondo takes about 2 minutes to preload.

deepakunni3 commented 5 years ago

@kshefchek Thanks for looking into this