@@ -39,7 +39,8 @@ def init_fmriprep_wf(subject_list, task_id, echo_idx, run_uuid, work_dir, output
39
39
omp_nthreads , skull_strip_template , skull_strip_fixed_seed ,
40
40
freesurfer , output_spaces , template , medial_surface_nan , cifti_output , hires ,
41
41
use_bbr , bold2t1w_dof , fmap_bspline , fmap_demean , use_syn , force_syn ,
42
- use_aroma , ignore_aroma_err , aroma_melodic_dim , template_out_grid ):
42
+ use_aroma , ignore_aroma_err , aroma_melodic_dim , template_out_grid ,
43
+ return_all_components , fd_spike_thr , dv_spike_thr ):
43
44
"""
44
45
This workflow organizes the execution of FMRIPREP, with a sub-workflow for
45
46
each subject.
@@ -167,6 +168,12 @@ def init_fmriprep_wf(subject_list, task_id, echo_idx, run_uuid, work_dir, output
167
168
template_out_grid : str
168
169
Keyword ('native', '1mm' or '2mm') or path of custom reference
169
170
image for normalization
171
+ return_all_components
172
+ Return all CompCor component time series instead of the top fraction
173
+ fd_spike_thr
174
+ Criterion for flagging framewise displacement outliers
175
+ dv_spike_thr
176
+ Criterion for flagging DVARS outliers
170
177
171
178
"""
172
179
fmriprep_wf = Workflow (name = 'fmriprep_wf' )
@@ -215,6 +222,9 @@ def init_fmriprep_wf(subject_list, task_id, echo_idx, run_uuid, work_dir, output
215
222
use_aroma = use_aroma ,
216
223
aroma_melodic_dim = aroma_melodic_dim ,
217
224
ignore_aroma_err = ignore_aroma_err ,
225
+ return_all_components = return_all_components ,
226
+ fd_spike_thr = fd_spike_thr ,
227
+ dv_spike_thr = dv_spike_thr ,
218
228
)
219
229
220
230
single_subject_wf .config ['execution' ]['crashdump_dir' ] = (
@@ -237,7 +247,8 @@ def init_single_subject_wf(subject_id, task_id, echo_idx, name, reportlets_dir,
237
247
freesurfer , output_spaces , template , medial_surface_nan ,
238
248
cifti_output , hires , use_bbr , bold2t1w_dof , fmap_bspline , fmap_demean ,
239
249
use_syn , force_syn , template_out_grid ,
240
- use_aroma , aroma_melodic_dim , ignore_aroma_err ):
250
+ use_aroma , aroma_melodic_dim , ignore_aroma_err ,
251
+ return_all_components , fd_spike_thr , dv_spike_thr ):
241
252
"""
242
253
This workflow organizes the preprocessing pipeline for a single subject.
243
254
It collects and reports information about the subject, and prepares
@@ -365,6 +376,12 @@ def init_single_subject_wf(subject_id, task_id, echo_idx, name, reportlets_dir,
365
376
Perform ICA-AROMA on MNI-resampled functional series
366
377
ignore_aroma_err : bool
367
378
Do not fail on ICA-AROMA errors
379
+ return_all_components
380
+ Return all CompCor component time series instead of the top fraction
381
+ fd_spike_thr
382
+ Criterion for flagging framewise displacement outliers
383
+ dv_spike_thr
384
+ Criterion for flagging DVARS outliers
368
385
369
386
Inputs
370
387
@@ -503,6 +520,9 @@ def init_single_subject_wf(subject_id, task_id, echo_idx, name, reportlets_dir,
503
520
use_aroma = use_aroma ,
504
521
aroma_melodic_dim = aroma_melodic_dim ,
505
522
ignore_aroma_err = ignore_aroma_err ,
523
+ return_all_components = return_all_components ,
524
+ fd_spike_thr = fd_spike_thr ,
525
+ dv_spike_thr = dv_spike_thr ,
506
526
num_bold = len (subject_data ['bold' ]))
507
527
508
528
workflow .connect ([
0 commit comments