-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
67 lines (55 loc) · 1.42 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
process {
publishDir = {"./results/$sid/$task.process"}
errorStrategy = { task.attempt <= 3 ? 'retry' : 'ignore' }
maxRetries = 3
maxErrors = -1
scratch = true
stageInMode = 'symlink'
stageOutMode = 'rsync'
tag = { "$sid" }
afterScript = 'sleep 1'
cache = 'lenient'
}
params {
help=false
root=false
//**GESTA parameters**//
run_gesta = true
parzen_window_seeds=10000
batch_sampling=5000
fa_threshold=0.1
//**Number of processes per tasks**//
register_processes=4
//**Process control**//
processes = false
//**Output directory**//
output_dir=false
//**Device**//
device="cpu"
//**Use SyN Quick**//
registration_speed = 0
}
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'
}
profiles{
macos {
process.scratch="/tmp"
}
}