Skip to content

Commit

Permalink
Temp: ORDO mappings analysis
Browse files Browse the repository at this point in the history
Exploratory analysis to try to find the best way to get ORDO<->ICD11Foundation mappings.
  • Loading branch information
joeflack4 committed Mar 28, 2024
1 parent f1e37f4 commit fa982d0
Show file tree
Hide file tree
Showing 10 changed files with 38,898 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,6 @@ dmypy.json

.idea/
tmp/

# Custom
_archive/
19 changes: 19 additions & 0 deletions config/icd11.sssom-metadata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
creator_id: 0000-0002-2906-7319
curie_map:
GTR: http://purl.obolibrary.org/obo/mondo/mappings/unknown_prefix/GTR/
HP: http://purl.obolibrary.org/obo/HP_
MESH: http://identifiers.org/mesh/
MONDO: http://purl.obolibrary.org/obo/MONDO_
NCIT: http://purl.obolibrary.org/obo/NCIT_
OMIM: https://omim.org/entry/
Orphanet: http://www.orpha.net/ORDO/Orphanet_
SCTID: http://identifiers.org/snomedct/
UMLS: http://purl.obolibrary.org/obo/UMLS_
oboInOwl: http://www.geneontology.org/formats/oboInOwl#
owl: http://www.w3.org/2002/07/owl#
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: http://www.w3.org/2000/01/rdf-schema#
semapv: https://w3id.org/semapv/
skos: http://www.w3.org/2004/02/skos/core#
sssom: https://w3id.org/sssom/
license: http://w3id.org/sssom/license/unspecified
11 changes: 11 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ tmp/input/:

tmp/input/source.owl: tmp/input/source.gz
gunzip -c $< > $@
rm $<

tmp/input/source.gz: | tmp/input/
wget ${SOURCE_URL} -O $@
Expand All @@ -35,6 +36,16 @@ release: | tmp/output/release/
@test $(VERSION)
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 $< > $@

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

Large diffs are not rendered by default.

Loading

0 comments on commit fa982d0

Please sign in to comment.