Skip to content

Commit 2e70ce3

Browse files
committed
fix: Calculate bold mask from provided coreg ref
1 parent 8c58b70 commit 2e70ce3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

fmriprep/workflows/bold/fit.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,14 @@ def init_bold_fit_wf(
591591
config.loggers.workflow.info('Found coregistration reference - skipping Stage 3')
592592
regref_buffer.inputs.boldref = precomputed['coreg_boldref']
593593

594+
# TODO: Allow precomputed bold masks to be passed
595+
# Also needs consideration for how it interacts above
596+
skullstrip_precomp_ref_wf = init_skullstrip_bold_wf(name='skullstrip_precomp_ref_wf')
597+
skullstrip_precomp_ref_wf.inputs.inputnode.in_file = precomputed['coreg_boldref']
598+
workflow.connect([
599+
(skullstrip_precomp_ref_wf, regref_buffer, [('outputnode.mask_file', 'boldmask')])
600+
]) # fmt:skip
601+
594602
if not boldref2anat_xform:
595603
# calculate BOLD registration to T1w
596604
bold_reg_wf = init_bold_reg_wf(

0 commit comments

Comments
 (0)