-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
82 lines (61 loc) · 1.71 KB
/
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
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
.PHONY: all run force status cancel unfinished clean clean-all clobber
all:
@echo "There is no default make target. Use 'make run' to run the SLURM pipeline."
run:
slurm-pipeline.py --specification specification.json > status.json
force:
slurm-pipeline.py --specification specification.json --force > status.json
status:
@slurm-pipeline-status.py --specification status.json
cancel:
@jobs=$$(slurm-pipeline-status.py --specification status.json --printUnfinished); \
if [ -z "$$jobs" ]; \
then \
echo "No unfinished jobs."; \
else \
echo "Canceling $$(echo $$jobs | tr '\012' ' ')"; \
scancel $$jobs; \
fi
unfinished:
@slurm-pipeline-status.py --specification status.json --printUnfinished
clean-stats:
make -C 01-stats clean
clean-trim:
make -C 005-trim clean
clean-hcov:
make -C 006-hcov clean
clean-flash:
make -C 007-flash clean
clean-spades:
make -C 008-spades clean
clean-map:
make -C 02-map clean
clean-dedup:
make -C 025-dedup clean
clean-diamond:
for i in 03-diamond-*; \
do \
make -C $$i clean; \
done
clean-panel:
for i in 04-panel-*; \
do \
make -C $$i clean; \
done
clean:
rm -fr \
status.json \
slurm-pipeline.done \
slurm-pipeline.error \
slurm-pipeline.running \
csd3lib/__pycache__ \
test/__pycache__
clean-all: clean clean-stats clean-trim clean-hcov clean-flash clean-spades clean-map clean-dedup clean-diamond clean-panel
clobber: clean-all
rm -fr logs
pytest:
env PYTHONPATH=. pytest
discover:
env PYTHONPATH=. python -m discover -v
tcheck:
env PYTHONPATH=. trial --rterrors test