biolink / ontobio

python library for working with ontologies and ontology associations
https://ontobio.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
118 stars 30 forks source link

EcoMap should parse eco.owl as ontology #624

Open dustine32 opened 2 years ago

dustine32 commented 2 years ago

To move away from relying on gaf-eco-mapping.txt and gaf-eco-mapping-derived.txt we should fetch and parse eco.owl into an Ontology. With the whole ontology, we can compute closures for ECO codes indirectly mapped to a GAF evidence code (e.g. IDA) as well as access GO_REF references for terms (via oboInOwl:hasDbXref).

Example: if evidence type ECO:0001162 in a GoAssociation is being written out to a GAF line, this hierarchy should connect it to IDA as the evidence output value:

ECO:0001162 -> ECO:0000314 -> IDA

Tagging @kltm @cmungall

dustine32 commented 2 years ago

https://github.com/evidenceontology/evidenceontology/issues/289#issuecomment-1179308147