Skip to content

Commit abce9b9

Browse files
committed
Write out goodvoxels mask.
1 parent 566592a commit abce9b9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

fmriprep/workflows/bold/base.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,24 @@ def init_bold_wf(
572572
(bold_anat_wf, goodvoxels_bold_mask_wf, [
573573
('outputnode.bold_file', 'inputnode.bold_file'),
574574
]),
575+
]) # fmt:skip
576+
577+
ds_goodvoxels_mask = pe.Node(
578+
DerivativesDataSink(
579+
base_directory=fmriprep_dir,
580+
dismiss_entities=dismiss_echo(),
581+
space='T1w',
582+
desc='goodvoxels',
583+
suffix='mask',
584+
),
585+
name='ds_goodvoxels_mask',
586+
run_without_submitting=True,
587+
)
588+
ds_goodvoxels_mask.inputs.source_file = bold_file
589+
workflow.connect([
590+
(goodvoxels_bold_mask_wf, ds_goodvoxels_mask, [
591+
('outputnode.goodvoxels_mask', 'in_file'),
592+
]),
575593
(goodvoxels_bold_mask_wf, bold_fsLR_resampling_wf, [
576594
('outputnode.goodvoxels_mask', 'inputnode.volume_roi'),
577595
]),

0 commit comments

Comments
 (0)