Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rare and genetic subset update pipeline #6903

Draft
wants to merge 109 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
47835f3
First draft of GARD component in Mondo
matentzn Nov 22, 2023
eb9cfd4
Merge branch 'master' into gard-import
matentzn Dec 7, 2023
fa33e73
Update Makefile
matentzn Dec 7, 2023
e9ebec8
Update mondo.Makefile
matentzn Dec 7, 2023
3f27d2e
Add updated subsets
matentzn Dec 8, 2023
6e8d020
Reworked pipeline
matentzn Dec 8, 2023
e2e5c7b
Update
matentzn Dec 8, 2023
867e742
Update mondo-edit.obo
matentzn Dec 8, 2023
03326a5
Next round of pipeline
matentzn Dec 8, 2023
d8fe44f
Update NORD subset
matentzn Dec 8, 2023
745cce0
Update mondo.Makefile
matentzn Dec 8, 2023
37cb354
Update construct-rare-subset.sparql
matentzn Dec 8, 2023
f77da3c
Update mondo.Makefile
matentzn Dec 8, 2023
58753e8
Revert somem changes
matentzn Dec 8, 2023
6a3547e
reveryt some changes
matentzn Dec 8, 2023
c07ff1f
Update mondo-edit.obo
matentzn Dec 8, 2023
ee9ee4a
Update mondo-edit.obo
matentzn Dec 8, 2023
a2612bc
Merge branch 'master' into gard-import
matentzn Dec 8, 2023
fc76155
Merge branch 'master' into gard-import
matentzn Dec 8, 2023
da70f5e
Update nord-subset.template.tsv
matentzn Dec 8, 2023
efc3af4
Update NORD pipeline
matentzn Dec 9, 2023
75d1de4
Update nord-subset.template.tsv
matentzn Dec 9, 2023
3e62f7a
Merge branch 'master' into gard-import
matentzn Dec 9, 2023
147c9ef
Update mondo.Makefile
matentzn Dec 9, 2023
9becb3a
Safe NORD xrefs
matentzn Dec 9, 2023
76bb0b5
Update NORD pipeline
matentzn Dec 9, 2023
99c106d
Merge branch 'master' into gard-import
matentzn Dec 9, 2023
2e8b982
Update mondo.Makefile
matentzn Dec 9, 2023
1ae7105
EFO updates
matentzn Dec 11, 2023
78afaee
Add evidence to orphanet
matentzn Dec 11, 2023
b5e0505
Merge branch 'master' into gard-import
matentzn Dec 11, 2023
431e6af
Update mondo.Makefile
matentzn Dec 11, 2023
f8363b9
Merge branch 'master' into gard-import
matentzn Dec 12, 2023
8da6b9b
Clingen subset
matentzn Dec 12, 2023
aa117f7
Merge branch 'master' into gard-import
matentzn Jan 6, 2024
1b58411
Update clingen-subset.sparql
matentzn Feb 3, 2024
aa67f80
Update Makefile
matentzn Feb 3, 2024
9dddd9c
Merge branch 'master' into gard-import
matentzn Feb 3, 2024
1dcae7f
Update clingen subset
matentzn Feb 3, 2024
3814a1a
Update clingen labels
matentzn Feb 3, 2024
1902448
Merge branch 'master' into gard-import
matentzn Feb 7, 2024
cfeea62
Update mondo.Makefile
matentzn Feb 7, 2024
dc93100
Update mondo-clingen.owl
matentzn Feb 7, 2024
547a045
Update clingen-labels.ru
matentzn Feb 7, 2024
8e99f26
Merge branch 'master' into gard-import
matentzn Feb 22, 2024
f115d67
Update mondo.Makefile
matentzn Feb 23, 2024
044dcdc
Merge branch 'master' into gard-import
matentzn Mar 29, 2024
5e89d34
Update mondo.Makefile
matentzn Mar 29, 2024
5dfdee5
Update construct-orphanet-rare-subset.sparql
matentzn Mar 29, 2024
88d8cd4
Merge branch 'master' into gard-import
matentzn Mar 29, 2024
6121a0d
Merge branch 'ordo-subset-equivalent' into gard-import
matentzn Mar 29, 2024
581596e
Merge branch 'master' into gard-import
matentzn Apr 2, 2024
3fd5eb4
Merge branch 'master' into gard-import
matentzn Apr 11, 2024
8ef0ca3
Fix bug in update EFO pipeline
matentzn Apr 11, 2024
d92594f
Fix EFO pipeline
matentzn Apr 12, 2024
4c14d90
Merge branch 'master' into gard-import
matentzn May 3, 2024
c667312
Update construct-orphanet-rare-subset.sparql
matentzn May 3, 2024
a482d2f
Add update-ordo subsets
matentzn May 3, 2024
cba7851
Merge branch 'master' into gard-import
matentzn May 4, 2024
7d546d4
Update construct-orphanet-rare-subset.sparql
matentzn May 4, 2024
b2cd115
Merge branch 'master' into gard-import
matentzn May 7, 2024
1ad724e
Update pipeline
matentzn May 7, 2024
5962391
Update mondo.Makefile
matentzn May 7, 2024
44a5ab7
Create mondo_rd_paper.ipynb
matentzn May 7, 2024
2bb4c31
Merge branch 'master' into gard-import
matentzn May 13, 2024
4e98177
Update construct-orphanet-rare-subset.sparql
matentzn May 13, 2024
770c4ba
Merge branch 'master' into gard-import
matentzn May 15, 2024
1e81aae
Add updated notebooks
matentzn May 17, 2024
51a3526
Merge branch 'master' into gard-import
matentzn May 17, 2024
6c5b175
Add nando pipeline
matentzn May 17, 2024
e8d9ba2
Update mondo.Makefile
matentzn May 17, 2024
29b126d
Update mondo.Makefile
matentzn May 17, 2024
97c4a4e
Update files
matentzn May 22, 2024
35130d0
Merge branch 'master' into gard-import
matentzn May 22, 2024
3fcd071
Merge branch 'master' into gard-import
matentzn May 29, 2024
85d53a4
Update GARD subset
matentzn May 29, 2024
00e52e8
Merge branch 'master' into gard-import
matentzn May 30, 2024
9302305
Update mondo.Makefile
matentzn May 30, 2024
300fbb6
Update mondo.Makefile
matentzn May 30, 2024
9516d61
Update mondo.Makefile
matentzn May 30, 2024
24fcf38
Merge branch 'master' into gard-import
matentzn May 31, 2024
2853756
Update mondo.Makefile
matentzn May 31, 2024
137d2cb
Add count subset feature
matentzn Jun 3, 2024
60448d9
Merge branch 'master' into gard-import
matentzn Jun 5, 2024
0b04a34
Update mondo_paper_plots.ipynb
matentzn Jun 5, 2024
9289efb
Update orphanet subsets and queries
matentzn Jun 5, 2024
bfeba7a
Create rare-inferred-report.sparql
matentzn Jun 5, 2024
9d34018
Merge branch 'master' into gard-import
matentzn Jun 6, 2024
1c3da40
Update mondo.Makefile
matentzn Jun 6, 2024
aea1d3b
Update mondo.Makefile
matentzn Jun 6, 2024
47a1e1a
Merge branch 'master' into gard-import
matentzn Jun 11, 2024
6aa1a5f
Add clingen-otar-ordo pipeline
matentzn Jun 11, 2024
af5b004
Merge branch 'master' into gard-import
matentzn Jun 11, 2024
067c542
Add pipeline to import MedGen
matentzn Jun 11, 2024
4e494f2
Merge branch 'master' into gard-import
matentzn Jun 13, 2024
75200bd
Update rare disease subset pipeline
matentzn Jun 13, 2024
e95ac9e
Update analysis notebooks
matentzn Jun 14, 2024
519cb2c
Merge branch 'master' into gard-import
matentzn Jun 14, 2024
eb2b835
Merge branch 'master' into gard-import
matentzn Jun 15, 2024
5160413
Add basic mondo ai agent pipeline
matentzn Jun 17, 2024
61669d0
Merge branch 'master' into gard-import
matentzn Jun 24, 2024
a84bb2d
Merge branch 'master' into gard-import
matentzn Jul 16, 2024
dcfde9c
Update mondo.Makefile
matentzn Jul 16, 2024
9e324e2
Merge branch 'master' into gard-import
matentzn Jul 17, 2024
6c70488
Update mondo.Makefile
matentzn Jul 17, 2024
6d85d36
Merge branch 'master' into gard-import
matentzn Jul 18, 2024
bbb5053
Merge branch 'master' into gard-import
matentzn Aug 5, 2024
d3dfabd
Merge branch 'master' into gard-import
matentzn Jan 5, 2025
30a2f58
Merge branch 'master' into gard-import
matentzn Jan 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ all_imports: $(IMPORT_FILES)
COMPONENTS = mondo-tags
COMPONENT_FILES = $(foreach n, $(COMPONENTS), components/$(n).owl)

