Skip to content

Commit 4336a2f

Browse files
committed
Synchronization: SubClassOf
Pipeline to keep subclass relationships in sync between Mondo and sources. - Add: makefile goals: sync, sync-subclassof, reports/sync-subclassof.robot.template.tsv - Update: makefile goal: build-mondo-ingest - Add: src/scripts/sync_subclassof.py General - Bugfix: utils.py remove_angle_brackets(): Now correctly returns a str if receives a str. - Update: config/prefixes.csv: Add: New entries - Add: utils.py: get_monarch_curies_converter()
1 parent f4590dc commit 4336a2f

5 files changed

Lines changed: 23826 additions & 5 deletions

File tree

‎src/ontology/config/prefixes.csv‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,19 @@ PLANP,http://purl.obolibrary.org/obo/PLANP_
224224
CARO,http://purl.obolibrary.org/obo/CARO_
225225
NPO,http://purl.bioontology.org/ontology/npo#NPO_
226226
ICD10CM,http://purl.bioontology.org/ontology/ICD10CM/
227+
ICD10CM2,https://icd.codes/icd10cm/
227228
ICD10WHO,https://icd.who.int/browse10/2019/en#/
229+
ICD10WHO2010,http://apps.who.int/classifications/icd10/browse/2010/en#/
228230
OMIMPS,https://www.omim.org/phenotypicSeries/PS
231+
OMIMPS2,https://omim.org/phenotypicSeries/
229232
OMIM,https://omim.org/entry/
230233
Orphanet,http://www.orpha.net/ORDO/Orphanet_
231-
GARD,http://purl.obolibrary.org/obo/GARD_
234+
GARD,http://purl.obolibrary.org/obo/GARD_
235+
MEDRA,http://identifiers.org/meddra/
236+
MESH,http://identifiers.org/mesh/
237+
SCTID,http://identifiers.org/snomedct/
238+
MEDGEN,http://purl.obolibrary.org/obo/MEDGEN_
239+
MEDGEN2,http://identifiers.org/medgen/
240+
MEDGENCUI,http://purl.obolibrary.org/obo/MEDGENCUI_
241+
UMLS,http://purl.obolibrary.org/obo/UMLS_
242+
UMLS2,http://linkedlifedata.com/resource/umls/id/

‎src/ontology/mondo-ingest.Makefile‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ documentation: j2 $(ALL_DOCS) unmapped-terms-docs mapped-deprecated-terms-docs s
321321
build-mondo-ingest:
322322
$(MAKE) refresh-imports exclusions-all mondo-ingest.db slurp-all mappings matches \
323323
mapped-deprecated-terms mapping-progress-report \
324-
recreate-unmapped-components documentation
324+
recreate-unmapped-components sync documentation
325325
$(MAKE) prepare_release
326326

327327
.PHONY: build-mondo-ingest-no-imports
@@ -502,6 +502,19 @@ slurp-all-no-updates: $(foreach n,$(ALL_COMPONENT_IDS), slurp-no-updates-$(n))
502502
.PHONY: slurp-all
503503
slurp-all: $(foreach n,$(ALL_COMPONENT_IDS), slurp-$(n))
504504

505+
506+
#############################
507+
###### Synchronization ######
508+
#############################
509+
.PHONY: sync
510+
sync: sync-subclassof
511+
512+
.PHONY: sync-subclassof
513+
sync-subclassof: reports/sync-subclassof.robot.template.tsv
514+
515+
reports/sync-subclassof.robot.template.tsv: tmp/merged.db
516+
python3 $(SCRIPTSDIR)/sync_subclassof.py --ontology-db-path tmp/merged.db --prefixes-csv-path config/prefixes.csv --outpath $@
517+
505518
#############################
506519
######### Analysis ##########
507520
#############################

0 commit comments

Comments
 (0)