biolink / ontobio

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

Update relations.py #584

Closed vanaukenk closed 3 years ago

vanaukenk commented 3 years ago

@dustine32 @kltm @pgaudet

I'm proposing more edits to the relations.py file in anticipation of corrections curators will make to their annotation extensions that currently use the 'exists during' relation. I've added a line for the RO relation 'existence starts and ends during' and updated the 'exists during' ID to point to the gorel id. Please let me know if you foresee any issues; I just wanted to add this so we don't start flagging valid AE relations as invalid like we did a few weeks ago for the PomBase annotations.

Thanks.

kltm commented 3 years ago

@vanaukenk Is there an issue that we can mark this PR against? In general, we have issue -> PR (marked back to issue); this allows us better overall tracking, etc.

vanaukenk commented 3 years ago

@kltm - yes, here it is:

https://github.com/geneontology/go-annotation/issues/2677

Also:

geneontology/go-ontology#21961 geneontology/go-ontology#21962

kltm commented 3 years ago

Personally, looking at the issue, I'm a little unsure of exactly how this fits into the overall picture. That said, these changes seems modest to my eye and would be limited to rdfgen, which is incidental to most of the main data flow at this point. I'm comfortable in merging, but would like confirmation from @dustine32 .

dustine32 commented 3 years ago

@kltm @vanaukenk This lookup is used by the extension parsing (i.e. extension relation labels to CURIEs) in both the GO rules run in the GO pipeline as well as for translating GPAD to GO-CAM. The consequences of this change:

If these consequences are fine with you guys, I think this PR is good to merge!

vanaukenk commented 3 years ago

Thanks @dustine32

These consequences look okay to me, but note that we're trying to get curators to change at the source any 'exists during' extension relations to one of the RO relations, so hopefully for the GPAD->GO-CAM pipeline, we won't have any 'exists during' extensions coming in. If we do, we should flag them as an error to be checked.

And actually, in Noctua, 'exists during' is not even a relation option (at least I can't find it in the pop-up window in the graph editor). Curators would have to choose one of the RO relations in Noctua.

kltm commented 3 years ago

Okay, just to be clear, both @dustine32 and @vanaukenk are okay with the changes and consequences. If so (plus or thumbs_up), I'll merge, a release can go out, and we can update our requirements.