Skip to content

Commit

Permalink
add goals to generate a mapping change diff report (#7962)
Browse files Browse the repository at this point in the history
* add goals to generate a mapping change diff report

* Update src/ontology/mondo.Makefile

Co-authored-by: Nico Matentzoglu <[email protected]>

* Update src/ontology/mondo.Makefile

Co-authored-by: Nico Matentzoglu <[email protected]>

* Update src/ontology/mondo.Makefile

Co-authored-by: Nico Matentzoglu <[email protected]>

* Remove txt KGCL output

This output was not needed for the Mondo DIFF pipeline

---------

Co-authored-by: Nico Matentzoglu <[email protected]>
  • Loading branch information
twhetzel and matentzn authored Jul 25, 2024
1 parent c5a4b8e commit ad86856
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/ontology/mondo.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ##
###########################
Expand Down

0 comments on commit ad86856

Please sign in to comment.