Skip to content

Commit

Permalink
ORDO Mappings
Browse files Browse the repository at this point in the history
- Add: New release output: ordo-icd11.sssom.tsv
  • Loading branch information
joeflack4 committed Mar 28, 2024
1 parent 9b03e83 commit fe1a0de
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 38,839 deletions.
18 changes: 10 additions & 8 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,16 @@ release: | tmp/output/release/
gh release create $(VERSION) --notes "New release." --title "$(VERSION)" tmp/output/release/*

# Mappings
tmp/input/mappings.json: | tmp/input/
wget -qO tmp/input/en_product1.json.tar.gz https://www.orphadata.com/data/json/en_product1.json.tar.gz
tar -xvf tmp/input/en_product1.json.tar.gz -C tmp/input/
mv tmp/input/en_product1.json $@
rm tmp/input/en_product1.json.tar.gz

tmp/output/release/ordo-icd11.sssom.tsv: tmp/input/mappings.json | tmp/output/release/
python3 src/make_sssom.py $< > $@
# todo: Stable URI/filename issue: https://github.com/monarch-initiative/icd11/pull/12#discussion_r1542187711
tmp/input/Orphanet_Nomenclature_Pack_EN/ORPHA_ICD11_mapping_en_newversion_2023.xml: | tmp/input/
wget https://www.orphadata.com/data/nomenclature/packs/Orphanet_Nomenclature_Pack_EN.zip -O tmp/input/Orphanet_Nomenclature_Pack_EN.zip
unzip tmp/input/Orphanet_Nomenclature_Pack_EN.zip -d tmp/input/Orphanet_Nomenclature_Pack_EN

tmp/input/ordo.owl: | tmp/input/
wget http://www.orphadata.org/data/ORDO/ordo_orphanet.owl -O $@

tmp/output/release/ordo-icd11.sssom.tsv: tmp/input/Orphanet_Nomenclature_Pack_EN/ORPHA_ICD11_mapping_en_newversion_2023.xml tmp/input/ordo.owl | tmp/output/release/
python3 src/mappings.py $< > $@

# HELP -----------------------------------------------------------------------------------------------------------------
help:
Expand Down
5,781 changes: 0 additions & 5,781 deletions src/compare_component_and_website_data/comp.txt

This file was deleted.

Loading

0 comments on commit fe1a0de

Please sign in to comment.