Skip to content

Commit d13d1a1

Browse files
committed
Patch another missing cxn
1 parent 5d9f624 commit d13d1a1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

fmriprep/workflows/bold/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
457457
('outputnode.bold_file', 'inputnode.bold_file')]),
458458
# EPI-T1 registration workflow
459459
(inputnode, bold_calc_reg_wf, [
460-
('bold_file', 'inputnode.name_source'),
461460
('t1_preproc', 'inputnode.t1_preproc'),
462461
('t1_brain', 'inputnode.t1_brain'),
463462
('t1_mask', 'inputnode.t1_mask'),
@@ -468,6 +467,7 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
468467
('subjects_dir', 'inputnode.subjects_dir'),
469468
('subject_id', 'inputnode.subject_id'),
470469
('t1_2_fsnative_reverse_transform', 'inputnode.t1_2_fsnative_reverse_transform')]),
470+
(inputnode, bold_apply_reg_wf, [('bold_file', 'inputnode.name_source')]),
471471
(bold_split, bold_apply_reg_wf, [('out_files', 'inputnode.bold_split')]),
472472
(bold_hmc_wf, bold_apply_reg_wf, [('outputnode.xforms', 'inputnode.hmc_xforms')]),
473473
(bold_calc_reg_wf, outputnode, [('outputnode.bold_aseg_t1', 'bold_aseg_t1'),

fmriprep/workflows/bold/registration.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
def init_bold_calc_reg_wf(freesurfer, use_bbr, bold2t1w_dof, mem_gb, omp_nthreads,
3838
use_compression=True, write_report=True,
39-
name='bold_calc_reg_wf', ):
39+
name='bold_calc_reg_wf'):
4040
"""
4141
This workflow calculates the registration of the reference BOLD image to T1-space,
4242
using a boundary-based registration (BBR) cost function.
@@ -80,9 +80,6 @@ def init_bold_calc_reg_wf(freesurfer, use_bbr, bold2t1w_dof, mem_gb, omp_nthread
8080
8181
**Inputs**
8282
83-
name_source
84-
BOLD series NIfTI file
85-
Used to recover original information lost during processing
8683
ref_bold_brain
8784
Reference image to which BOLD series is aligned
8885
If ``fieldwarp == True``, ``ref_bold_brain`` should be unwarped
@@ -140,7 +137,7 @@ def init_bold_calc_reg_wf(freesurfer, use_bbr, bold2t1w_dof, mem_gb, omp_nthread
140137
workflow = Workflow(name=name)
141138
inputnode = pe.Node(
142139
niu.IdentityInterface(
143-
fields=['name_source', 'ref_bold_brain', 'ref_bold_mask',
140+
fields=['ref_bold_brain', 'ref_bold_mask',
144141
't1_preproc', 't1_brain', 't1_mask', 't1_seg',
145142
't1_aseg', 't1_aparc', 'subjects_dir',
146143
'subject_id', 't1_2_fsnative_reverse_transform']),
@@ -265,6 +262,9 @@ def init_bold_apply_reg_wf(mem_gb, omp_nthreads, use_compression=True,
265262
Name of workflow (default: ``bold_apply_reg_wf``)
266263
267264
**Inputs**
265+
name_source
266+
BOLD series NIfTI file
267+
Used to recover original information lost during processing
268268
bold_split
269269
Individual 3D BOLD volumes, not motion corrected
270270
reference_grid
@@ -285,8 +285,8 @@ def init_bold_apply_reg_wf(mem_gb, omp_nthreads, use_compression=True,
285285
workflow = Workflow(name=name)
286286
inputnode = pe.Node(
287287
niu.IdentityInterface(fields=[
288-
'bold_split', 'reference_grid', 'itk_bold_to_t1',
289-
'hmc_xforms', 'fieldwarp']),
288+
'name_source', 'bold_split', 'reference_grid',
289+
'itk_bold_to_t1', 'hmc_xforms', 'fieldwarp']),
290290
name='inputnode'
291291
)
292292

0 commit comments

Comments
 (0)