Skip to content

Commit

Permalink
Merge pull request #46 from apriltuesday/sept-submission
Browse files Browse the repository at this point in the history
bump versions for 24.09 submission
  • Loading branch information
apriltuesday authored Jul 23, 2024
2 parents 5161f41 + b603a3b commit 9a7f24b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion opentargets_pharmgkb/OT_SCHEMA_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.2
2.7.3
3 changes: 2 additions & 1 deletion opentargets_pharmgkb/evidence_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 9a7f24b

Please sign in to comment.