Open caufieldjh opened 5 months ago
Partially related, but not sure what's going on with this line: https://github.com/monarch-initiative/ontogpt/blob/bba969258dbe30436a5df880f5a016f4409d89ee/src/ontogpt/engines/knowledge_engine.py#L285
Can solve here by having OntoGPT create its own ValueSetExpander with its own config (not just the default oaklib one)
Originally seen in #346. Using a Bioportal ontology (like bioportal:SNOMEDCT) as an annotator works fine on its own. If used in a value set expansion, e.g., with a
reachable_from
, it tries to download the corresponding semsql db. This doesn't work if the semsql db does not exist. It should throw a warning instead of trying to access a nonexistent resource.This is the offending line: https://github.com/monarch-initiative/ontogpt/blob/bba969258dbe30436a5df880f5a016f4409d89ee/src/ontogpt/engines/knowledge_engine.py#L396
Example as per #346, from debugger:
The issue here arises because oaklib's
ValueSetExpander
requires a specific config to work with Bioportal. Otherwise it assumes it's in OBO space. See https://github.com/INCATools/ontology-access-kit/blob/a51929160549b160831474472f93ebc9a5a22c01/src/oaklib/utilities/subsets/value_set_expander.py#L263-L295