forked from ppoulin91/tractoinferno_tracking_flow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
98 lines (82 loc) · 2.35 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
process {
publishDir = {"./results/$sid/$task.process"}
scratch = true
errorStrategy = { task.attempt <= 3 ? 'retry' : 'ignore' }
maxRetries = 3
maxErrors = -1
stageInMode = 'copy'
stageOutMode = 'rsync'
tag = { "$sid" }
afterScript = 'sleep 1'
}
params {
//TractoInferno basis
basis="descoteaux07"
//**PFT seeding mask**//
pft_seeding_mask_type="wm"
pft_fa_seeding_mask_theshold=0.1
//**PFT tracking**//
pft_compress_streamlines=true
pft_algo="prob"
pft_seeding="npv"
pft_nbr_seeds=10
pft_step=0.5
pft_theta=20
pft_sfthres=0.1
pft_sfthres_init=0.5
pft_min_len=20
pft_max_len=200
pft_particles=15
pft_back=2
pft_front=1
pft_compress_value=0.2
pft_random_seed=0
//**Local seeding mask**//
local_seeding_mask_type="wm"
local_fa_seeding_mask_theshold=0.1
//**Local tracking mask**//
local_tracking_mask_type="wm"
local_fa_tracking_mask_theshold=0.1
//**Local tracking**//
local_compress_streamlines=true
local_seeding="npv"
local_nbr_seeds=10
local_step=0.2
local_theta=45
local_sfthres=0.1
local_sfthres_init=0.5
local_min_len=20
local_max_len=200
local_compress_value=0.2
local_det_random_seed=0
local_prob_random_seed=0
//**Template T1 path**//
template_t1="/human-data/mni_152_sym_09c/t1"
//**Output directory**//
output_dir=false
//**Process control**//
processes = false
Readme_Publish_Dir = "./results/Readme"
}
if(params.output_dir) {
process.publishDir = {"$params.output_dir/$sid/$task.process"}
params.Readme_Publish_Dir = "${params.output_dir}/Readme"
}
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 {
macos {
process.scratch="/tmp"
}
}