SUBSETS = mondo-rare
SUBSETS = mondo-rare mondo-clingen
SUBSET_ROOTS = $(patsubst %, subsets/%, $(SUBSETS))
SUBSET_FILES = $(foreach n,$(SUBSET_ROOTS), $(n).owl $(n).obo $(n).json $(n)_nodes.tsv $(n)_edges.tsv)

Expand Down Expand Up @@ -400,6 +400,15 @@ subsets/mondo-rare.owl: $(ONT)-base.owl $(TMPDIR)/hgnc_import.owl tmp/rare-seed
$(ROBOT) annotate --input $@ --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o [email protected] && mv [email protected] $@
.PRECIOUS: $(SUBSETDIR)/mondo-rare.owl

tmp/clingen-seed.txt: $(SRC)
$(ROBOT) merge -i $< query --query ../sparql/signature/clingen-subset.sparql $@
.PRECIOUS: tmp/rare-seed-entities.txt

subsets/mondo-clingen.owl: $(ONT)-base.owl tmp/clingen-seed.txt | $(SUBSETDIR)
$(ROBOT) merge -i $< query --update ../sparql/update/clingen-labels.ru extract --method subset -T tmp/clingen-seed.txt --copy-ontology-annotations true --output $@ &&\
$(ROBOT) annotate --input $@ --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o [email protected] && mv [email protected] $@
.PRECIOUS: $(SUBSETDIR)/mondo-rare.owl

subsets/%.json: subsets/%.owl
$(ROBOT) convert -i $< -o $@

Expand Down
2 changes: 1 addition & 1 deletion src/ontology/metadata/mondo.sssom.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ curie_map:
# ICD10: "http://purl.obolibrary.org/obo/mondo/mappings/unknown_prefix/ICD10/"
ICD10EXP: "http://purl.obolibrary.org/obo/mondo/mappings/unknown_prefix/ICD10EXP/"
DERMO: "http://purl.obolibrary.org/obo/mondo/mappings/unknown_prefix/DERMO/"
GARD: "http://purl.obolibrary.org/obo/mondo/mappings/unknown_prefix/GARD/"
GARD: "https://rarediseases.info.nih.gov/diseases/"
# SNOMEDCT_US: "http://purl.obolibrary.org/obo/mondo/mappings/unknown_prefix/SNOMEDCT_US/"
# MSH: "http://purl.obolibrary.org/obo/mondo/mappings/unknown_prefix/MSH/"
GC_ID: "http://purl.obolibrary.org/obo/mondo/mappings/unknown_prefix/GC_ID/"
Expand Down
1 change: 1 addition & 0 deletions src/ontology/mondo-edit.obo
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ synonymtypedef: DUBIOUS "dubious synonym"
synonymtypedef: EXCLUDE "Synonym to be removed from public release but maintained in edit version as record of external usage"
synonymtypedef: MISSPELLING "A synonym that is recorded for consistency with another source but is a misspelling"
synonymtypedef: NON_HUMAN "A synonym that is used for non-human animal variants of a disease"
synonymtypedef: NORD_PREFERRED "NORD preferred"
synonymtypedef: OMO:0003005 "UK spelling synonym"
import: http://purl.obolibrary.org/obo/mondo/components/mondo-tags.owl
import: http://purl.obolibrary.org/obo/mondo/imports/axioms.owl
Expand Down
271 changes: 263 additions & 8 deletions src/ontology/mondo.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ reports/mondo_analysis.md: $(QC_REPORTS)
# This is a hack to get rid of <style> tags that are rendered very ugly by github.
perl -0777 -i.original -pe 's#<style[^<]*<\/style>##igs' $@

