@@ -1116,8 +1116,8 @@ class VBMSegmentInputSpec(SPMCommandInputSpec):
1116
1116
4 , usedefault = True , field = 'estwrite.opts.warpreg' ,
1117
1117
desc = 'Controls balance between parameters and data' )
1118
1118
1119
- spatial_normalization = traits .Enum (
1120
- 'low' ,'high' , usedefault = True ,)
1119
+ spatial_normalization = traits .Enum ('high' ,
1120
+ 'low' ,usedefault = True ,)
1121
1121
dartel_template = File (
1122
1122
exists = True ,
1123
1123
field = 'estwrite.extopts.dartelwarp.normhigh.darteltpm' )
@@ -1210,7 +1210,7 @@ class VBMSegmentOuputSpec(TraitedSpec):
1210
1210
1211
1211
pve_label_native_images = OutputMultiPath (File (exists = True ))
1212
1212
pve_label_normalized_images = OutputMultiPath (File (exists = True ))
1213
- pve_label_normalized_images = OutputMultiPath (File (exists = True ))
1213
+ pve_label_registered_images = OutputMultiPath (File (exists = True ))
1214
1214
1215
1215
forward_deformation_field = OutputMultiPath (File (exists = True ))
1216
1216
inverse_deformation_field = OutputMultiPath (File (exists = True ))
@@ -1277,9 +1277,9 @@ def _list_outputs(self):
1277
1277
1278
1278
1279
1279
if self .inputs .pve_label_native :
1280
- outputs ['pve_label_native_images' ].append (os .path .join (pth ,"p0%s_affine .nii" % (base )))
1280
+ outputs ['pve_label_native_images' ].append (os .path .join (pth ,"p0%s .nii" % (base )))
1281
1281
if self .inputs .pve_label_normalized :
1282
- outputs ['pve_label_normalized_images' ].append (os .path .join (pth ,"w%sp0%s_affine .nii" % (dartel_px ,base )))
1282
+ outputs ['pve_label_normalized_images' ].append (os .path .join (pth ,"w%sp0%s .nii" % (dartel_px ,base )))
1283
1283
if self .inputs .pve_label_dartel == 1 :
1284
1284
outputs ['pve_label_registered_images' ].append (os .path .join (pth ,"rp0%s.nii" % ( base )))
1285
1285
elif self .inputs .pve_label_dartel == 2 :
@@ -1289,7 +1289,7 @@ def _list_outputs(self):
1289
1289
if self .inputs .bias_corrected_native :
1290
1290
outputs ['bias_corrected_images' ].append (os .path .join (pth ,"m%s.nii" % (base )))
1291
1291
if self .inputs .bias_corrected_normalized :
1292
- outputs ['normalized_bias_corrected_images' ].append (os .path .join (pth ,"wm%s%s_affine .nii" % (dartel_px , base )))
1292
+ outputs ['normalized_bias_corrected_images' ].append (os .path .join (pth ,"wm%s.nii" % (base )))
1293
1293
1294
1294
if self .inputs .deformation_field [0 ]:
1295
1295
outputs ['forward_deformation_field' ].append (os .path .join (pth ,"y_%s%s.nii" % (dartel_px ,base )))
@@ -1316,7 +1316,9 @@ def _format_arg(self, opt, spec, val):
1316
1316
1317
1317
def _parse_inputs (self ):
1318
1318
if self .inputs .spatial_normalization == 'low' :
1319
- return super (VBMSegment , self )._parse_inputs (skip = ('spatial_normalization' , 'dartel_template' ))
1319
+ einputs = super (VBMSegment , self )._parse_inputs (skip = ('spatial_normalization' , 'dartel_template' ))
1320
+ einputs [0 ]['estwrite' ]['extopts' ]['dartelwarp' ]= {'normlow' :1 }
1321
+ return einputs
1320
1322
else :
1321
1323
return super (VBMSegment , self )._parse_inputs (skip = ('spatial_normalization' ))
1322
1324
0 commit comments