-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
53 lines (38 loc) · 1.02 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
SHELL:=/bin/bash
none:
# ~~~~~ SETUP PIPELINE ~~~~~ #
./nextflow:
curl -fsSL get.nextflow.io | bash
install: ./nextflow
update: ./nextflow
./nextflow self-update
# ~~~~~ RUN PIPELINE ~~~~~ #
test: install
./nextflow run test.nf
run: install
./nextflow run main.nf $(EP)
# -resume -with-dag flowchart.dot
flowchart:
[ -f flowchart.dot ] && dot flowchart.dot -Tpng -o flowchart.png
# ~~~~~ CLEANUP ~~~~~ #
clean-traces:
rm -f trace*.txt.*
clean-logs:
rm -f .nextflow.log.*
clean-reports:
rm -f *.html.*
clean-flowcharts:
rm -f *.dot.*
clean-output:
[ -d output ] && mv output oldoutput && rm -rf oldoutput &
clean-work:
[ -d work ] && mv work oldwork && rm -rf oldwork &
# deletes files from previous runs of the pipeline, keeps current results
clean: clean-logs clean-traces clean-reports clean-flowcharts
# deletes all pipeline output
clean-all: clean clean-output clean-work
[ -d .nextflow ] && mv .nextflow .nextflowold && rm -rf .nextflowold &
rm -f .nextflow.log
rm -f *.png
rm -f trace*.txt*
rm -f *.html*