Skip to content

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

Open
@ainfeld

Description

@ainfeld

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions