-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from microbiomedata/25-get-a-report-of-envo-te…
…rms-with-ids-in-the-range-of-nmdc-or-nmdc-contributors data-vs-ontology-reports
- Loading branch information
Showing
13 changed files
with
85 additions
and
28 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,5 +1,5 @@ | ||
src/ontology/nmdco-redundant.ttl | ||
local/ | ||
downloads/ | ||
**/__pycache__/ | ||
|
||
.DS_Store | ||
|
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
RUN=poetry run | ||
|
||
.PHONY: data-vs-ontology-all data-vs-ontology-clean | ||
|
||
|
||
data-vs-ontology-all: data-vs-ontology-clean \ | ||
data-vs-ontology-reports/envo-id-ranges-report.tsv \ | ||
data-vs-ontology-reports/fma-usage-report.tsv | ||
|
||
data-vs-ontology-clean: | ||
rm -rf data-vs-ontology-reports/* | ||
mkdir -p data-vs-ontology-reports | ||
touch data-vs-ontology-reports/.gitkeep | ||
rm -rf downloads/*owl* | ||
mkdir -p downloads | ||
touch downloads/.gitkeep | ||
|
||
downloads/envo-idranges.owl.omn: | ||
@echo "Downloading..." | ||
ifeq ($(shell command -v wget 2> /dev/null),) | ||
@echo "wget is not installed, trying with curl..." | ||
@curl -o $@ https://raw.githubusercontent.com/EnvironmentOntology/envo/master/src/envo/envo-idranges.owl | ||
else | ||
@echo "Downloading with wget..." | ||
@wget -O $@ https://raw.githubusercontent.com/EnvironmentOntology/envo/master/src/envo/envo-idranges.owl | ||
endif | ||
|
||
downloads/envo-idranges.owl.ttl: downloads/envo-idranges.owl.omn | ||
@echo "Converting..." | ||
@robot convert --input $< --output $@ | ||
|
||
data-vs-ontology-reports/envo-id-ranges-report.tsv: downloads/envo-idranges.owl.ttl | ||
@echo "Generating report..." | ||
$(RUN) report-id-ranges \ | ||
--id-ranges-ttl $< \ | ||
--output $@ | ||
|
||
data-vs-ontology-reports/biosample-triad-counts.tsv: | ||
@echo "Generating report..." | ||
$(RUN) report-instantiated-traids \ | ||
--output $@ \ | ||
--counts-output $(subst counts.tsv,report-counts.tsv,$@) | ||
|
||
data-vs-ontology-reports/fma-usage-report.tsv: data-vs-ontology-reports/biosample-triad-counts.tsv | ||
grep 'FMA:' $< > $@ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
nmdc:bsm-11-x80t5771 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-1zsths21 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-pqgnra85 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-aa7wmf63 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-vxy31194 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-adv25093 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-xhpt1920 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-afygsz12 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-f0y72191 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-96cg5y52 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-4fnr9v33 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-y16b7q98 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-8vae2844 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-2xw6s444 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-y4310d70 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-e5n81610 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-dcw37a90 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-spjbg416 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-4ppwq475 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-zxjp0468 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-05fh0s26 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-jxa03j76 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-nvz3sq09 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-sbrsd510 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-5aysb633 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-yvnp5859 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-7yq6an11 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-qhewdm80 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-p9t9wv58 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-dzmzp451 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-datvdm83 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-vh4jjb52 ENVO:01001002 FMA:14541 FMA:14541 | ||
nmdc:bsm-11-0q1w4832 ENVO:01001002 FMA:14541 FMA:14541 |
Empty file.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file removed
BIN
-1.69 KB
nmdc_ontology/__pycache__/report_instantiated_traids.cpython-310.pyc
Binary file not shown.
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
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