-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
45 lines (37 loc) · 1.01 KB
/
nextflow.config
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
process {
publishDir = {"./results/$sid/$task.process"}
scratch = true
stageOutMode = 'rsync'
tag = { "$sid" }
afterScript = 'sleep 1'
}
params {
help=false
root=false
//**Process control**//
register_processes=4
resampling_tractograms = -1
//**Quality Control**//
qc_only_anatomical_tracts = false
//**Output directory**//
output_dir=false
}
if(params.output_dir) {
process.publishDir = {"$params.output_dir/$sid/$task.process"}
}
if(params.processes) {
if(params.processes > Runtime.runtime.availableProcessors()) {
throw new RuntimeException("Number of processes higher than available CPUs.")
}
else if(params.processes < 1) {
throw new RuntimeException("When set, number of processes must be >= 1 " +
"and smaller or equal to the number of CPUs.")
}
else {
executor.$local.cpus = params.processes
}
}
singularity {
autoMounts = true
runOptions = '--nv'
}