-
Notifications
You must be signed in to change notification settings - Fork 7
/
nextflow.config
executable file
·197 lines (160 loc) · 4.53 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
manifest.nextflowVersion = '21.1+'
process {
publishDir = {"./results_QC/$task.process"}
scratch = false
errorStrategy = { task.attempt <= 3 ? 'retry' : 'ignore' }
maxRetries = 3
maxErrors = -1
stageInMode = 'symlink'
stageOutMode = 'rsync'
}
params {
dicom_fields="EchoTime RepetitionTime SliceThickness Manufacturer ManufacturersModelName"
bet_dwi_skip = 2
bet_dwi_nb_threads = 4
bet_dwi_nb_columns = 10
bet_t1_skip = 2
bet_t1_nb_threads = 4
bet_t1_nb_columns = 20
denoise_dwi_skip = 2
denoise_dwi_nb_threads = 4
denoise_dwi_nb_columns = 10
denoise_t1_skip = 2
denoise_t1_nb_threads = 4
denoise_t1_nb_columns = 20
gibbs_skip = 2
gibbs_nb_threads = 4
gibbs_nb_columns = 10
gibbs_duration = 500
eddy_topup_skip = 2
eddy_topup_nb_threads = 4
eddy_topup_nb_columns = 10
eddy_topup_duration = 500
resample_dwi_skip = 2
resample_dwi_nb_threads = 4
resample_dwi_nb_columns = 20
resample_t1_skip = 2
resample_t1_nb_threads = 4
resample_t1_nb_columns = 20
dti_skip = 2
dti_nb_threads = 4
dti_nb_columns= 20
frf_nb_threads = 1
fodf_skip = 2
fodf_nb_threads = 4
fodf_nb_columns = 20
tracking_nb_threads = 1
segment_tissues_nb_threads = 4
segment_tissues_skip = 2
segment_tissues_nb_columns = 20
pft_maps_nb_threads = 4
pft_maps_skip = 2
pft_maps_nb_columns = 20
register_nb_threads = 4
register_skip = 2
register_nb_columns = 20
dwi_protocol_tol = 20
raw_t1_skip = 2
raw_t1_nb_threads = 4
raw_t1_nb_columns = 20
raw_dwi_skip = 2
raw_dwi_nb_threads = 4
raw_dwi_nb_columns = 10
local_tracking_mask_nb_threads = 4
local_tracking_mask_skip = 2
local_tracking_mask_nb_columns = 20
local_seeding_mask_nb_threads = 4
local_seeding_mask_skip = 2
local_seeding_mask_nb_columns = 20
run_qc_bet_dwi = false
run_qc_bet_t1 = false
run_qc_denoise_dwi = false
run_qc_denoise_t1 = false
run_qc_gibbs_correction = false
run_qc_eddy_topup = false
run_qc_resample_dwi = false
run_qc_resample_t1 = false
run_qc_dti = false
run_qc_frf = false
run_qc_fodf = false
run_qc_tracking = false
run_qc_segment_tissues = false
run_qc_pft_maps = false
run_qc_register_t1 = false
run_qc_dwi_protocol = false
run_raw_t1 = false
run_raw_dwi = false
run_qc_rbx = false
run_qc_tracking_mask = false
run_qc_seeding_mask = false
run_t1_register_to_template = false
run_qc_matrices = false
//**Output directory**//
output_dir=false
}
if(params.output_dir) {
process.publishDir = {"$params.output_dir/$task.process"}
}
env {
ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=1
MRTRIX_NTHREADS=1
OMP_NUM_THREADS=1
OPENBLAS_NUM_THREADS=1
}
singularity.autoMounts = true
profiles {
cbrain {
process{
if(params.output_dir) {
publishDir = [path: {"$params.output_dir/$task.process"}, mode: 'copy']
}
else{
publishDir = [path: {"./results_QC/$task.process"}, mode: 'copy']
}
}
}
input_qc {
params.run_qc_dwi_protocol = true
params.run_raw_t1 = true
params.run_raw_dwi = true
}
tractoflow_qc_all {
params.run_qc_bet_dwi = true
params.run_qc_bet_t1 = true
params.run_qc_denoise_dwi = true
params.run_qc_denoise_t1 = true
params.run_qc_gibbs_correction = true
params.run_qc_eddy_topup = true
params.run_qc_resample_dwi = true
params.run_qc_resample_t1 = true
params.run_qc_dti = true
params.run_qc_frf = true
params.run_qc_fodf = true
params.run_qc_tracking = true
params.run_qc_segment_tissues = true
params.run_qc_pft_maps = true
params.run_qc_register_t1 = true
params.run_qc_tracking_mask = true
params.run_qc_seeding_mask = true
}
tractoflow_qc_light {
params.run_qc_bet_dwi = true
params.run_qc_bet_t1 = true
params.run_qc_eddy_topup = true
params.run_qc_dti = true
params.run_qc_frf = true
params.run_qc_fodf = true
params.run_qc_tracking = true
params.run_qc_pft_maps = true
params.run_qc_register_t1 = true
params.run_qc_tracking_mask = true
params.run_qc_seeding_mask = true
}
rbx_qc {
params.run_qc_rbx = true
}
disconets_qc {
params.run_t1_register_to_template = true
params.run_qc_matrices = true
}
}