@@ -1235,9 +1235,7 @@ class KellyKapowski(ANTSCommand):
1235
1235
>>> from nipype.interfaces.ants.segmentation import KellyKapowski
1236
1236
>>> kk = KellyKapowski()
1237
1237
>>> kk.inputs.dimension = 3
1238
- >>> kk.inputs.segmentation_image = "anat_hc_gm_wm.nii.gz"
1239
- >>> kk.inputs.gray_matter_prob_image = "anat_hc_gm.nii.gz"
1240
- >>> kk.inputs.white_matter_prob_image = "anat_hc_wm.nii.gz"
1238
+ >>> kk.inputs.segmentation_image = "segmentation0.nii.gz"
1241
1239
>>> kk.inputs.convergence = "[45,0.0,10]"
1242
1240
>>> kk.inputs.gradient_step = 0.025
1243
1241
>>> kk.inputs.smoothing_variance = 1.0
@@ -1246,12 +1244,15 @@ class KellyKapowski(ANTSCommand):
1246
1244
>>> kk.inputs.number_integration_points = 10
1247
1245
>>> kk.inputs.thickness_prior_estimate = 10
1248
1246
>>> kk.cmdline # doctest: +ALLOW_UNICODE
1249
- 'KellyKapowski --convergence "[45,0.0,10]"
1250
- --output "[anat_hc_gm_wm_cortical_thickness.nii.gz, anat_hc_gm_wm_warped_white_matter.nii.gz]"
1251
- --image-dimensionality 3 --gradient-step 0.025000 --gray-matter-probability-image "anat_hc_gm.nii.gz"
1252
- --number-of-integration-points 10 --segmentation-image "[anat_hc_gm_wm.nii.gz,2,3]" --smoothing-variance 1.000000
1253
- --smoothing-velocity-field-parameter 1.500000 --thickness-prior-estimate 10.000000
1254
- --white-matter-probability-image "anat_hc_wm.nii.gz"'
1247
+ "KellyKapowski --convergence "[45,0.0,10]" \
1248
+ --output "[segmentation0_cortical_thickness.nii.gz,segmentation0_warped_white_matter.nii.gz]" \
1249
+ --image-dimensionality 3 --gradient-step 0.025000 \
1250
+ --number-of-integration-points 10 \
1251
+ --segmentation-image "[segmentation0.nii.gz,2,3]" \
1252
+ --smoothing-variance 1.000000 \
1253
+ --smoothing-velocity-field-parameter 1.500000 \
1254
+ --thickness-prior-estimate 10.000000"
1255
+
1255
1256
"""
1256
1257
_cmd = "KellyKapowski"
1257
1258
input_spec = KellyKapowskiInputSpec
@@ -1312,7 +1313,7 @@ def _format_arg(self, opt, spec, val):
1312
1313
if opt == "cortical_thickness" :
1313
1314
ct = self ._gen_filename ("cortical_thickness" )
1314
1315
wm = self ._gen_filename ("warped_white_matter" )
1315
- newval = '[{}, {}]' .format (ct , wm )
1316
+ newval = '[{},{}]' .format (ct , wm )
1316
1317
return spec .argstr % newval
1317
1318
1318
1319
return super (KellyKapowski , self )._format_arg (opt , spec , val )
0 commit comments