-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.toplevel
516 lines (442 loc) · 18.3 KB
/
Makefile.toplevel
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
.PHONY: all html tar zip upload
.PHONY: html-civ-dna html-civ-dna-encephalitis
.PHONY: html-civ-rna html-civ-rna-encephalitis html-civ-rna-hcov
.PHONY: tar-civ-dna tar-civ-dna-encephalitis
.PHONY: tar-civ-dna-large tar-civ-dna-large-encephalitis
.PHONY: tar-civ-rna tar-civ-rna-encephalitis
.PHONY: zip-hcov-individual
.PHONY: clean-results colors
.PHONY: clean-civ-dna clean-civ-dna-encephalitis
.PHONY: clean-civ-dna-large clean-civ-dna-large-encephalitis
.PHONY: clean-civ-rna clean-civ-rna-encephalitis
.PHONY: clean-civ-rna-hcov
DIRS := $(wildcard [DW]_*/pipelines/standard)
STANDARD_DIRS := $(shell for i in [DW]_*; \
do \
if test -f $$i/sample-settings.sh; \
then \
egrep -q '^sampleType=standard$$' $$i/sample-settings.sh && echo $$i/pipelines/standard; \
else \
echo $$i/pipelines/standard; \
fi \
done)
HCOV_DIRS := $(shell for i in [DW]_*; \
do \
if test -f $$i/sample-settings.sh; \
then \
egrep -q '^sampleType=hcov$$' $$i/sample-settings.sh && echo $$i/pipelines/standard; \
fi \
done)
MEDMUSEUM_DIRS := $(shell for i in [DW]_*; \
do \
if test -f $$i/sample-settings.sh; \
then \
egrep -q '^sampleType=medmuseum$$' $$i/sample-settings.sh && echo $$i/pipelines/standard; \
fi \
done)
# RUNID will be something like 191205
RUNID := $(shell basename $(shell /bin/pwd))
# CIV_DATE *must* match the value of civDate in common.sh
CIV_DATE := 20200308
CIV_DIR := /rds/project/djs200/rds-djs200-acorg/bt/root/share/civ
# The following must match the dnaProteinGenomeDB and rnaProteinGenomeDB
# variables in common.sh
DNA_PROTEIN_GENOME_DB := $(CIV_DIR)/$(CIV_DATE)-dna-protein-genome.db
DNA_LARGE_PROTEIN_GENOME_DB := $(CIV_DIR)/$(CIV_DATE)-dna-large-protein-genome.db
RNA_PROTEIN_GENOME_DB := $(CIV_DIR)/$(CIV_DATE)-rna-protein-genome.db
# For the large DNA database panels.
DNA_LARGE_MIN_PROTEIN_COUNT := 5
# The following must match the taxonomyDB variable in common.sh
TAXONOMY_DB := $(CIV_DIR)/$(CIV_DATE)-taxonomy.db
ENCEPHALITIS_REGEX := '$(shell cat ../csd3-pipeline/encephalitis-regex.txt)'
SAMPLE_NAME_REGEX := '^([DW]_[^/]+_[DR]NA)'
PREAMBLE_FILE := summary-preamble.html
# The civnb.info user name. We only know about two names since there are
# only two Cambridge accounts (Terry, Barbara) that could be doing this.
UPLOAD_USERID := $(shell test $$USER = tcj25 && echo terry || echo barbara)
UPLOAD_HOST := civnb.info
UPLOAD_DIR := /1GB/diagnostics/tmp
REPO_DIR := /1GB/diagnostics/bih-pipeline
UNTAR_SCRIPT := /1GB/diagnostics/bih-pipeline/bin/untar-results.sh
# It's possible that the PNG panel files do not exist due to no (or
# insufficiently) matching viruses. So, use variables that contains the
# PNG file names only if they exist.
DNA_PNG_FILE := $(shell test -f virus-civ-dna.png && echo virus-civ-dna.png)
DNA_LARGE_PNG_FILE := $(shell test -f virus-civ-dna-large.png && echo virus-civ-dna-large.png)
DNA_ENCEPHALITIS_PNG_FILE := $(shell test -f virus-civ-dna-encephalitis.png && echo virus-civ-dna-encephalitis.png)
DNA_LARGE_ENCEPHALITIS_PNG_FILE := $(shell test -f virus-civ-dna-large-encephalitis.png && echo virus-civ-dna-large-encephalitis.png)
RNA_PNG_FILE := $(shell test -f virus-civ-rna.png && echo virus-civ-rna.png)
RNA_ENCEPHALITIS_PNG_FILE := $(shell test -f virus-civ-rna-encephalitis.png && echo virus-civ-rna-encephalitis.png)
RNA_HCOV_PNG_FILE := $(shell test -f virus-civ-rna-hcov.png && echo virus-civ-rna-hcov.png)
# Similarly, there may be no panels.
DNA_PANEL_OUT_DIRS := $(wildcard [DW]_*/pipelines/standard/04-panel-civ-dna/out)
DNA_LARGE_PANEL_OUT_DIRS := $(wildcard [DW]_*/pipelines/standard/04-panel-civ-dna-large/out)
DNA_ENCEPHALITIS_PANEL_OUT_DIRS := $(wildcard [DW]_*/pipelines/standard/04-panel-civ-dna-encephalitis/out)
DNA_LARGE_ENCEPHALITIS_PANEL_OUT_DIRS := $(wildcard [DW]_*/pipelines/standard/04-panel-civ-dna-large-encephalitis/out)
RNA_PANEL_OUT_DIRS := $(wildcard [DW]_*/pipelines/standard/04-panel-civ-rna/out)
RNA_ENCEPHALITIS_PANEL_OUT_DIRS := $(wildcard [DW]_*/pipelines/standard/04-panel-civ-rna-encephalitis/out)
RNA_HCOV_PANEL_OUT_DIRS := $(wildcard [DW]_*/pipelines/standard/04-panel-civ-rna-hcov/out)
# See the 'colors' target at bottom for how I made the following color list.
READ_COUNT_COLORS := --readCountColor "10 \#0173b2" --readCountColor "50 \#de8f05" --readCountColor "100 \#029e73" --readCountColor "500 \#d55e00" --readCountColor "1000 \#cc78bc"
all: html tar zip upload
preamble:
summarize-run.py --run $(RUNID) > $(PREAMBLE_FILE)
gitpull:
cd ../bih-pipeline && git pull
html: gitpull \
preamble \
html-civ-dna \
html-civ-dna-encephalitis \
html-civ-dna-large \
html-civ-dna-large-encephalitis \
html-civ-rna \
html-civ-rna-encephalitis \
html-civ-rna-hcov
tar: tar-civ-dna \
tar-civ-dna-encephalitis \
tar-civ-dna-large \
tar-civ-dna-large-encephalitis \
tar-civ-rna \
tar-civ-rna-encephalitis \
tar-civ-rna-hcov
html-civ-dna:
find $(DIRS) -name summary-proteins | \
grep 04-panel-civ-dna/ | \
proteins-to-pathogens-civ.py \
--html \
--title "Summary of small DNA viruses for run $(RUNID)" \
--proteinGenomeDatabase $(DNA_PROTEIN_GENOME_DB) \
--taxonomyDatabase $(TAXONOMY_DB) \
--format fastq \
--preamble $(PREAMBLE_FILE) \
--preamble "<p>Database: Charité custom DNA protein database from the NCBI refseq virus genomes.</p>" \
--sampleNameRegex $(SAMPLE_NAME_REGEX) \
--pathogenType viral \
--pathogenPanelFilename virus-civ-dna.png \
--sampleIndexFilename samples-civ-dna.index \
--pathogenDataDir pathogen-data-civ-dna \
--bootstrapTreeviewDir .. \
$(READ_COUNT_COLORS) \
> index-civ-dna.html
html-civ-dna-large:
find $(DIRS) -name summary-proteins | \
grep 04-panel-civ-dna-large/ | \
proteins-to-pathogens-civ.py \
--html \
--title "Summary of large DNA viruses for run $(RUNID)" \
--minProteinCount $(DNA_LARGE_MIN_PROTEIN_COUNT) \
--proteinGenomeDatabase $(DNA_LARGE_PROTEIN_GENOME_DB) \
--taxonomyDatabase $(TAXONOMY_DB) \
--format fastq \
--preamble $(PREAMBLE_FILE) \
--preamble "<p>Database: Charité custom large DNA protein database from the NCBI refseq virus genomes.</p>" \
--sampleNameRegex $(SAMPLE_NAME_REGEX) \
--pathogenType viral \
--pathogenPanelFilename virus-civ-dna-large.png \
--sampleIndexFilename samples-civ-dna-large.index \
--pathogenDataDir pathogen-data-civ-dna-large \
--bootstrapTreeviewDir .. \
$(READ_COUNT_COLORS) \
> index-civ-dna-large.html
html-civ-rna:
if test -n "$(STANDARD_DIRS)"; then \
find $(STANDARD_DIRS) -name summary-proteins | \
grep 04-panel-civ-rna/ | \
proteins-to-pathogens-civ.py \
--html \
--title "Summary of RNA viruses for run $(RUNID)" \
--proteinGenomeDatabase $(RNA_PROTEIN_GENOME_DB) \
--taxonomyDatabase $(TAXONOMY_DB) \
--format fastq \
--preamble $(PREAMBLE_FILE) \
--preamble "<p>Database: Charité custom RNA protein database: NCBI refseq virus genomes, sequences from three Chinese papers, and the RdRp protein (or fragment thereof) from OKIAV genomes.</p>" \
--sampleNameRegex $(SAMPLE_NAME_REGEX) \
--pathogenType viral \
--pathogenPanelFilename virus-civ-rna.png \
--sampleIndexFilename samples-civ-rna.index \
--pathogenDataDir pathogen-data-civ-rna \
--bootstrapTreeviewDir .. \
$(READ_COUNT_COLORS) \
> index-civ-rna.html; \
fi
html-civ-dna-encephalitis:
find $(DIRS) -name summary-proteins | \
grep 04-panel-civ-dna-encephalitis/ | \
proteins-to-pathogens-civ.py \
--html \
--title "Summary of small DNA encephalitis-causing viruses for run $(RUNID)" \
--proteinGenomeDatabase $(DNA_PROTEIN_GENOME_DB) \
--taxonomyDatabase $(TAXONOMY_DB) \
--format fastq \
--preamble $(PREAMBLE_FILE) \
--preamble "<p>Database: Charité custom DNA protein database from the NCBI refseq virus genomes, filtered for encephalitis-causing viruses.</p>" \
--titleRegex $(ENCEPHALITIS_REGEX) \
--sampleNameRegex $(SAMPLE_NAME_REGEX) \
--pathogenType viral \
--pathogenPanelFilename $(DNA_ENCEPHALITIS_PNG_FILE) \
--sampleIndexFilename samples-civ-dna-encephalitis.index \
--pathogenDataDir pathogen-data-civ-dna-encephalitis \
--bootstrapTreeviewDir .. \
$(READ_COUNT_COLORS) \
> index-civ-dna-encephalitis.html
html-civ-dna-large-encephalitis:
find $(DIRS) -name summary-proteins | \
grep 04-panel-civ-dna-large-encephalitis/ | \
proteins-to-pathogens-civ.py \
--html \
--title "Summary of large DNA encephalitis-causing viruses for run $(RUNID)" \
--minProteinCount $(DNA_LARGE_MIN_PROTEIN_COUNT) \
--proteinGenomeDatabase $(DNA_LARGE_PROTEIN_GENOME_DB) \
--taxonomyDatabase $(TAXONOMY_DB) \
--format fastq \
--preamble $(PREAMBLE_FILE) \
--preamble "<p>Database: Charité custom large DNA protein database from the NCBI refseq virus genomes, filtered for encephalitis-causing viruses.</p>" \
--titleRegex $(ENCEPHALITIS_REGEX) \
--sampleNameRegex $(SAMPLE_NAME_REGEX) \
--pathogenType viral \
--pathogenPanelFilename $(DNA_LARGE_ENCEPHALITIS_PNG_FILE) \
--sampleIndexFilename samples-civ-dna-large-encephalitis.index \
--pathogenDataDir pathogen-data-civ-dna-large-encephalitis \
--bootstrapTreeviewDir .. \
$(READ_COUNT_COLORS) \
> index-civ-dna-large-encephalitis.html
html-civ-rna-encephalitis:
find $(DIRS) -name summary-proteins | \
grep 04-panel-civ-rna-encephalitis/ | \
proteins-to-pathogens-civ.py \
--html \
--title "Summary of RNA encephalitis-causing viruses for run $(RUNID)" \
--proteinGenomeDatabase $(RNA_PROTEIN_GENOME_DB) \
--taxonomyDatabase $(TAXONOMY_DB) \
--format fastq \
--preamble $(PREAMBLE_FILE) \
--preamble "<p>Database: Charité custom RNA protein database: NCBI refseq virus genomes, sequences from three Chinese papers, and the RdRp protein (or fragment thereof) from OKIAV genomes, filtered for encephalitis-causing viruses.</p>" \
--titleRegex $(ENCEPHALITIS_REGEX) \
--sampleNameRegex $(SAMPLE_NAME_REGEX) \
--pathogenType viral \
--pathogenPanelFilename $(RNA_ENCEPHALITIS_PNG_FILE) \
--sampleIndexFilename samples-civ-rna-encephalitis.index \
--pathogenDataDir pathogen-data-civ-rna-encephalitis \
--bootstrapTreeviewDir .. \
$(READ_COUNT_COLORS) \
> index-civ-rna-encephalitis.html
# Note that we don't need to pass --negativeTitleRegex
# "$(CORONAVIRUS_REGEX)" in the following. That's because that has already
# been done in 04-panel-civ-rna-hcov/panel.sh, so the coronavirus proteins
# (apart from those in whitelist-hcov) are already gone from the
# summary-proteins files. This is slightly different from the situation
# with the encephalitis titleregular expression because in that case it's a
# positive regex, and we use it select things to keep (not to discard). In
# theory we don't need to keep using it after using it once because
# everything that doesn't match will have been discarded, but I'm already
# using it here (above) and don't want to change that right now.
html-civ-rna-hcov:
if test -n "$(HCOV_DIRS)"; then \
find $(HCOV_DIRS) -name summary-proteins | \
grep 04-panel-civ-rna-hcov/ | \
proteins-to-pathogens-civ.py \
--html \
--title "Summary of RNA viruses (one CoV) for run $(RUNID)" \
--proteinGenomeDatabase $(RNA_PROTEIN_GENOME_DB) \
--taxonomyDatabase $(TAXONOMY_DB) \
--format fastq \
--preamble $(PREAMBLE_FILE) \
--preamble "<p>Database: Charité custom RNA protein database: NCBI refseq virus genomes (no CoV), the SARS-CoV-2 reference (MN908947.3), sequences from three Chinese papers, and the RdRp protein (or fragment thereof) from OKIAV genomes.</p>" \
--sampleNameRegex $(SAMPLE_NAME_REGEX) \
--pathogenType viral \
--pathogenPanelFilename $(RNA_HCOV_PNG_FILE) \
--sampleIndexFilename samples-civ-rna-hcov.index \
--pathogenDataDir pathogen-data-civ-rna-hcov \
--bootstrapTreeviewDir .. \
$(READ_COUNT_COLORS) \
> index-civ-rna-hcov.html; \
fi
tar-civ-dna:
tar cfj results-civ-dna.tar.bz2 \
index-civ-dna.html \
$(DNA_PANEL_OUT_DIRS) \
$(DNA_PNG_FILE) \
samples-civ-dna.index \
pathogen-data-civ-dna
tar-civ-dna-large:
tar cfj results-civ-dna-large.tar.bz2 \
index-civ-dna-large.html \
$(DNA_LARGE_PANEL_OUT_DIRS) \
$(DNA_LARGE_PNG_FILE) \
samples-civ-dna-large.index \
pathogen-data-civ-dna-large
tar-civ-rna:
if test -n "$(STANDARD_DIRS)"; then \
tar cfj results-civ-rna.tar.bz2 \
index-civ-rna.html \
$(RNA_PANEL_OUT_DIRS) \
$(RNA_PNG_FILE) \
samples-civ-rna.index \
pathogen-data-civ-rna; \
fi
tar-civ-dna-encephalitis:
tar cfj results-civ-dna-encephalitis.tar.bz2 \
index-civ-dna-encephalitis.html \
$(DNA_ENCEPHALITIS_PANEL_OUT_DIRS) \
$(DNA_ENCEPHALITIS_PNG_FILE) \
samples-civ-dna-encephalitis.index \
pathogen-data-civ-dna-encephalitis
tar-civ-dna-large-encephalitis:
tar cfj results-civ-dna-large-encephalitis.tar.bz2 \
index-civ-dna-large-encephalitis.html \
$(DNA_LARGE_ENCEPHALITIS_PANEL_OUT_DIRS) \
$(DNA_LARGE_ENCEPHALITIS_PNG_FILE) \
samples-civ-dna-large-encephalitis.index \
pathogen-data-civ-dna-large-encephalitis
tar-civ-rna-encephalitis:
tar cfj results-civ-rna-encephalitis.tar.bz2 \
index-civ-rna-encephalitis.html \
$(RNA_ENCEPHALITIS_PANEL_OUT_DIRS) \
$(RNA_ENCEPHALITIS_PNG_FILE) \
samples-civ-rna-encephalitis.index \
pathogen-data-civ-rna-encephalitis
tar-civ-rna-hcov:
if test -n "$(HCOV_DIRS)"; then \
tar cfj results-civ-rna-hcov.tar.bz2 \
index-civ-rna-hcov.html \
$(RNA_HCOV_PANEL_OUT_DIRS) \
$(RNA_HCOV_PNG_FILE) \
samples-civ-rna-hcov.index \
pathogen-data-civ-rna-hcov; \
fi
zip:
if test -n "$(HCOV_DIRS)"; then \
../csd3-pipeline/bin/zip-hcov.sh; \
fi
# The following is unused (see tar-hcov).
zip-hcov-individual:
if test -n "$(HCOV_DIRS)"; then \
tar cfj results-hcov.tar.bz2 \
[DW]_*/pipelines/standard/006-hcov/*.bam \
[DW]_*/pipelines/standard/006-hcov/*.bam.bai \
[DW]_*/pipelines/standard/006-hcov/*.vcf.gz \
[DW]_*/pipelines/standard/006-hcov/*.vcf.gz.tbi \
[DW]_*/pipelines/standard/006-hcov/*.txt \
[DW]_*/pipelines/standard/006-hcov/*-consensus.fasta \
[DW]_*/pipelines/standard/006-hcov/*-alignment.fasta; \
fi
upload:
ssh $(UPLOAD_USERID)@$(UPLOAD_HOST) bash -c "'test -d $(UPLOAD_DIR)/$(RUNID) || mkdir -p $(UPLOAD_DIR)/$(RUNID)'"
if ls results-*.tar.bz2 >/dev/null 2>&1; then \
scp results-*.tar.bz2 $(UPLOAD_USERID)@$(UPLOAD_HOST):$(UPLOAD_DIR)/$(RUNID); \
fi
if ls *-hcov.zip >/dev/null 2>&1; then \
scp *-hcov.zip $(UPLOAD_USERID)@$(UPLOAD_HOST):$(UPLOAD_DIR)/$(RUNID); \
fi
ssh $(UPLOAD_USERID)@$(UPLOAD_HOST) $(UNTAR_SCRIPT) $(RUNID)
ssh -A $(UPLOAD_USERID)@$(UPLOAD_HOST) bash -c "'cd $(REPO_DIR) && git pull'"
clean-civ-dna-results:
rm -fr \
results-civ-dna.tar.bz2 \
samples-civ-dna.index \
pathogen-data-civ-dna \
virus-civ-dna.png \
index-civ-dna.html
clean-civ-dna-large-results:
rm -fr \
results-civ-dna-large.tar.bz2 \
samples-civ-dna-large.index \
pathogen-data-civ-dna-large \
virus-civ-dna-large.png \
index-civ-dna-large.html
clean-civ-rna-results:
rm -fr \
results-civ-rna.tar.bz2 \
samples-civ-rna.index \
pathogen-data-civ-rna \
virus-civ-rna.png \
index-civ-rna.html
clean-civ-dna-encephalitis-results:
rm -fr \
results-civ-dna-encephalitis.tar.bz2 \
samples-civ-dna-encephalitis.index \
pathogen-data-civ-dna-encephalitis \
$(DNA_ENCEPHALITIS_PNG_FILE) \
index-civ-dna-encephalitis.html
clean-civ-dna-large-encephalitis-results:
rm -fr \
results-civ-dna-large-encephalitis.tar.bz2 \
samples-civ-dna-large-encephalitis.index \
pathogen-data-civ-dna-large-encephalitis \
$(DNA_LARGE_ENCEPHALITIS_PNG_FILE) \
index-civ-dna-large-encephalitis.html
clean-civ-rna-encephalitis-results:
rm -fr \
results-civ-rna-encephalitis.tar.bz2 \
samples-civ-rna-encephalitis.index \
pathogen-data-civ-rna-encephalitis \
$(RNA_ENCEPHALITIS_PNG_FILE) \
index-civ-rna-encephalitis.html
clean-civ-rna-hcov-results:
rm -fr \
results-civ-rna-hcov.tar.bz2 \
samples-civ-rna-hcov.index \
pathogen-data-civ-rna-hcov \
$(RNA_HCOV_PNG_FILE) \
index-civ-rna-hcov.html \
$(RUNID)-hcov.zip
clean-results: \
clean-civ-dna-results \
clean-civ-dna-large-results \
clean-civ-dna-encephalitis-results \
clean-civ-dna-large-encephalitis-results \
clean-civ-rna-results \
clean-civ-rna-encephalitis-results \
clean-civ-rna-hcov-results
rm -f $(PREAMBLE_FILE)
clean-all: \
clean-results \
clean-stats-on
clean-stats:
@for i in $(DIRS); do cd $$i; make $@; cd ../../..; done
clean-stats-on: clean-stats clean-trim-on
clean-trim:
@for i in $(DIRS); do cd $$i; make $@; cd ../../..; done
clean-trim-on: clean-trim clean-flash-on
clean-hcov:
@for i in $(DIRS); do cd $$i; make $@; cd ../../..; done
clean-flash:
@for i in $(DIRS); do cd $$i; make $@; cd ../../..; done
clean-flash-on: clean-flash clean-spades-on
clean-spades:
@for i in $(DIRS); do cd $$i; make $@; cd ../../..; done
clean-spades-on: clean-spades clean-map-on
clean-map:
@for i in $(DIRS); do cd $$i; make $@; cd ../../..; done
clean-map-on: clean-map clean-dedup-on
clean-dedup:
@for i in $(DIRS); do cd $$i; make $@; cd ../../..; done
clean-dedup-on: clean-dedup clean-diamond-on
clean-diamond:
@for i in $(DIRS); do cd $$i; make $@; cd ../../..; done
clean-diamond-on: clean-diamond clean-panel-on
clean-panel:
@for i in $(DIRS); do cd $$i; make $@; cd ../../..; done
clean-panel-on: clean-panel
run:
@for i in $(DIRS); do cd $$i; make $@; cd ../../..; done
status:
@ls -l [DW]_*/pipelines/standard/slurm-pipeline.* 2>/dev/null || true
done:
@ls -l [DW]_*/pipelines/standard/slurm-pipeline.done 2>/dev/null || true
error:
@ls -l [DW]_*/pipelines/standard/slurm-pipeline.error 2>/dev/null || true
running:
@ls -l [DW]_*/pipelines/standard/slurm-pipeline.running 2>/dev/null || true
print-standard:
@for i in $(STANDARD_DIRS); do echo $$i; done
print-hcov:
@for i in $(HCOV_DIRS); do echo $$i; done
print-medmuseum:
@for i in $(MEDMUSEUM_DIRS); do echo $$i; done
sample-ids:
@for i in $(DIRS); do echo "$$(echo $$i | cut -f1 -d/) " $$(sample-id-for-case.py --sampleNumber $$(echo $$i | cut -f5 -d_) "$$(echo $$i | cut -c1)$$(echo $$i | cut -f4 -d_)"); done
# See https://chrisalbon.com/python/data_visualization/seaborn_color_palettes/
# for some possible color palettes.
colors:
@python -c 'import seaborn as sns; print(" ".join([f"--readCountColor \"{count} \\{color}\"" for count, color in zip((10, 50, 100, 500, 1000), sns.color_palette("colorblind", 10).as_hex())]))'