Skip to content

Commit

Permalink
Merge pull request #39 from microbiomedata/38-report-all-valid-biomes…
Browse files Browse the repository at this point in the history
…-and-environmental-mediums

problematic env_braod_scale and env_material
  • Loading branch information
turbomam authored Feb 16, 2024
2 parents 15441a6 + ac97511 commit 46c7986
Show file tree
Hide file tree
Showing 10 changed files with 17,315 additions and 4 deletions.
27 changes: 26 additions & 1 deletion data-vs-ontology-reports.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ data-vs-ontology-all: data-vs-ontology-clean \
data-vs-ontology-reports/report-id-ranges.tsv \
data-vs-ontology-reports/envo-id-ranges-report.tsv \
data-vs-ontology-reports/fma-usage-report.tsv \
data-vs-ontology-reports/nmdco-envo-classes-with-id-owner.tsv
data-vs-ontology-reports/nmdco-envo-classes-with-id-owner.tsv \
data-vs-ontology-reports/problematic_triads.tsv

data-vs-ontology-clean:
rm -rf data-vs-ontology-reports/*
Expand Down Expand Up @@ -89,3 +90,27 @@ data-vs-ontology-reports/nmdco-envo-classes-with-id-owner.tsv: data-vs-ontology-
--nmdco-classes-json-input $(word 2,$^) \
--output $@

data-vs-ontology-reports/envo-biomes.txt: downloads/envo.db
$(RUN) runoak \
--input $< descendants -p i biome | sort -t '!' -k2,2 > $@

data-vs-ontology-reports/envo-environmental-materials.txt: downloads/envo.db
$(RUN) runoak \
--input $< descendants -p i 'environmental material' | sort -t '!' -k2,2 > $@


data-vs-ontology-reports/envo-all-classes.txt: downloads/envo.db
$(RUN) runoak \
--input $< descendants -p i entity | sort -t '!' -k2,2 > $@

data-vs-ontology-reports/problematic_triads.tsv: data-vs-ontology-reports/envo-all-classes.txt \
data-vs-ontology-reports/envo-biomes.txt \
data-vs-ontology-reports/biosample-triad-report.tsv \
data-vs-ontology-reports/envo-environmental-materials.txt
$(RUN) find-biosamples-with-problematic-triads \
--all-envo-classes-file $(word 1, $^) \
--biomes-file $(word 2, $^) \
--biosamples-file $(word 3, $^) \
--materials-file $(word 4, $^) \
--output $@ \
--output-summary data-vs-ontology-reports/problematic_triad_summary.yaml
Loading

0 comments on commit 46c7986

Please sign in to comment.