A simple term mapper built around the NCI Metathesaurus. It can produce the entire known mapping, or only map a list of input terms. Most RRF files are loaded directly into memory, but since two critical files we need (MRCONSO and MRHIER) are particularly large, we load those into a local SQLite3 database and query them from there. It also includes support for matching via the parent term, i.e. when term X in source A has no mapping in source B, but X's parent term does.
Sorry for the post-review request changes, Jim: I fixed a couple of minor issues and added CUIs to the CSV output. This PR should be stable enough for you to review now!
A simple term mapper built around the NCI Metathesaurus. It can produce the entire known mapping, or only map a list of input terms. Most RRF files are loaded directly into memory, but since two critical files we need (MRCONSO and MRHIER) are particularly large, we load those into a local SQLite3 database and query them from there. It also includes support for matching via the parent term, i.e. when term X in source A has no mapping in source B, but X's parent term does.