Skip to content

Commit 4fb7bac

Browse files
committed
Adding reason step for maxo
1 parent 6e85c0a commit 4fb7bac

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,24 @@ SELECTED_ONTS = obi mondo go envo ro hp mp zfa wbphenotype ecto upheno uberon_cm
1717
# EXTRA_ONTOLOGIES is defined in ontologies.Makefile
1818
ALL_ONTS = $(ALL_OBO_ONTS) $(EXTRA_ONTOLOGIES)
1919

20-
STAGED_ONTOLOGIES = $(patsubst %,stage/%.db.gz,$(ALL_ONTS))
20+
STAGED_ONTOLOGIES = $(patsubst %, stage/%.db.gz, $(ALL_ONTS))
2121

2222
TEST_ONTOLOGIES = go-nucleus robot-example
2323

2424

2525
all: build_all stage_all
2626
build_all: $(patsubst %,all-%,$(ALL_ONTS))
2727
stage_all: $(STAGED_ONTOLOGIES)
28+
echo done $(STAGED_ONTOLOGIES)
2829

2930
selected: $(patsubst %,all-%,$(SELECTED_ONTS))
3031

3132
all-%: db/%.db
3233
sqlite3 $< "SELECT COUNT(*) FROM statements"
33-
stage/%.db.gz: db/%.db
34-
gzip -c $< > $@.tmp && mv $@.tmp $@
34+
#stage/%.db.gz: db/%.db
35+
# gzip -c $< > [email protected] && mv [email protected] $@
36+
stage/%.db.gz:
37+
gzip -c db/$*.db > $@.tmp && mv $@.tmp $@
3538
.PRECIOUS: stage/%.db.gz
3639

3740
list-onts:

ontologies.Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ db/ncit.owl: download/ncit.owl
2020
robot relax -i $< merge -o $@
2121

2222

23+
download/maxo.owl: STAMP
24+
curl -L -s http://purl.obolibrary.org/obo/maxo.owl > $@.tmp
25+
sha256sum -b $@.tmp > $@.sha256
26+
mv $@.tmp $@
27+
28+
.PRECIOUS: download/maxo.owl
29+
30+
db/maxo.owl: download/maxo.owl
31+
robot relax -i $< merge -o $@
32+
33+
2334
download/foodon.owl: STAMP
2435
curl -L -s http://purl.obolibrary.org/obo/foodon.owl > $@.tmp
2536
sha256sum -b $@.tmp > $@.sha256
@@ -371,4 +382,4 @@ download/%.owl: STAMP
371382
db/%.owl: download/%.owl
372383
robot merge -i $< -o $@
373384

374-
EXTRA_ONTOLOGIES = chiro ncit foodon chebiplus msio phenio comploinc bero aio reacto go go-lego bao orcid cpont biolink biopax enanomapper mlo ito reactome-Homo-sapiens efo edam sweetAll lov schema-dot-org cosmo co_324 hgnc.genegroup hgnc dictybase eccode uniprot
385+
EXTRA_ONTOLOGIES = chiro ncit maxo foodon chebiplus msio phenio comploinc bero aio reacto go go-lego bao orcid cpont biolink biopax enanomapper mlo ito reactome-Homo-sapiens efo edam sweetAll lov schema-dot-org cosmo co_324 hgnc.genegroup hgnc dictybase eccode uniprot

src/semsql/builder/registry/ontologies.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ ontologies:
88
ncit:
99
url: http://purl.obolibrary.org/obo/ncit.owl
1010
build_command: "robot relax -i $< merge -o $@"
11+
maxo:
12+
url: http://purl.obolibrary.org/obo/maxo.owl
13+
# https://github.com/monarch-initiative/MAxO/issues/367
14+
build_command: "robot relax -i $< merge reason -r structural -o $@"
1115
foodon:
1216
url: http://purl.obolibrary.org/obo/foodon.owl
1317
build_command: "robot merge -i $< relax reduce -c true -o $@"

0 commit comments

Comments
 (0)