From ad86856f9a54809e3da2033a8ccc0b83d059cf7c Mon Sep 17 00:00:00 2001 From: Trish Whetzel Date: Wed, 24 Jul 2024 23:00:07 -0700 Subject: [PATCH] add goals to generate a mapping change diff report (#7962) * add goals to generate a mapping change diff report * Update src/ontology/mondo.Makefile Co-authored-by: Nico Matentzoglu * Update src/ontology/mondo.Makefile Co-authored-by: Nico Matentzoglu * Update src/ontology/mondo.Makefile Co-authored-by: Nico Matentzoglu * Remove txt KGCL output This output was not needed for the Mondo DIFF pipeline --------- Co-authored-by: Nico Matentzoglu --- src/ontology/mondo.Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/ontology/mondo.Makefile b/src/ontology/mondo.Makefile index 45aa1db667..4f3123d3ad 100644 --- a/src/ontology/mondo.Makefile +++ b/src/ontology/mondo.Makefile @@ -638,6 +638,35 @@ release_diff: reports/mondo_release_diff.md all: reports/mondo_release_diff.md all: reports/mondo_obsoletioncandidates.tsv +################## +### KGCL Diff #### +################## + +KGCL_ONTOLOGY=mondo-base.obo + +all: kgcl-diff + +.PHONY: kgcl-diff +kgcl-diff: kgcl-diff-release-base + +.PHONY: kgcl-diff-release-base +kgcl-diff-release-base: reports/difference_release_base.yaml \ + reports/difference_release_base.tsv \ + reports/difference_release_base.md + +tmp/mondo-released.obo: .FORCE + wget http://purl.obolibrary.org/obo/mondo/$(KGCL_ONTOLOGY) -O $@ + +reports/difference_release_base.md: tmp/mondo-released.obo $(KGCL_ONTOLOGY) + runoak -i simpleobo:tmp/mondo-released.obo diff -X simpleobo:$(KGCL_ONTOLOGY) -o $@ --output-type md + +reports/difference_release_base.tsv: tmp/mondo-released.obo $(KGCL_ONTOLOGY) + runoak -i simpleobo:tmp/mondo-released.obo diff -X simpleobo:$(KGCL_ONTOLOGY) \ + -o $@ --output-type csv --statistics --group-by-property oio:hasOBONamespace + +reports/difference_release_base.yaml: tmp/mondo-released.obo $(KGCL_ONTOLOGY) + runoak -i simpleobo:tmp/mondo-released.obo diff -X simpleobo:$(KGCL_ONTOLOGY) -o $@ --output-type yaml + ########################### ## MONDO VIEW GENERATION ## ###########################