Skip to content

Turn off primary identifier resolution in pyobo.get_name() by default - #440

Merged
cthoyt merged 2 commits into
mainfrom
remap
Sep 16, 2025
Merged

Turn off primary identifier resolution in pyobo.get_name() by default#440
cthoyt merged 2 commits into
mainfrom
remap

Conversation

@cthoyt

@cthoyt cthoyt commented Sep 16, 2025

Copy link
Copy Markdown
Member

This changes the functionality of pyobo.get_name() (and related getters) in the case when there's an alternate ID. Before, it always upgraded the ID. Now, there are three possibilities:

  1. Default (upgrade_identifier=None) it will only upgrade the identifier if the field is missing from the base map
  2. True - it will always upgrade eagerly
  3. False - it will never upgrade

I found an example in CHMO with CHMO:0000067 microscopy and CHMO:0000005 (chrono-amperometry) where CHMO:0000005's label was getting remapped to microscopy. This isn't the right thing to do unless the label was removed when the term was deprecated.

@cthoyt cthoyt changed the title Turn off name remapping Turn off primary identifier resolution in pyobo.get_name() by default Sep 16, 2025
@cthoyt
cthoyt merged commit fc7e3ae into main Sep 16, 2025
10 checks passed
@cthoyt
cthoyt deleted the remap branch September 16, 2025 14:37
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

Successfully merging this pull request may close these issues.

1 participant