-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathMakefile
More file actions
129 lines (82 loc) · 4.17 KB
/
Copy pathMakefile
File metadata and controls
129 lines (82 loc) · 4.17 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
RUN = poetry run
CURATE = $(RUN) curategpt
DB_PATH = stagedb
ONTS = cl uberon obi go envo hp mp mondo po to oba agro fbbt nbo chebi vo peco maxo
TRACKERS = cl uberon obi envo hp mondo go
DBS = gocam reactome bacdive mediadive alliance_gene maxoa hpoa hpoa_by_pub gocam reactome
all: index_all_ont
## -- Ontology Indexing --
index_all_ont: $(patsubst %,ont-%,$(ONTS))
index_all_issues: $(patsubst %,load-github-%,$(ONTS))
ont-%:
$(CURATE) ontology index --index-fields label,definition,relationships -p $(DB_PATH) -c ont_$* -m openai: sqlite:obo:$*
## -- Web App --
app:
$(RUN) streamlit run src/curategpt/app/app.py --logger.level=debug
# New pattern-based app command for variants
app-%:
$(RUN) streamlit run src/curategpt/app/app_$*.py --logger.level=debug
## -- Docs --
apidoc:
$(RUN) sphinx-apidoc -f -M -o docs/ src/curategpt/ && cd docs && $(RUN) make html
%-doctest: %
$(RUN) python -m doctest --option ELLIPSIS --option NORMALIZE_WHITESPACE $<
## -- Sample Datasets --
load-biosamples_nmdc:
$(CURATE) index -p $(DB_PATH) -V nmdc -c $@ -m openai: API
## -- Annotation Files --
load-hpoa:
$(CURATE) -v index -p $(DB_PATH) --batch-size 10 -V hpoa -c hpoa -m openai: URL
load-hpoa-by-pub:
$(CURATE) -v index -p $(DB_PATH) --batch-size 5 -V hpoa_by_pub -c hpoa_by_pub -m openai: URL
# note: maxoa repo still private, must be downloaded
load-maxoa:
$(CURATE) -v index -p $(DB_PATH) --batch-size 10 -V maxoa -c maxoa -m openai: data/maxoa.tsv
# note: assumes local checkout in sibling directory;
# in future it should pull this from the web
load-rdp:
$(CURATE) index -p $(DB_PATH) --view reusabledata -c datasets_rdp -m openai:
## -- Generic --
load-generic-%:
$(CURATE) -v view index --view $@ --batch-size 10 -c $* -m openai: WEB
load-json-data-%: data/%.json
$(CURATE) index -c $* -c $* $<
load-db-%:
$(CURATE) -v view index -p $(DB_PATH) --view $* -c $* -m openai:
load-linkml-w3id-%:
$(CURATE) view index --view linkml_schema -c schema_$* -m openai: --source-locator https://w3id.org/$*/$*.yaml
load-mixs: load-linkml-w3id-mixs
load-bacdive:
$(CURATE) -v view index -p $(DB_PATH) -m openai: -c strain_bacdive -V bacdive --source-locator ~/Downloads/bacdive_strains.json
load-cdr:
$(CURATE) -v index -p $(DB_PATH) -V bioc -c cdr_test -m openai: data/CDR_TestSet.BioC.xml.gz
load-uniprot-%:
$(CURATE) -v index -p $(DB_PATH) -V uniprot -c uniprot_$* -m openai: --view-settings "taxon_id: $*"
## -- GitHub issues --
# TODO: patternize
load-github-uberon:
$(CURATE) -v view index -p $(DB_PATH) -c gh_uberon -m openai: --view github --init-with "{repo: obophenotype/uberon}"
load-github-hp:
$(CURATE) -v view index -p $(DB_PATH) -c gh_hp -m openai: --view github --init-with "{repo: obophenotype/human-phenotype-ontology}"
load-github-go:
$(CURATE) -v view index -p $(DB_PATH) -c gh_go -m openai: --view github --init-with "{repo: geneontology/go-ontology}"
load-github-cl:
$(CURATE) -v view index -p $(DB_PATH) -c gh_cl -m openai: --view github --init-with "{repo: obophenotype/cell-ontology}"
load-github-to:
$(CURATE) -v view index -p $(DB_PATH) -c gh_to -m openai: --view github --init-with "{repo: Planteome/plant-trait-ontology}"
load-github-po:
$(CURATE) -v view index -p $(DB_PATH) -c gh_po -m openai: --view github --init-with "{repo: Planteome/plant-ontology}"
load-github-envo:
$(CURATE) -v view index -p $(DB_PATH) -c gh_envo -m openai: --view github --init-with "{repo: EnvironmentOntology/envo}"
load-github-obi:
$(CURATE) -v view index -p $(DB_PATH) -c gh_obi -m openai: --view github --init-with "{repo: obi-ontology/obi}"
load-github-mondo:
$(CURATE) -v view index -p $(DB_PATH) -c gh_obi -m openai: --view github --init-with "{repo: monarch-initiative/mondo}"
load-github-maxo:
$(CURATE) -v view index -p $(DB_PATH) -c gh_maxo -m openai: --view github --init-with "{repo: monarch-initiative/MAxO}"
list:
$(CURATE) collections list -p $(DB_PATH)
load-github-mixs:
$(CURATE) -v view index -p $(DB_PATH) -c gh_mixs -m openai: --view github --init-with "{repo: GenomicsStandardsConsortium/mixs}"
load-github-nmdc-schema-issues-prs:
$(CURATE) -v view index -p $(DB_PATH) -c gh_nmdc -m openai: --view github --init-with "{repo: microbiomedata/nmdc-schema}"