Skip to content

Gracefully handle synonymous curie prefixes using the curies library #313

@kevinschaper

Description

@kevinschaper

Related to some discussion about handling RXNORM vs RXCUI, NN could provide prefix normalization along with node normalization very easily by making use of the curies library and the merged prefix map from prefixmaps.

@matentzn and I would love to help out on this.

The code is as easy as:

>>> from prefixmaps import load_converter
>>> converter = load_converter("merged")
>>> print(converter.standardize_curie("ORPHA:123"))
ORPHANET:123

Though, there is something to dig into, because I'm finding that converter.standardize_curie("RXNORM:123") isn't returning RXCUI:123 like I was expecting. Which, uh, I recognize weakens the argument a little! 😬

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions