-
Notifications
You must be signed in to change notification settings - Fork 12
/
adhoc.Makefile
28 lines (19 loc) · 1.26 KB
/
adhoc.Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
RUN = poetry run
DB_PATH = db
data/nmdc.json:
$(RUN) python -m curategpt.adhoc.nmdc_sample_downloader --no-stream --format json > $@
data/clingen.json:
wget https://actionability.clinicalgenome.org/ac/Pediatric/api/summ -O $@
index-nmdc: data/nmdc.json
$(RUN) curategpt -v index -p $(DB_PATH) -m openai: -c biosamples_nmdc_oai --object-type Biosample --description "Samples taken from NMDC database" $<
index-%-issues:
$(RUN) curategpt index -p $(DB_PATH) -c github_issues_$*_oai -m openai: --glob "../formal-ontology-analysis/repo-dirs/metadata/$*-issue-*.json"
#index-all-issues-gh:
# $(RUN) curategpt index -p $(DB_PATH) -c github_issues_all_oai -m openai: ../formal-ontology-analysis/repo-dirs/metadata/
index-phenopackets:
$(RUN) curategpt index -p $(DB_PATH) -c phenopackets_384_oai -m openai: --object-type Phenopacket --description "Phenopackets from https://zenodo.org/record/3905420" data/phenopackets/*.json
# (head -1 data/monarch-kg-lite.tsv && tail -n +2 data/monarch-kg-lite.tsv | sort -u)
data/monarch-kg-lite.tsv:
gzip -dc ~/Downloads/monarch-kg-denormalized-edges.tsv.gz | csvcut -t -c subject_label,predicate,object_label,subject_category,object_category | perl -npe "s@biolink:@@g" > $@
# clinical trials
# https://classic.clinicaltrials.gov/AllAPIJSON.zip