-
Notifications
You must be signed in to change notification settings - Fork 9
/
nextflow.config
63 lines (53 loc) · 1.41 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
process {
publishDir = {"./results_rbx/$sid/$task.process"}
scratch = true
stageInMode = 'copy'
stageOutMode = 'rsync'
tag = { "$sid" }
afterScript = 'sleep 1'
}
params {
help=false
root=false
atlas_directory=false
run_average_bundles=false
single_dataset_size=4
//**Recobundle segmentation**//
minimal_vote_ratio=0.1
seed=0
outlier_alpha=0.5
//**Number of processes per tasks**//
register_processes=4
rbx_processes=4
single_dataset_size_GB=2
//**Process control**//
processes = false
Average_Bundles_Publish_Dir = "./results_rbx/Average_Bundles"
}
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
profiles {
fully_reproducible {
params.register_processes=1
params.rbx_processes=1
}
macos {
process.scratch="/tmp"
}
cbrain {
process{
publishDir = [path: {"./results_rbx/$sid/$task.process"}, mode: 'copy']
}
}
}