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

Refactor converter generation code #974

Merged
merged 5 commits into from
Nov 2, 2023
Merged

Refactor converter generation code #974

merged 5 commits into from
Nov 2, 2023

Conversation

cthoyt
Copy link
Member

@cthoyt cthoyt commented Nov 2, 2023

This PR gets rid of code that focuses on lists of curies.Record objects and instead works directly with curies.Converter objects.

Along the way, this also identified issues with the data integrity on MIRIAM, N2T, and Prefix Commons with respect to the TAIR resources (tair.gene and tair.protein) which all used non-specific, overlapping URLs. Therefore, these needed to get cleaned out before being import.

Why do this? If we work directly with converters, we can make use of the CURIE prefix reconciliation tooling to more cleanly refactor the Bioregistry to Converter pipeline (which is causing issues when adding prefix casing variants in a related PR #969)

Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Attention: 25 lines in your changes are missing coverage. Please review.

Files Coverage Δ
src/bioregistry/__init__.py 100.00% <ø> (ø)
src/bioregistry/record_accumulator.py 91.41% <100.00%> (+0.27%) ⬆️
src/bioregistry/uri_format.py 91.66% <100.00%> (+5.00%) ⬆️
src/bioregistry/resource_manager.py 75.15% <66.66%> (-0.08%) ⬇️
src/bioregistry/external/prefixcommons.py 21.35% <14.28%> (+0.14%) ⬆️
src/bioregistry/external/miriam.py 31.34% <12.50%> (-1.45%) ⬇️
src/bioregistry/external/n2t.py 43.90% <22.22%> (-6.10%) ⬇️

📢 Thoughts on this report? Let us know!.

@cthoyt cthoyt merged commit 6eeeaf2 into main Nov 2, 2023
12 of 13 checks passed
@cthoyt cthoyt deleted the improve-converter branch November 2, 2023 10:43
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