reports/all_synonym_data.tsv: #mondo.owl
$(ROBOT) query -i mondo.owl --query ../sparql/reports/all_synonym_data.sparql $@

reports/mondo_analysis.pdf: $(QC_REPORTS)
jupyter nbconvert --execute --to pdf --TemplateExporter.exclude_input=True reports/mondo_analysis.ipynb

Expand Down Expand Up @@ -212,6 +215,251 @@ clean:
debug.owl roundtrip.obo test_nomerge sparql_test_* disjoint_sibs.obo \
reasoned-plus-equivalents.owl reasoned.owl tmp/*

#############################################
##### Mondo Subsets Pipeline ################
#############################################

tmp/%.template.owl: subsets/%.template.tsv $(SRC)
$(ROBOT) template --template $< convert -f ttl -o $@

####################################
##### Inferred #####################
####################################

# The inferred subset depends on the other ones, so we need to first remove the old subsets
# Then add the gard, nord and orphanet subsets back in
tmp/inferred-rare-subset.owl: $(SRC)
$(ROBOT) merge -i $(SRC) \
reason \
query --format ttl --query ../sparql/construct/construct-inferred-rare-subset.sparql $@

update-inferred-subset:
$(MAKE) tmp/inferred-rare-subset.owl
grep -vE '^(subset: inferred_rare)' $(SRC) > tmp/mondo-edit.tmp || true
mv tmp/mondo-edit.tmp mondo-edit.obo
$(ROBOT) merge -i $(SRC) -i tmp/inferred-rare-subset.owl --collapse-import-closure false convert -f obo --check false -o $(SRC).obo
mv $(SRC).obo $(SRC) && make NORM && mv NORM $(SRC)

####################################
##### Orphanet #####################
####################################

tmp/ordo-subsets.robot.owl:
wget "https://raw.githubusercontent.com/monarch-initiative/mondo-ingest/main/src/ontology/external/ordo-subsets.robot.owl" -O $@

.PHONY: update-ordo-subsets
update-ordo-subsets:
$(MAKE) tmp/ordo-subsets.robot.owl -B
grep -vE '^(subset: ordo_group_of_disorders)' $(SRC) | grep -vE '^(subset: ordo_disorder)' | grep -vE '^(subset: ordo_subtype_of_a_disorder)' > tmp/mondo-edit.tmp || true
mv tmp/mondo-edit.tmp mondo-edit.obo
$(ROBOT) merge -i $(SRC) -i tmp/ordo-subsets.robot.owl --collapse-import-closure false convert -f obo --check false -o tmp/mondo-edit.tmp
mv tmp/mondo-edit.tmp mondo-edit.obo
make NORM && mv NORM $(SRC)

tmp/orphanet-rare-subset.owl: $(SRC)
$(ROBOT) merge -i $(SRC) reason \
query --format ttl --query ../sparql/construct/construct-orphanet-rare-subset.sparql $@

.PHONY: update-orphanet-subset
update-orphanet-subset:
# We always need to update the ordo subsets (disease vs grouping vs subtype)
# Which is a prerequisite for the rare determination in ORDO
$(MAKE) tmp/orphanet-rare-subset.owl
grep -vE '^(subset: orphanet_rare)' $(SRC) > tmp/mondo-edit.tmp || true
mv tmp/mondo-edit.tmp mondo-edit.obo
$(ROBOT) merge -i $(SRC) -i tmp/orphanet-rare-subset.owl --collapse-import-closure false convert -f obo --check false -o $(SRC).obo
mv $(SRC).obo $(SRC) && make NORM && mv NORM $(SRC)


####################################
##### GARD #########################
####################################

subsets/gard-subset.template.tsv:
wget "https://docs.google.com/spreadsheets/d/e/2PACX-1vTGh0fO79utQPPmjSykHatfQMc6P_bnkqPfiqHJDdmqWJk7H1pSm8OkrJclJT9SiA/pub?gid=1163320745&single=true&output=tsv" -O $@

# The complex part here is that we need to dynamically update the MONDO source code, i.e.
# MONDO:equivalentTo and MONDO:obsoleteEquivalentTo.
tmp/gard-rare-subset.owl: $(SRC) subsets/gard-subset.template.tsv
$(ROBOT) template --template subsets/gard-subset.template.tsv convert -f ttl -o [email protected]
$(ROBOT) remove -i $< --select imports merge -i $@ query -f ttl --query ../sparql/construct/construct-equivalent-obsolete-gard.sparql [email protected]
$(ROBOT) merge -i [email protected] -i [email protected] convert -f ofn -o $@

.PHONY: update-gard
update-gard:
$(MAKE) tmp/gard-rare-subset.owl
grep -vE '^(xref: GARD:|subset: gard_rare)' $(SRC) > tmp/mondo-edit.tmp || true
mv tmp/mondo-edit.tmp mondo-edit.obo
$(ROBOT) merge -i $(SRC) -i tmp/gard-rare-subset.owl --collapse-import-closure false convert -f obo --check false -o $(SRC).obo
mv $(SRC).obo $(SRC) && make NORM && mv NORM $(SRC)

####################################
##### NANDO #########################
####################################

tmp/nando.template.owl: tmp/nando.template.tsv
wget https://raw.githubusercontent.com/monarch-initiative/mondo-ingest/main/src/ontology/external/nando-mappings.robot.owl -O $@

.PHONY: update-nando
update-nando:
make tmp/nando.template.owl -B
grep -vE '^(xref: NANDO:|subset: nando)' $(SRC) > tmp/mondo-edit.tmp || true
mv tmp/mondo-edit.tmp mondo-edit.obo
$(ROBOT) merge -i $(SRC) -i tmp/nando.template.owl --collapse-import-closure false convert -f obo --check false -o $(SRC).obo
mv $(SRC).obo $(SRC) && make NORM && mv NORM $(SRC)


####################################
##### NORD #########################
####################################

tmp/nord.template.owl:
wget "https://raw.githubusercontent.com/monarch-initiative/mondo-ingest/master/src/ontology/external/nord.robot.owl" -O $@

.PHONY: update-nord
update-nord:
make tmp/nord.template.owl -B
grep -vE '^(xref: NORD:|subset: nord_rare)' $(SRC) > tmp/mondo-edit.tmp || true
mv tmp/mondo-edit.tmp mondo-edit.obo
$(ROBOT) merge -i $(SRC) -i tmp/nord.template.owl --collapse-import-closure false convert -f obo --check false -o $(SRC).obo
mv $(SRC).obo $(SRC) && make NORM && mv NORM $(SRC)


subsets/mondo-rare.kgx.tsv:
kgx transform --input-format obojson \
--output subsets/mondo-rare.kgx \
--output-format tsv \
--knowledge-sources aggregator_knowledge_source "mondo,mondo disease ontology" \
subsets/mondo-rare.json

####################################
##### CLINGEN ######################
####################################

subsets/clingen.template.tsv:
wget "https://docs.google.com/spreadsheets/d/e/2PACX-1vRiYDV1n1nDuJOgnlFx6DsYGyIGlbgI1HeDzI740OgmOKYy2RCCyBqLHiBh-IMadYXjVglsxDPypArh/pub?gid=637121472&single=true&output=tsv" -O $@

.PHONY: update-clingen
update-clingen:
$(MAKE) tmp/clingen.template.owl
grep -vE '^(xref: CGGV:|xref: CGGCIEX:|subset: clingen)' mondo-edit.obo > tmp/mondo-edit.tmp
#sed -i 's/EXACT CLINGEN_LABEL/EXACT/g' tmp/mondo-edit.tmp || true
mv tmp/mondo-edit.tmp mondo-edit.obo
$(ROBOT) merge -i $(SRC) -i tmp/clingen.template.owl --collapse-import-closure false convert -f obo --check false -o $(SRC).obo
mv $(SRC).obo $(SRC) && make NORM && mv NORM $(SRC)

####################################
##### RARE #########################
####################################

tmp/rare-subset.owl: $(SRC)
$(ROBOT) merge -i $(SRC) \
query --format ttl --query ../sparql/construct/construct-rare-subset.sparql $@

.PHONY: update-rare-subset
update-rare-subset:
$(MAKE) tmp/rare-subset.owl
grep -vE '^(subset: rare)$$' $(SRC) > tmp/mondo-edit.tmp || true
mv tmp/mondo-edit.tmp mondo-edit.obo
$(ROBOT) merge -i $(SRC) -i tmp/rare-subset.owl --collapse-import-closure false convert -f obo --check false -o $(SRC).obo
mv $(SRC).obo $(SRC) && make NORM && mv NORM $(SRC)

####################################
##### EFO ##########################
####################################


subsets/mondo-efo.template.tsv:
wget "https://raw.githubusercontent.com/EBISPOT/efo/master/src/ontology/reports/mondo-efo.robot.tsv" -O $@

subsets/mondo-otar-subset.template.tsv:
wget "https://raw.githubusercontent.com/EBISPOT/efo/master/src/ontology/reports/mondo-otar-subset.robot.tsv" -O $@

.PHONY: update-efo-subset
update-efo-subset:
$(MAKE) tmp/mondo-otar-subset.template.owl tmp/mondo-efo.template.owl tmp/efo-proxy-merges.template.owl
grep -vE '^(xref: EFO:|subset: otar)' $(SRC) > tmp/mondo-edit.tmp || true
mv tmp/mondo-edit.tmp mondo-edit.obo
$(ROBOT) merge -i $(SRC) -i tmp/mondo-otar-subset.template.owl -i tmp/mondo-efo.template.owl -i tmp/efo-proxy-merges.template.owl --collapse-import-closure false \
query --use-graphs false --update ../sparql/update/update-equivalent-obsolete.ru \
convert -f obo --check false -o $(SRC).obo
mv $(SRC).obo $(SRC) && make NORM && mv NORM $(SRC)


####################################
##### MedGen #######################
####################################


tmp/mondo-medgen.template.tsv:
wget "https://github.com/monarch-initiative/medgen/releases/download/2024-06-09/medgen-xrefs.robot.template.tsv" -O $@

tmp/mondo-medgen.template.owl: tmp/mondo-medgen.template.tsv
$(ROBOT) template --prefix "orcid: https://orcid.org/" --template $< convert -f ofn -o $@

.PHONY: update-medgen
update-medgen:
$(MAKE) tmp/mondo-medgen.template.owl
grep -vE '^(xref: UMLS:|xref: MEDGEN:|subset: medgen)' $(SRC) > tmp/mondo-edit.tmp || true
mv tmp/mondo-edit.tmp mondo-edit.obo
$(ROBOT) merge -i $(SRC) -i tmp/mondo-medgen.template.owl --collapse-import-closure false \
query --use-graphs false --update ../sparql/update/update-equivalent-obsolete.ru \
convert -f obo --check false -o $(SRC).obo
mv $(SRC).obo $(SRC) && make NORM && mv NORM $(SRC)


##########################################
###### Update all external content #######
##########################################

update-rare-disease-subset:
$(MAKE) subset-metrics -B && cp tmp/subset-metrics.tsv tmp/subset-metrics-before.tsv
$(MAKE) update-orphanet-subset -B
$(MAKE) update-gard -B
$(MAKE) update-nord -B
$(MAKE) update-inferred-subset -B
$(MAKE) update-rare-subset -B
$(MAKE) subset-metrics -B && cp tmp/subset-metrics.tsv tmp/subset-metrics-after.tsv
@echo "Subset metrics before..."
cat tmp/subset-metrics-before.tsv
@echo "Subset metrics after..."
cat tmp/subset-metrics-after.tsv

clingen-otar-ordo-content:
$(MAKE) subset-metrics -B && cp tmp/subset-metrics.tsv tmp/subset-metrics-before.tsv
$(MAKE) update-efo-subset -B
$(MAKE) update-clingen -B
$(MAKE) update-ordo-subsets -B
$(MAKE) update-nando -B
$(MAKE) subset-metrics -B && cp tmp/subset-metrics.tsv tmp/subset-metrics-after.tsv
@echo "Subset metrics before..."
cat tmp/subset-metrics-before.tsv
@echo "Subset metrics after..."
cat tmp/subset-metrics-after.tsv

update-external-content:
$(MAKE) subset-metrics -B && cp tmp/subset-metrics.tsv tmp/subset-metrics-before.tsv
$(MAKE) update-efo-subset -B
#$(MAKE) update-clingen -B
#$(MAKE) update-nando -B
#$(MAKE) update-nord -B
#$(MAKE) update-gard -B
$(MAKE) update-orphanet-subset -B
$(MAKE) update-inferred-subset -B
$(MAKE) update-rare-subset -B
$(MAKE) subset-metrics -B && cp tmp/subset-metrics.tsv tmp/subset-metrics-after.tsv
@echo "Subset metrics before..."
cat tmp/subset-metrics-before.tsv
@echo "Subset metrics after..."
cat tmp/subset-metrics-after.tsv

.PHONY: subset-metrics
subset-metrics:
$(ROBOT) query -f tsv -i $(SRC) --query $(SPARQLDIR)/reports/count-subsets.sparql tmp/[email protected]

##########################################
##### RARE REPORT ########################
##########################################

reports/new-rare-diseases.txt: $(ONT)-base.owl
$(ROBOT) query -i $(ONT)-base.owl --query ../sparql/signature/rare-subset.sparql $@
Expand Down Expand Up @@ -1105,6 +1353,15 @@ mondo_obo:
tmp/mondo-ingest.owl:
curl https://github.com/monarch-initiative/mondo-ingest/releases/latest/download/mondo-ingest.owl -L --output $@

tmp/mondo_paper.owl: mondo.owl
cp $< $@

tmp/mondo_paper.db: tmp/mondo_paper.owl
@rm -f .template.db
@rm -f .template.db.tmp
RUST_BACKTRACE=full semsql make $@ -P config/prefixes.csv
@rm -f .template.db
@rm -f .template.db.tmp

tmp/mondo-ingest.db: tmp/mondo-ingest.owl
@rm -f .template.db
Expand Down Expand Up @@ -1134,6 +1391,11 @@ mondo-harrisons-view.owl: mondo.owl tmp/harrisons_seed.txt
$(ROBOT) remove -i $< -T tmp/harrisons_seed.txt --select complement --select classes --select "MONDO:*" \
annotate -V $(ONTBASE)/releases/`date +%Y-%m-%d`/$@ annotate --ontology-iri $(ONTBASE)/$@ -o $@

qdiff:
wget "http://purl.obolibrary.org/obo/mondo.obo" -O tmp/m.obo
wget "http://purl.obolibrary.org/obo/mondo/mondo-base.obo" -O tmp/mb.obo
robot diff --left tmp/m.obo --right tmp/mb.obo -o tmp/qdiff.txt
robot diff --left tmp/m.obo --right tmp/mb.obo -f markdown -o tmp/qdiff.md

######################################
### Mondo managing major use ids #####
Expand Down Expand Up @@ -1227,13 +1489,6 @@ americanize: $(SRC) tmp/british_english_dictionary.csv
python ../scripts/clean-british-english.py $^


.PHONY: update-gard-mappings
update-gard-mappings:
grep -v '^xref: GARD:' mondo-edit.obo > TT || true
mv TT mondo-edit.obo
# make NORM
# mv NORM $(SRC)


#######################################
### New Pattern merge pipeline ########
Expand Down Expand Up @@ -1282,7 +1537,7 @@ config/exclusion_reasons.tsv:

all: config/exclusion_reasons.tsv

##################################
#################################
##### Scheduled GH Actions #######
##################################

Expand Down
Loading
Loading