Skip to content

Commit 4019493

Browse files
committed
fix(workflow): update to latest version of anatomical workflow
1 parent 7538b57 commit 4019493

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

fmriprep/workflows/base.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,17 +449,17 @@ def init_single_subject_wf(layout, subject_id, task_id, echo_idx, name, reportle
449449
bids_root=layout.root,
450450
debug=debug,
451451
freesurfer=freesurfer,
452-
fs_spaces=output_spaces,
453452
hires=hires,
454453
longitudinal=longitudinal,
455454
name="anat_preproc_wf",
456455
num_t1w=len(subject_data['t1w']),
457456
omp_nthreads=omp_nthreads,
458457
output_dir=output_dir,
458+
output_spaces={template: {} if template_out_grid == 'native'
459+
else {'res': template_out_grid[0]}},
459460
reportlets_dir=reportlets_dir,
460461
skull_strip_fixed_seed=skull_strip_fixed_seed,
461462
skull_strip_template=skull_strip_template,
462-
template=template,
463463
)
464464

465465
workflow.connect([
@@ -525,8 +525,10 @@ def init_single_subject_wf(layout, subject_id, task_id, echo_idx, name, reportle
525525
('outputnode.t1_aseg', 'inputnode.t1_aseg'),
526526
('outputnode.t1_aparc', 'inputnode.t1_aparc'),
527527
('outputnode.t1_tpms', 'inputnode.t1_tpms'),
528-
('outputnode.t1_2_mni_forward_transform', 'inputnode.t1_2_mni_forward_transform'),
529-
('outputnode.t1_2_mni_reverse_transform', 'inputnode.t1_2_mni_reverse_transform'),
528+
(('outputnode.joint_forward_transform', _pop),
529+
'inputnode.t1_2_mni_forward_transform'),
530+
(('outputnode.joint_reverse_transform', _pop),
531+
'inputnode.t1_2_mni_reverse_transform'),
530532
# Undefined if --no-freesurfer, but this is safe
531533
('outputnode.subjects_dir', 'inputnode.subjects_dir'),
532534
('outputnode.subject_id', 'inputnode.subject_id'),

0 commit comments

Comments
 (0)