Skip to content

Commit bcb772d

Browse files
authored
Merge pull request #2015 from mgxd/enh/ignore-fs-all
ENH: Add t2w/flair as potential --ignore targets
2 parents 2cf3e49 + 0fe159f commit bcb772d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

fmriprep/cli/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def get_parser():
116116
g_conf = parser.add_argument_group('Workflow configuration')
117117
g_conf.add_argument(
118118
'--ignore', required=False, action='store', nargs="+", default=[],
119-
choices=['fieldmaps', 'slicetiming', 'sbref'],
119+
choices=['fieldmaps', 'slicetiming', 'sbref', 't2w', 'flair'],
120120
help='ignore selected aspects of the input dataset to disable corresponding '
121121
'parts of the workflow (a space delimited list)')
122122
g_conf.add_argument(

fmriprep/workflows/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,10 @@ def init_single_subject_wf(
491491
else:
492492
subject_data = collect_data(layout, subject_id, task_id, echo_idx,
493493
bids_filters=bids_filters)[0]
494+
if 'flair' in ignore:
495+
subject_data['flair'] = []
496+
if 't2w' in ignore:
497+
subject_data['t2w'] = []
494498

495499
# Make sure we always go through these two checks
496500
if not anat_only and subject_data['bold'] == []:

0 commit comments

Comments
 (0)