Skip to content

Commit

Permalink
merged makefiles #9
Browse files Browse the repository at this point in the history
  • Loading branch information
hkir-dev committed Mar 8, 2022
1 parent cc1d342 commit 63f883f
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 163,484 deletions.
22 changes: 20 additions & 2 deletions src/ontology/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
JOBS = 1 17 10 16 8

ROBOT = robot
URIBASE = http://purl.obolibrary.org/obo

all: dependencies aba_uberon.owl report.xlsx
LINKML = linkml-data2owl

STRUCTURE_GRAPHS = $(patsubst %, sources/%.json, $(JOBS))
ALL_GRAPH_ONTOLOGIES = $(patsubst sources/%.json,sources/%.ofn,$(STRUCTURE_GRAPHS))
#ALL_TEMPLATES = $(patsubst sources/%.json,../linkml/data/template_%.tsv,$(STRUCTURE_GRAPHS))

all: dependencies $(ALL_GRAPH_ONTOLOGIES) aba_uberon.owl report.xlsx

# Installing depedencies so it can run in ODK container

.PHONY: dependencies
dependencies:
pip install openpyxl
pip install -r ../../requirements.txt

IMP=true # Global parameter to bypass import generation
MIR=true # Global parameter to bypass mirror generation
Expand All @@ -18,6 +26,16 @@ mirror/uberon.owl:

# TODO: move to making uberon slice.

sources/%.json:
curl -o $@ $(subst %,$(subst sources/,,$@),"http://api.brain-map.org/api/v2/structure_graph_download/%")

../linkml/data/template_%.tsv: sources/%.json
python ../scripts/structure_graph_template.py -i $< -o $@

sources/%.ofn: ../linkml/data/template_%.tsv
$(LINKML) -C Class -s ../linkml/structure_graph_schema.yaml $< -o $@
.PRECIOUS: sources/%.ofn

#Convert to obo format

sources/allen-mba.obo:
Expand Down
5,316 changes: 0 additions & 5,316 deletions src/ontology/sources/1.ofn

This file was deleted.

7,364 changes: 0 additions & 7,364 deletions src/ontology/sources/10.ofn

This file was deleted.

13,276 changes: 0 additions & 13,276 deletions src/ontology/sources/16.ofn

This file was deleted.

10,776 changes: 0 additions & 10,776 deletions src/ontology/sources/17.ofn

This file was deleted.

1,044 changes: 0 additions & 1,044 deletions src/ontology/sources/8.ofn

This file was deleted.

2 changes: 1 addition & 1 deletion src/scripts/structure_graph_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"17.json": "http://purl.obolibrary.org/obo/DMBA_",
"10.json": "http://purl.obolibrary.org/obo/HBA_",
"16.json": "http://purl.obolibrary.org/obo/DHBA_",
"8.json": "http://purl.obolibrary.org/obo/PHA_"}
"8.json": "http://purl.obolibrary.org/obo/PBA_"}


def generate_template(graph_json, output):
Expand Down
Loading

0 comments on commit 63f883f

Please sign in to comment.