-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.nf
41 lines (29 loc) · 801 Bytes
/
main.nf
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
process create_grid {
label 'rscript'
label 'regular'
cpus 8
echo {params.verbose != null ? true : false}
publishDir "${params.outdir}/", mode: 'copy', saveAs: { filename -> "${params.id}_$filename" }
input:
file "data.csv" from Channel.fromPath("$params.input")
output:
file "grid.txt" into grid
script:
template 'create_grid.R'
}
process create_histograms {
label 'rscript'
label 'regular'
cpus 8
echo {params.verbose != null ? true : false}
publishDir "${params.outdir}/", mode: 'copy', saveAs: { filename -> "${params.id}_$filename" }
input:
file "grid.txt" from grid
output:
file "x_histogram.txt"
file "y_histogram.txt"
when:
params.histogram != 'NOT PROVIDED'
script:
template 'create_histograms.R'
}