We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
r1 = Record( prefix="geo", prefix_synonyms=["GEO"], uri_prefix="https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=", pattern="^G(PL|SM|SE|DS)\\d+$", ) r2 = Record( prefix="geogeo", uri_prefix="http://purl.obolibrary.org/obo/GEO_", pattern="^\\d{9}$" ) c1 = Converter([r1, r2]) remapping = {"GEO": "ncbi.geo", "geogeo": "GEO"} c2 = remap_curie_prefixes(c1, remapping) r3 = Record( prefix="ncbi.geo", uri_prefix="https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=", pattern="^G(PL|SM|SE|DS)\\d+$", ) r4 = Record( prefix="GEO", prefix_synonyms=["geo", "geogeo"], uri_prefix="http://purl.obolibrary.org/obo/GEO_", pattern="^\\d{9}$", ) self.assertEqual([r4, r3], c2.records)
does not retain geo as synonym in r4
geo
r4
The text was updated successfully, but these errors were encountered:
Add tests for remapping
a407d95
Closes #87
cthoyt
Successfully merging a pull request may close this issue.
does not retain
geo
as synonym inr4
The text was updated successfully, but these errors were encountered: