Skip to content

Commit b99afb0

Browse files
committed
add CLI options for spikes and CompCor
1 parent 3134728 commit b99afb0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

fmriprep/cli/run.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,22 @@ def get_parser():
178178
help='Exact or maximum number of MELODIC components to estimate '
179179
'(positive = exact, negative = maximum)')
180180

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+
181197
# ANTs options
182198
g_ants = parser.add_argument_group('Specific options for ANTs registrations')
183199
g_ants.add_argument('--skull-strip-template', action='store', default='OASIS',
@@ -747,6 +763,9 @@ def build_workflow(opts, retval):
747763
use_aroma=opts.use_aroma,
748764
aroma_melodic_dim=opts.aroma_melodic_dimensionality,
749765
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,
750769
)
751770
retval['return_code'] = 0
752771

0 commit comments

Comments
 (0)