@@ -386,11 +386,11 @@ class Surface2VolTransformInputSpec(FSTraitedSpec):
386
386
source_file = File (exists = True , argstr = '--surfval %s' ,
387
387
copyfile = False , mandatory = True ,
388
388
desc = 'This is the source of the surface values' )
389
- hemi = traits .Str (argstr = '--hemi %s' ,desc = 'hemisphere of data' )
389
+ hemi = traits .Str (argstr = '--hemi %s' , mandatory = True , desc = 'hemisphere of data' )
390
390
transformed_file = File (desc = 'Output volume' , argstr = '--outvol %s' , genfile = True )
391
391
reg_file = File (exists = True , argstr = '--volreg %s' ,
392
392
mandatory = True ,
393
- desc = 'tkRAS-to-tkRAS matrix (tkregister2 format)'
393
+ desc = 'tkRAS-to-tkRAS matrix (tkregister2 format)' ,
394
394
xor = ['subject_id' ])
395
395
template_file = File (exists = True , argstr = '--template %s' ,
396
396
desc = 'Output template volume' )
@@ -413,11 +413,11 @@ class Surface2VolTransform(FSCommand):
413
413
414
414
>>> from nipype.interfaces.freesurfer import Surface2VolTransform
415
415
>>> xfm2vol = Surface2VolTransform()
416
- >>> xfm2vol.inputs.source_file = 'surface.nii '
417
- >>> xfm2vol.inputs.reg_file = 'register.dat '
416
+ >>> xfm2vol.inputs.source_file = 'lh.cope1.mgz '
417
+ >>> xfm2vol.inputs.reg_file = 'register.mat '
418
418
>>> xfm2vol.inputs.hemi = 'lh'
419
- >>> xfm2vol.cmdline
420
- 'mri_surf2vol --volreg register.dat --surfval surface.nii --hemi lh'
419
+ >>> xfm2vol.inputs.template_file = 'cope1.nii.gz'
420
+ >>> res = xfm2vol.run()# doctest: +SKIP
421
421
422
422
"""
423
423
0 commit comments