@@ -1276,13 +1276,13 @@ def init_infant_anat_fit_wf(
1276
1276
(fsnative_buffer , gifti_surfaces_wf , [
1277
1277
('fsnative2anat_xfm' , 'inputnode.fsnative2anat_xfm' ),
1278
1278
]),
1279
- (gifti_surfaces_wf , surfaces_buffer , [
1280
- (f'outputnode.{ surf } ' , surf ) for surf in surfs
1281
- ]),
1282
1279
(sourcefile_buffer , ds_surfaces_wf , [('anat_source_files' , 'inputnode.source_files' )]),
1283
1280
(gifti_surfaces_wf , ds_surfaces_wf , [
1284
1281
(f'outputnode.{ surf } ' , f'inputnode.{ surf } ' ) for surf in surfs
1285
1282
]),
1283
+ (ds_surfaces_wf , surfaces_buffer , [
1284
+ (f'outputnode.{ surf } ' , surf ) for surf in surfs
1285
+ ]),
1286
1286
]) # fmt:skip
1287
1287
if spheres :
1288
1288
gifti_spheres_wf = init_gifti_surfaces_wf (
@@ -1300,13 +1300,13 @@ def init_infant_anat_fit_wf(
1300
1300
('outputnode.subjects_dir' , 'inputnode.subjects_dir' ),
1301
1301
# No transform for spheres, following HCP pipelines' lead
1302
1302
]),
1303
- (gifti_spheres_wf , surfaces_buffer , [
1304
- (f'outputnode.{ sphere } ' , sphere ) for sphere in spheres
1305
- ]),
1306
1303
(sourcefile_buffer , ds_spheres_wf , [('anat_source_files' , 'inputnode.source_files' )]),
1307
1304
(gifti_spheres_wf , ds_spheres_wf , [
1308
1305
(f'outputnode.{ sphere } ' , f'inputnode.{ sphere } ' ) for sphere in spheres
1309
1306
]),
1307
+ (ds_spheres_wf , surfaces_buffer , [
1308
+ (f'outputnode.{ sphere } ' , sphere ) for sphere in spheres
1309
+ ]),
1310
1310
]) # fmt:skip
1311
1311
metrics = [metric for metric in needed_metrics if metric not in found_surfs ]
1312
1312
if metrics :
@@ -1324,13 +1324,13 @@ def init_infant_anat_fit_wf(
1324
1324
('outputnode.subject_id' , 'inputnode.subject_id' ),
1325
1325
('outputnode.subjects_dir' , 'inputnode.subjects_dir' ),
1326
1326
]),
1327
- (gifti_morph_wf , surfaces_buffer , [
1328
- (f'outputnode.{ metric } ' , metric ) for metric in metrics
1329
- ]),
1330
1327
(sourcefile_buffer , ds_morph_wf , [('anat_source_files' , 'inputnode.source_files' )]),
1331
1328
(gifti_morph_wf , ds_morph_wf , [
1332
1329
(f'outputnode.{ metric } ' , f'inputnode.{ metric } ' ) for metric in metrics
1333
1330
]),
1331
+ (ds_morph_wf , surfaces_buffer , [
1332
+ (f'outputnode.{ metric } ' , metric ) for metric in metrics
1333
+ ]),
1334
1334
]) # fmt:skip
1335
1335
1336
1336
if 'anat_ribbon' not in precomputed :
@@ -2232,13 +2232,13 @@ def init_infant_single_anat_fit_wf(
2232
2232
(fsnative_buffer , gifti_surfaces_wf , [
2233
2233
('fsnative2anat_xfm' , 'inputnode.fsnative2anat_xfm' ),
2234
2234
]),
2235
- (gifti_surfaces_wf , surfaces_buffer , [
2236
- (f'outputnode.{ surf } ' , surf ) for surf in surfs
2237
- ]),
2238
2235
(sourcefile_buffer , ds_surfaces_wf , [('anat_source_files' , 'inputnode.source_files' )]),
2239
2236
(gifti_surfaces_wf , ds_surfaces_wf , [
2240
2237
(f'outputnode.{ surf } ' , f'inputnode.{ surf } ' ) for surf in surfs
2241
2238
]),
2239
+ (ds_surfaces_wf , surfaces_buffer , [
2240
+ (f'outputnode.{ surf } ' , surf ) for surf in surfs
2241
+ ]),
2242
2242
]) # fmt:skip
2243
2243
if spheres :
2244
2244
gifti_spheres_wf = init_gifti_surfaces_wf (
@@ -2256,13 +2256,13 @@ def init_infant_single_anat_fit_wf(
2256
2256
('outputnode.subjects_dir' , 'inputnode.subjects_dir' ),
2257
2257
# No transform for spheres, following HCP pipelines' lead
2258
2258
]),
2259
- (gifti_spheres_wf , surfaces_buffer , [
2260
- (f'outputnode.{ sphere } ' , sphere ) for sphere in spheres
2261
- ]),
2262
2259
(sourcefile_buffer , ds_spheres_wf , [('anat_source_files' , 'inputnode.source_files' )]),
2263
2260
(gifti_spheres_wf , ds_spheres_wf , [
2264
2261
(f'outputnode.{ sphere } ' , f'inputnode.{ sphere } ' ) for sphere in spheres
2265
2262
]),
2263
+ (ds_spheres_wf , surfaces_buffer , [
2264
+ (f'outputnode.{ sphere } ' , sphere ) for sphere in spheres
2265
+ ]),
2266
2266
]) # fmt:skip
2267
2267
metrics = [metric for metric in needed_metrics if metric not in found_surfs ]
2268
2268
if metrics :
@@ -2280,13 +2280,13 @@ def init_infant_single_anat_fit_wf(
2280
2280
('outputnode.subject_id' , 'inputnode.subject_id' ),
2281
2281
('outputnode.subjects_dir' , 'inputnode.subjects_dir' ),
2282
2282
]),
2283
- (gifti_morph_wf , surfaces_buffer , [
2284
- (f'outputnode.{ metric } ' , metric ) for metric in metrics
2285
- ]),
2286
2283
(sourcefile_buffer , ds_morph_wf , [('anat_source_files' , 'inputnode.source_files' )]),
2287
2284
(gifti_morph_wf , ds_morph_wf , [
2288
2285
(f'outputnode.{ metric } ' , f'inputnode.{ metric } ' ) for metric in metrics
2289
2286
]),
2287
+ (ds_morph_wf , surfaces_buffer , [
2288
+ (f'outputnode.{ metric } ' , metric ) for metric in metrics
2289
+ ]),
2290
2290
]) # fmt:skip
2291
2291
2292
2292
if 'anat_ribbon' not in precomputed :
0 commit comments