Skip to content

Commit e5c936f

Browse files
committed
chore: Patch file patterns to allow masks
1 parent 5cca67d commit e5c936f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sdcflows/workflows/outputs.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,13 @@ def init_fmap_derivatives_wf(
230230
),
231231
name='ds_mask',
232232
)
233+
ds_mask._file_patterns = ds_mask._file_patterns + [
234+
'sub-{subject}[/ses-{session}]/{datatype<fmap>|fmap}/'
235+
'sub-{subject}[_ses-{session}][_hash-{hash}][_acq-{acquisition}]'
236+
'[_dir-{direction}][_run-{run}][_part-{part}][_space-{space}]'
237+
'[_cohort-{cohort}][_res-{resolution}][_fmapid-{fmapid}]'
238+
'[_desc-{desc}]_{suffix<mask>}{extension<.nii|.nii.gz|.json>|.nii.gz}',
239+
]
233240

234241
ds_mask.inputs.trait_set(**custom_entities)
235242

0 commit comments

Comments
 (0)