@@ -449,17 +449,17 @@ def init_single_subject_wf(layout, subject_id, task_id, echo_idx, name, reportle
449
449
bids_root = layout .root ,
450
450
debug = debug ,
451
451
freesurfer = freesurfer ,
452
- fs_spaces = output_spaces ,
453
452
hires = hires ,
454
453
longitudinal = longitudinal ,
455
454
name = "anat_preproc_wf" ,
456
455
num_t1w = len (subject_data ['t1w' ]),
457
456
omp_nthreads = omp_nthreads ,
458
457
output_dir = output_dir ,
458
+ output_spaces = {template : {} if template_out_grid == 'native'
459
+ else {'res' : template_out_grid [0 ]}},
459
460
reportlets_dir = reportlets_dir ,
460
461
skull_strip_fixed_seed = skull_strip_fixed_seed ,
461
462
skull_strip_template = skull_strip_template ,
462
- template = template ,
463
463
)
464
464
465
465
workflow .connect ([
@@ -525,8 +525,10 @@ def init_single_subject_wf(layout, subject_id, task_id, echo_idx, name, reportle
525
525
('outputnode.t1_aseg' , 'inputnode.t1_aseg' ),
526
526
('outputnode.t1_aparc' , 'inputnode.t1_aparc' ),
527
527
('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' ),
530
532
# Undefined if --no-freesurfer, but this is safe
531
533
('outputnode.subjects_dir' , 'inputnode.subjects_dir' ),
532
534
('outputnode.subject_id' , 'inputnode.subject_id' ),
0 commit comments