@@ -1227,70 +1227,68 @@ def init_anat_derivatives_wf(output_dir, output_spaces, template, freesurfer,
1227
1227
t1_name = pe .Node (niu .Function (function = fix_multi_T1w_source_name ), name = 't1_name' )
1228
1228
1229
1229
ds_t1_preproc = pe .Node (
1230
- DerivativesDataSink (base_directory = output_dir , suffix = 'preproc' ),
1230
+ DerivativesDataSink (base_directory = output_dir , desc = 'preproc' , keep_dtype = True ),
1231
1231
name = 'ds_t1_preproc' , run_without_submitting = True )
1232
1232
1233
1233
ds_t1_mask = pe .Node (
1234
- DerivativesDataSink (base_directory = output_dir , suffix = 'brainmask ' ),
1234
+ DerivativesDataSink (base_directory = output_dir , desc = 'brain' , suffix = 'mask ' ),
1235
1235
name = 'ds_t1_mask' , run_without_submitting = True )
1236
1236
1237
1237
ds_t1_seg = pe .Node (
1238
- DerivativesDataSink (base_directory = output_dir , suffix = 'dtissue ' ),
1238
+ DerivativesDataSink (base_directory = output_dir , suffix = 'dseg ' ),
1239
1239
name = 'ds_t1_seg' , run_without_submitting = True )
1240
1240
1241
1241
ds_t1_tpms = pe .Node (
1242
1242
DerivativesDataSink (base_directory = output_dir ,
1243
- suffix = 'class -{extra_value}_probtissue ' ),
1243
+ suffix = 'label -{extra_value}_probseg ' ),
1244
1244
name = 'ds_t1_tpms' , run_without_submitting = True )
1245
1245
ds_t1_tpms .inputs .extra_values = ['CSF' , 'GM' , 'WM' ]
1246
1246
1247
- suffix_fmt = 'space-{}_{}' .format
1248
1247
ds_t1_mni = pe .Node (
1249
1248
DerivativesDataSink (base_directory = output_dir ,
1250
- suffix = suffix_fmt ( template , 'preproc' ) ),
1249
+ space = template , desc = 'preproc' , keep_dtype = True ),
1251
1250
name = 'ds_t1_mni' , run_without_submitting = True )
1252
1251
1253
1252
ds_mni_mask = pe .Node (
1254
1253
DerivativesDataSink (base_directory = output_dir ,
1255
- suffix = suffix_fmt ( template , 'brainmask' ) ),
1254
+ space = template , desc = 'brain' , suffix = 'mask' ),
1256
1255
name = 'ds_mni_mask' , run_without_submitting = True )
1257
1256
1258
1257
ds_mni_seg = pe .Node (
1259
1258
DerivativesDataSink (base_directory = output_dir ,
1260
- suffix = suffix_fmt ( template , 'dtissue' ) ),
1259
+ space = template , suffix = 'dseg' ),
1261
1260
name = 'ds_mni_seg' , run_without_submitting = True )
1262
1261
1263
1262
ds_mni_tpms = pe .Node (
1264
1263
DerivativesDataSink (base_directory = output_dir ,
1265
- suffix = suffix_fmt ( template , 'class -{extra_value}_probtissue' ) ),
1264
+ space = template , suffix = 'label -{extra_value}_probseg' ),
1266
1265
name = 'ds_mni_tpms' , run_without_submitting = True )
1267
1266
ds_mni_tpms .inputs .extra_values = ['CSF' , 'GM' , 'WM' ]
1268
1267
1269
1268
# Transforms
1270
- suffix_fmt = 'space -{}_target -{}_{} ' .format
1269
+ suffix_fmt = 'from -{}_to -{}_mode-image_xfm ' .format
1271
1270
ds_t1_mni_inv_warp = pe .Node (
1272
1271
DerivativesDataSink (base_directory = output_dir ,
1273
- suffix = suffix_fmt (template , 'T1w' , 'warp' )),
1272
+ suffix = suffix_fmt (template , 'T1w' )),
1274
1273
name = 'ds_t1_mni_inv_warp' , run_without_submitting = True )
1275
1274
1276
1275
ds_t1_template_transforms = pe .MapNode (
1277
- DerivativesDataSink (base_directory = output_dir , suffix = suffix_fmt ('orig' , 'T1w' , 'affine' )),
1276
+ DerivativesDataSink (base_directory = output_dir , suffix = suffix_fmt ('orig' , 'T1w' )),
1278
1277
iterfield = ['source_file' , 'in_file' ],
1279
1278
name = 'ds_t1_template_transforms' , run_without_submitting = True )
1280
1279
1281
- suffix_fmt = 'target-{}_{}' .format
1282
1280
ds_t1_mni_warp = pe .Node (
1283
- DerivativesDataSink (base_directory = output_dir , suffix = suffix_fmt (template , 'warp' )),
1281
+ DerivativesDataSink (base_directory = output_dir , suffix = suffix_fmt ('T1w' , template )),
1284
1282
name = 'ds_t1_mni_warp' , run_without_submitting = True )
1285
1283
1286
1284
lta_2_itk = pe .Node (LTAConvert (out_itk = True ), name = 'lta_2_itk' )
1287
1285
1288
1286
ds_t1_fsnative = pe .Node (
1289
- DerivativesDataSink (base_directory = output_dir , suffix = suffix_fmt ('fsnative ' , 'affine ' )),
1287
+ DerivativesDataSink (base_directory = output_dir , suffix = suffix_fmt ('T1w ' , 'fsnative ' )),
1290
1288
name = 'ds_t1_fsnative' , run_without_submitting = True )
1291
1289
1292
1290
name_surfs = pe .MapNode (GiftiNameSource (pattern = r'(?P<LR>[lr])h.(?P<surf>.+)_converted.gii' ,
1293
- template = '{surf}.{LR }.surf' ),
1291
+ template = 'hemi-{LR}_{surf }.surf' ),
1294
1292
iterfield = 'in_file' ,
1295
1293
name = 'name_surfs' ,
1296
1294
run_without_submitting = True )
0 commit comments