Skip to content
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

feat( ): adjust the map_highest_level_term() function #215

Open
ainfeld opened this issue Jul 18, 2024 · 0 comments
Open

feat( ): adjust the map_highest_level_term() function #215

ainfeld opened this issue Jul 18, 2024 · 0 comments

Comments

@ainfeld
Copy link

ainfeld commented Jul 18, 2024

Need

Is your feature request related to a problem? Please describe.
I am using the ontology guide to map data in Census and Lattice's database for UBERON and HsapDv ontologies to higher level groupings, Organ, System, Developmental groups to evaluate the data we have/are in the pipeline. I found out that Lattice's Database can includes terms that are aren't part of the latest schema the ontology guide is based off of. Currently if the list of terms to map includes a term now included in the current ontology version the ontology guide is referencing it causes an error.

Approach

Describe the solution you'd like
I would like the function to be able to take in any ID and just return "None" if it's not part of the current ontology version. This is how it works for IDs that don't roll up to any of the terms included in the list to map to.

Describe alternatives you've considered
As a work around for now I've set up a while loop that will continue to catch the IDs that are not part of the ontologies and remove them from the overall list of IDs to map to until the map_highest_level_term() is successful.

Additional context
NA

Definition of Done

When it no longer breaks if there is a term in the list of IDs to map to that isn't part of the current ontology version the ontology guide is using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant