diff --git a/smriprep/workflows/anatomical.py b/smriprep/workflows/anatomical.py index b902d82610..fbb1947216 100644 --- a/smriprep/workflows/anatomical.py +++ b/smriprep/workflows/anatomical.py @@ -767,7 +767,7 @@ def init_anat_fit_wf( image_type='T1w', name='anat_template_wf', ) - ds_template_wf = init_ds_template_wf(output_dir=output_dir, num_t1w=num_t1w) + ds_template_wf = init_ds_template_wf(output_dir=output_dir, num_anat=num_t1w) # fmt:off workflow.connect([ @@ -780,11 +780,11 @@ def init_anat_fit_wf( ('outputnode.out_report', 'inputnode.t1w_conform_report'), ]), (anat_template_wf, ds_template_wf, [ - ('outputnode.anat_realign_xfm', 'inputnode.t1w_ref_xfms'), + ('outputnode.anat_realign_xfm', 'inputnode.anat_ref_xfms'), ]), (sourcefile_buffer, ds_template_wf, [('source_files', 'inputnode.source_files')]), - (t1w_buffer, ds_template_wf, [('t1w_preproc', 'inputnode.t1w_preproc')]), - (ds_template_wf, outputnode, [('outputnode.t1w_preproc', 't1w_preproc')]), + (t1w_buffer, ds_template_wf, [('t1w_preproc', 'inputnode.anat_preproc')]), + (ds_template_wf, outputnode, [('outputnode.anat_preproc', 't1w_preproc')]), ]) # fmt:on else: