Skip to content

Commit a49c34b

Browse files
committed
Update release to incorporate DO-to-OMIM susc relations
1 parent 091851d commit a49c34b

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

Makefile

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,24 @@ define build_obo
531531
mv $(1).tmp.obo $(1)
532532
endef
533533

534+
# ----------------------------------------
535+
# AUTOMATED IMPORTS -- MERGE ONLY
536+
# ----------------------------------------
537+
538+
build/update/omim-susc-invert.owl: src/ontology/imports/omim_susc_import.owl \
539+
src/sparql/update/omim-susc-invert.rq | check_robot build/update
540+
@echo "Inverting OMIM susceptibility relations..."
541+
@$(ROBOT) query \
542+
--input $< \
543+
--query $(word 2,$^) $@
544+
545+
EDIT_EXT := build/update/doid-edit-extended.owl
546+
$(EDIT_EXT): $(EDIT) build/update/omim-susc-invert.owl | check_robot
547+
@$(ROBOT) merge \
548+
--input $< \
549+
--input $(word 2,$^) \
550+
--collapse-import-closure false \
551+
--output $@
534552

535553
# ----------------------------------------
536554
# DOID
@@ -539,7 +557,7 @@ endef
539557
.PHONY: primary
540558
primary: $(DO).owl $(DO).obo $(DO).json
541559

542-
$(DO).owl: $(EDIT) src/sparql/build/add_en_tag.ru | check_robot test
560+
$(DO).owl: $(EDIT_EXT) src/sparql/build/add_en_tag.ru | check_robot test
543561
@$(ROBOT) reason \
544562
--input $< \
545563
--create-new-ontology false \
@@ -563,13 +581,13 @@ $(DO).json: $(DO).owl | check_robot
563581
@echo "Created $@"
564582

565583
# ----------------------------------------
566-
# DOID-BASE
584+
# DOID-BASE (pre-reasoned, includes logical axioms, excludes imports)
567585
# ----------------------------------------
568586

569587
.PHONY: base
570588
base: $(DB).owl $(DB).obo $(DB).json
571589

572-
$(DB).owl: $(EDIT) src/sparql/build/add_en_tag.ru | check_robot
590+
$(DB).owl: $(EDIT_EXT) src/sparql/build/add_en_tag.ru | check_robot
573591
@$(ROBOT) remove \
574592
--input $< \
575593
--select imports \
@@ -618,13 +636,13 @@ $(DM).json: $(DM).owl | check_robot
618636
@echo "Created $@"
619637

620638
# ----------------------------------------
621-
# HUMANDO
639+
# HUMANDO (pre-reasoned, excludes logical axioms and imports)
622640
# ----------------------------------------
623641

624642
.PHONY: human
625643
human: $(DNC).owl $(DNC).obo $(DNC).json
626644

627-
$(DNC).owl: $(EDIT) src/sparql/build/add_en_tag.ru | check_robot
645+
$(DNC).owl: $(EDIT_EXT) src/sparql/build/add_en_tag.ru | check_robot
628646
@$(ROBOT) remove \
629647
--input $< \
630648
--select imports \
@@ -708,20 +726,20 @@ release_reports: $(REL_REPORTS) DOreports/DO-subClassOf-anonymous.tsv \
708726
DOreports:
709727
mkdir $@
710728

711-
DOreports/%.tsv: $(EDIT) src/sparql/DOreports/%.rq | DOreports check_robot
729+
DOreports/%.tsv: $(EDIT_EXT) src/sparql/DOreports/%.rq | DOreports check_robot
712730
@$(ROBOT) query --input $< --query $(word 2,$^) $@
713731
@sed '1 s/?//g' $@ > $@.tmp && mv $@.tmp $@
714732
@echo "Created $@"
715733

716-
DOreports/DO-subClassOf-anonymous.tsv: $(EDIT) | DOreports check_robot
734+
DOreports/DO-subClassOf-anonymous.tsv: $(EDIT_EXT) | DOreports check_robot
717735
@$(ROBOT) export \
718736
--input $< \
719737
--header "ID|LABEL|SubClass Of [ANON]" \
720738
--export $@
721739
@awk -F"\t" '$$3!=""' $@ > $@.tmp && mv $@.tmp $@
722740
@echo "Created $@"
723741

724-
DOreports/DO-equivalentClass.tsv: $(EDIT) | DOreports check_robot
742+
DOreports/DO-equivalentClass.tsv: $(EDIT_EXT) | DOreports check_robot
725743
@$(ROBOT) export \
726744
--input $< \
727745
--header "ID|LABEL|Equivalent Class" \

0 commit comments

Comments
 (0)