-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update MONDO local unique identifiers #105
Conversation
Okay. We should also look into validation functions and make sure they are consistent. The function
However, its behavior doesn't make sense currently, and after some digging, I traced this back to a significant change in logic in Bioregistry's |
@bgyori in 0ab87e9 I took care of deduplicating two functions that both were doing validity checking (I favored the one that wasn't baked into the unittest since it was reused elsewhere in the package). Now it's more consistent how the logic is applied (no more need for the flags for NCIT and AGRO) and more clear that the potential None return in The diff isn't so great but the function reads pretty nicely now: biomappings/src/biomappings/utils.py Lines 144 to 165 in 0ab87e9
|
Now that the two implementations are unified, this is no longer strictly necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
Following #104 (comment), this PR implements the change that we won't make assumptions about how Identifiers.org might curate future OBO Foundry ontologies' local unique identifier patterns. Therefore, this PR removes the redundant prefixes in MONDO's local unique identifiers.
This PR could be merged directly or also combine into #104 if the diff would be a problem