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 FIXME Results don’t seem to be deterministic, some mappings appear and disappear between calls, e.g. icd9s = oxo.make_mappings(input_source=”ICD9CM”, distance=2); icd9s[‘733.09’]

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” ]