diff --git a/opentargets_pharmgkb/OT_SCHEMA_VERSION b/opentargets_pharmgkb/OT_SCHEMA_VERSION index fbafd6b..e2bdf6e 100644 --- a/opentargets_pharmgkb/OT_SCHEMA_VERSION +++ b/opentargets_pharmgkb/OT_SCHEMA_VERSION @@ -1 +1 @@ -2.7.2 \ No newline at end of file +2.7.3 \ No newline at end of file diff --git a/opentargets_pharmgkb/evidence_generation.py b/opentargets_pharmgkb/evidence_generation.py index 5faf9b5..15f1318 100644 --- a/opentargets_pharmgkb/evidence_generation.py +++ b/opentargets_pharmgkb/evidence_generation.py @@ -330,7 +330,8 @@ def explode_and_map_phenotypes(df): def iri_to_code(iri): """Convert iri (e.g. http://purl.obolibrary.org/obo/CHEBI_4792) to code, per Open Targets request.""" - return iri.split('/')[-1] if iri and pd.notna(iri) else None + # Temporary workaround for MPATH terms until https://github.com/EBIvariation/CMAT/issues/417 is fixed + return iri.split('/')[-1] if iri and pd.notna(iri) and 'MPATH' not in iri else None def generate_clinical_annotation_evidence(so_accession_dict, created_date, row): diff --git a/requirements.txt b/requirements.txt index 4c30a0e..5c9d0ca 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,6 @@ jsonschema==3.2.0 numpy==1.24.3 pandas==1.5.3 pytest==7.2.2 -requests==2.32.0 +requests==2.32.3 retry==0.9.2 cmat @ git+https://github.com/EBIvariation/eva-opentargets.git#egg=cmat \ No newline at end of file diff --git a/setup.py b/setup.py index 98c94ff..5df0d82 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ def get_requires(): setup(name='opentargets_pharmgkb', - version='0.1.0', + version='0.1.1', packages=find_packages(), package_data={ 'opentargets_pharmgkb': ['OT_SCHEMA_VERSION']