Skip to content

Commit

Permalink
Update GARD mappings (major) (#6347)
Browse files Browse the repository at this point in the history
* Update mondo.Makefile

* Update mondo-edit.obo

* Update mondo.Makefile

* Update mondo.Makefile

* Update mondo-edit.obo

* - Bugfix: deprecated_annotation_merging: Now correctly replaces/reorders these annotations.

* Update mondo-edit.obo

* Update gard

* Mondo::GARD obsoletes (#6451)

* Mondo::GARD obsoletes
- Getting a list of all Mondo terms that are obsoleted and have a GARD relationship.

* Mondo::GARD obsoletes
- Update: Changed implementation from OAK to SPARQL. The only reason for this is in order to get obsolete reason.

* Mondo::GARD obsoletes
- Update: Made rdfs:comment optional
- Added: Obsolescence reason 'IAO_0000231'

* Update mondo.Makefile

* Remove old GARD mappings from Mondo

* Update obsolete list

---------

Co-authored-by: joeflack4 <[email protected]>
  • Loading branch information
matentzn and joeflack4 authored Aug 9, 2023
1 parent c52b3b0 commit 185bde8
Show file tree
Hide file tree
Showing 6 changed files with 884 additions and 5,897 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ src/ontology/mondo.json
src/ontology/mondo.obo
src/ontology/mondo.owl
src/ontology/reasoned.owl
src/ontology/reports
src/ontology/reports/*
!src/ontology/reports/gard-mondo-mapped-obsoletes.tsv
src/ontology/test_nomerge
src/ontology/subsets/mondo-minimal.owl.tmp2.owl
src/ontology/subsets/mondo-minimal.owl.tmp.owl
Expand Down
7 changes: 4 additions & 3 deletions src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ $(ONT)-with-equivalents.json: $(ONT)-with-equivalents.owl
# we remove imports and merge in additional assertions
# note: typically component is not pre-reasoned, but this is compex for mondo.

OTHER_SRC=imports/axioms.owl components/mondo-subsets.owl
OTHER_SRC=imports/axioms.owl components/mondo-subsets.owl #components/mondo-tags.owl

$(ONT)-base.owl: reasoned.owl
$(ONT)-base.owl: reasoned.owl $(OTHER_SRC)
$(ROBOT) remove --input $< --select imports --trim false \
merge $(patsubst %, -i %, $(OTHER_SRC)) \
annotate --annotation http://purl.org/dc/elements/1.1/type http://purl.obolibrary.org/obo/IAO_8000001 \
Expand Down Expand Up @@ -371,7 +371,8 @@ subsets/%.obo: subsets/%.owl
$(ROBOT) convert -i $< -o $@.tmp.obo && grep -v ^owl-axioms: $@.tmp.obo > $@ && rm $@.tmp.obo

rare_subset:
$(MAKE) IMP=false MIR=false COMP=false subsets/mondo-rare.owl
$(MAKE) IMP=false MIR=false COMP=false components/mondo-subsets.owl
$(MAKE) IMP=false MIR=false COMP=false subsets/mondo-rare.owl subsets/mondo-rare.json subsets/mondo-rare.obo

# ----------------------------------------
# DOSDP Modules
Expand Down
Loading

0 comments on commit 185bde8

Please sign in to comment.