-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
97,540 additions
and
66,384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# TODO: parse from yaml | ||
BUILDS = hg38 ce11 mm10 rn6 galGal6 | ||
# https://hgdownload.soe.ucsc.edu/downloads.html | ||
BUILDS = hg38 ce11 mm39 rn6 galGal6 calJac4 danRer11 | ||
# TODO: dm6 | ||
RUN = poetry run | ||
|
||
all: all-chromAlias all-cytoBand src/ontology/components/ucsc.owl all-components ontology | ||
all-chromAlias: $(patsubst %, download/%-chromAlias.tsv, $(BUILDS)) | ||
|
@@ -18,29 +20,32 @@ test: | |
pytest | ||
|
||
download/%-chromAlias.tsv: | ||
curl -L -s http://hgdownload.cse.ucsc.edu/goldenPath/$*/database/chromAlias.txt.gz | gzip -dc > $@ | ||
curl -L -s http://hgdownload.cse.ucsc.edu/goldenPath/$*/database/chromAlias.txt.gz | gzip -dc > $@.tmp && mv $@.tmp $@ | ||
download/%-cytoBand.tsv: | ||
curl -L -s http://hgdownload.cse.ucsc.edu/goldenPath/$*/database/cytoBand.txt.gz | gzip -dc > $@ | ||
curl -L -s http://hgdownload.cse.ucsc.edu/goldenPath/$*/database/cytoBandIdeo.txt.gz | gzip -dc > $@.tmp && mv $@.tmp $@ | ||
# curl -L -s http://hgdownload.cse.ucsc.edu/goldenPath/$*/database/cytoBand.txt.gz | gzip -dc > [email protected] && mv [email protected] $@ | ||
download/ce11-cytoBand.tsv: | ||
curl -L -s http://hgdownload.cse.ucsc.edu/goldenPath/ce11/database/cytoBandIdeo.txt.gz | gzip -dc > $@ | ||
curl -L -s http://hgdownload.cse.ucsc.edu/goldenPath/ce11/database/cytoBandIdeo.txt.gz | gzip -dc > $@.tmp && mv $@.tmp $@ | ||
download/danRer10-cytoBand.tsv: | ||
curl -L -s http://hgdownload.cse.ucsc.edu/goldenPath/danRer10/database/cytoBandIdeo.txt.gz | gzip -dc > $@ | ||
curl -L -s http://hgdownload.cse.ucsc.edu/goldenPath/danRer10/database/cytoBandIdeo.txt.gz | gzip -dc > $@.tmp && mv $@.tmp $@ | ||
download/galGal6-cytoBand.tsv: | ||
curl -L -s http://hgdownload.cse.ucsc.edu/goldenPath/galGal6/database/cytoBandIdeo.txt.gz | gzip -dc > $@ | ||
curl -L -s http://hgdownload.cse.ucsc.edu/goldenPath/galGal6/database/cytoBandIdeo.txt.gz | gzip -dc > $@.tmp && mv $@.tmp $@ | ||
download/calJac4-cytoBand.tsv: | ||
curl -L -s http://hgdownload.cse.ucsc.edu/goldenPath/calJac4/database/cytoBandIdeo.txt.gz | gzip -dc > $@.tmp && mv $@.tmp $@ | ||
components/%.owl: download/%-cytoBand.tsv download/%-chromAlias.tsv | ||
python -m monochrom.monochrom $^ -o $@ | ||
$(RUN) ucsc2owl $^ -o $@ | ||
components/%.yaml: download/%-cytoBand.tsv download/%-chromAlias.tsv | ||
python -m monochrom.monochrom $^ -f yaml -o $@ | ||
$(RUN) ucsc2owl $^ -f yaml -o $@ | ||
|
||
download/ncit.owl: | ||
curl -L -s http://purl.obolibrary.org/obo/ncit.owl > $@ | ||
curl -L -s http://purl.obolibrary.org/obo/ncit.owl > $@.tmp && mv $@.tmp $@ | ||
|
||
download/ncit-chrom-terms.owl: download/ncit.owl config/ncit-chrom-terms.txt | ||
robot extract -i $< -m TOP -T config/ncit-chrom-terms.txt -o $@ | ||
|
||
# ODK will take things on from here | ||
src/ontology/tmp/ucsc.ofn: monochrom/monochrom.py monochrom/chromschema.py | ||
python -m monochrom.monochrom download/*-*.tsv -o $@.tmp && mv $@.tmp $@ | ||
$(RUN) ucsc2owl download/*-*.tsv -o $@.tmp && mv $@.tmp $@ | ||
.PRECIOUS: src/ontology/tmp/ucsc.ofn | ||
|
||
ONTBASE=http://purl.obolibrary.org/obo/chr | ||
|
@@ -51,7 +56,7 @@ src/ontology/components/ucsc.owl: src/ontology/tmp/ucsc.ofn | |
## Schema | ||
|
||
monochrom/chromschema.py: model/schema/chromo.yaml | ||
gen-py-classes model/schema/chromo.yaml > $@ | ||
gen-pydantic model/schema/chromo.yaml > $@.tmp && mv $@.tmp $@ | ||
|
||
gendocs: | ||
gen-markdown -d docs model/schema/chromo.yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.