@@ -178,6 +178,22 @@ def get_parser():
178
178
help = 'Exact or maximum number of MELODIC components to estimate '
179
179
'(positive = exact, negative = maximum)' )
180
180
181
+ # Confounds options
182
+ g_confounds = parser .add_argument_group ('Specific options for estimating confounds' )
183
+ g_confounds .add_argument (
184
+ '--return-all-components' , required = False , action = 'store_true' , default = False ,
185
+ help = 'Include all components estimated in CompCor decomposition in the confounds '
186
+ 'file instead of only the components sufficient to explain 50 percent of '
187
+ 'BOLD variance in each CompCor mask' )
188
+ g .confounds .add_argument (
189
+ '--fd-spike-threshold' , required = False , action = 'store' , default = 0.5 , type = float ,
190
+ help = 'Threshold for flagging a frame as an outlier on the basis of framewise '
191
+ 'displacement' )
192
+ g .confounds .add_argument (
193
+ '--dvars-spike-threshold' , required = False , action = 'store' , default = 1.5 , type = float ,
194
+ help = 'Threshold for flagging a frame as an outlier on the basis of standardised '
195
+ 'DVARS' )
196
+
181
197
# ANTs options
182
198
g_ants = parser .add_argument_group ('Specific options for ANTs registrations' )
183
199
g_ants .add_argument ('--skull-strip-template' , action = 'store' , default = 'OASIS' ,
@@ -747,6 +763,9 @@ def build_workflow(opts, retval):
747
763
use_aroma = opts .use_aroma ,
748
764
aroma_melodic_dim = opts .aroma_melodic_dimensionality ,
749
765
ignore_aroma_err = opts .ignore_aroma_denoising_errors ,
766
+ return_all_components = opts .return_all_components ,
767
+ fd_spike_thr = opts .fd_spike_threshold ,
768
+ dv_spike_thr = opts .dvars_spike_threshold ,
750
769
)
751
770
retval ['return_code' ] = 0
752
771
0 commit comments