OXO wrapper

wrapper for the OXO api (reverse engineered! argh!)

class ontoma.oxo.OxoClient(base_url='https://www.ebi.ac.uk/spot/oxo/api')[source]

OXO wrapper class

>>> oxo = OxoClient()
>>> len(oxo._sources)
940
>>> first_result = list(oxo.search(input_source="ICD9CM"))[:1][0]
>>> first_result['curie']
'ICD9CM:730.92'
>>> for r in oxo.search(ids=['ICD9CM:171.6'],input_source="ICD9CM"):
...     print(r['label'])
Malignant neoplasm of connective and other soft tissue of pelvis
>>> icd9s = oxo.make_mappings(input_source="ICD9CM", distance=2)
>>> icd9s['733.0']
'EFO:0003882'
get_data_sources()[source]
make_mappings(input_source='ICD9CM', **kwargs)[source]
search(ids=None, input_source=None, mapping_target='EFO', distance=1, size=500)[source]

iterates over the mappings, each being a dict with the following keys: [ “_links”, “curie”, “label”, “mappingResponseList”, “queryId”, “querySource” ]