@@ -355,7 +355,7 @@ def init_anat_preproc_wf(
355
355
('outputnode.t1w_preproc' , 'inputnode.reference' ),
356
356
('outputnode.subjects_dir' , 'inputnode.subjects_dir' ),
357
357
('outputnode.subject_id' , 'inputnode.subject_id' ),
358
- ('outputnode.fsnative2t1w_xfm' , 'inputnode.fsnative2t1w_xfm ' ),
358
+ ('outputnode.fsnative2t1w_xfm' , 'inputnode.fsnative2anat_xfm ' ),
359
359
]),
360
360
(anat_fit_wf , ds_surfaces_wf , [
361
361
('outputnode.t1w_valid_list' , 'inputnode.source_files' ),
@@ -765,7 +765,7 @@ def init_anat_fit_wf(
765
765
longitudinal = longitudinal ,
766
766
omp_nthreads = omp_nthreads ,
767
767
num_files = num_t1w ,
768
- contrast = 'T1w' ,
768
+ image_type = 'T1w' ,
769
769
name = 'anat_template_wf' ,
770
770
)
771
771
ds_template_wf = init_ds_template_wf (output_dir = output_dir , num_t1w = num_t1w )
@@ -1088,10 +1088,10 @@ def init_anat_fit_wf(
1088
1088
('source_files' , 'inputnode.source_files' ),
1089
1089
]),
1090
1090
(surface_recon_wf , ds_fs_registration_wf , [
1091
- ('outputnode.fsnative2t1w_xfm' , 'inputnode.fsnative2t1w_xfm ' ),
1091
+ ('outputnode.fsnative2t1w_xfm' , 'inputnode.fsnative2anat_xfm ' ),
1092
1092
]),
1093
1093
(ds_fs_registration_wf , outputnode , [
1094
- ('outputnode.fsnative2t1w_xfm ' , 'fsnative2t1w_xfm' ),
1094
+ ('outputnode.fsnative2anat_xfm ' , 'fsnative2t1w_xfm' ),
1095
1095
]),
1096
1096
])
1097
1097
# fmt:on
@@ -1114,7 +1114,7 @@ def init_anat_fit_wf(
1114
1114
(surface_recon_wf , refinement_wf , [
1115
1115
('outputnode.subjects_dir' , 'inputnode.subjects_dir' ),
1116
1116
('outputnode.subject_id' , 'inputnode.subject_id' ),
1117
- ('outputnode.fsnative2t1w_xfm' , 'inputnode.fsnative2t1w_xfm ' ),
1117
+ ('outputnode.fsnative2t1w_xfm' , 'inputnode.fsnative2anat_xfm ' ),
1118
1118
]),
1119
1119
(t1w_buffer , refinement_wf , [
1120
1120
('t1w_preproc' , 'inputnode.reference_image' ),
@@ -1135,7 +1135,7 @@ def init_anat_fit_wf(
1135
1135
longitudinal = longitudinal ,
1136
1136
omp_nthreads = omp_nthreads ,
1137
1137
num_files = len (t2w ),
1138
- contrast = 'T2w' ,
1138
+ image_type = 'T2w' ,
1139
1139
name = 't2w_template_wf' ,
1140
1140
)
1141
1141
bbreg = pe .Node (
@@ -1224,7 +1224,7 @@ def init_anat_fit_wf(
1224
1224
(surface_recon_wf , gifti_surfaces_wf , [
1225
1225
('outputnode.subject_id' , 'inputnode.subject_id' ),
1226
1226
('outputnode.subjects_dir' , 'inputnode.subjects_dir' ),
1227
- ('outputnode.fsnative2t1w_xfm' , 'inputnode.fsnative2t1w_xfm ' ),
1227
+ ('outputnode.fsnative2t1w_xfm' , 'inputnode.fsnative2anat_xfm ' ),
1228
1228
]),
1229
1229
(gifti_surfaces_wf , surfaces_buffer , [
1230
1230
(f'outputnode.{ surf } ' , surf ) for surf in surfs
@@ -1375,7 +1375,7 @@ def init_anat_template_wf(
1375
1375
longitudinal : bool ,
1376
1376
omp_nthreads : int ,
1377
1377
num_files : int ,
1378
- contrast : str ,
1378
+ image_type : ty . Literal [ 'T1w' , 'T2w' ] = 'T1w' ,
1379
1379
name : str = 'anat_template_wf' ,
1380
1380
):
1381
1381
"""
@@ -1400,8 +1400,8 @@ def init_anat_template_wf(
1400
1400
Maximum number of threads an individual process may use
1401
1401
num_files : :obj:`int`
1402
1402
Number of images
1403
- contrast : :obj:`str`
1404
- Name of contrast, for reporting purposes, e.g., T1w, T2w, PDw
1403
+ image_type : :obj:`str`
1404
+ MR image type ( T1w, T2w, etc.)
1405
1405
name : :obj:`str`, optional
1406
1406
Workflow name (default: anat_template_wf)
1407
1407
@@ -1427,8 +1427,8 @@ def init_anat_template_wf(
1427
1427
if num_files > 1 :
1428
1428
fs_ver = fs .Info ().looseversion () or '(version unknown)'
1429
1429
workflow .__desc__ = f"""\
1430
- An anatomical { contrast } -reference map was computed after registration of
1431
- { num_files } { contrast } images (after INU-correction) using
1430
+ An anatomical { image_type } -reference map was computed after registration of
1431
+ { num_files } { image } images (after INU-correction) using
1432
1432
`mri_robust_template` [FreeSurfer { fs_ver } , @fs_template].
1433
1433
"""
1434
1434
0 commit comments