@@ -356,7 +356,7 @@ def _list_outputs(self):
356
356
class TCK2VTKInputSpec (CommandLineInputSpec ):
357
357
in_file = File (exists = True , argstr = '%s' , mandatory = True , position = - 2 ,
358
358
desc = 'input tractography' )
359
- out_file = File ('tracked .vtk' , argstr = '%s' , usedefault = True , position = - 1 ,
359
+ out_file = File ('tracks .vtk' , argstr = '%s' , usedefault = True , position = - 1 ,
360
360
desc = 'output VTK file' )
361
361
reference = File (
362
362
exists = True , argstr = '-image %s' , desc = 'if specified, the properties of'
@@ -379,17 +379,18 @@ class TCK2VTKOutputSpec(TraitedSpec):
379
379
class TCK2VTK (MRTrix3Base ):
380
380
381
381
"""
382
-
382
+ Convert a track file to a vtk format, cave: coordinates are in XYZ
383
+ coordinates not reference
383
384
384
385
Example
385
386
-------
386
387
387
388
>>> import nipype.interfaces.mrtrix3 as mrt
388
389
>>> vtk = mrt.TCK2VTK()
389
- >>> vtk.inputs.in_file = 'tracked .tck'
390
- >>> vtk.inputs.reference = 'dwi .nii.gz '
390
+ >>> vtk.inputs.in_file = 'tracks .tck'
391
+ >>> vtk.inputs.reference = 'b0 .nii'
391
392
>>> vtk.cmdline # doctest: +ELLIPSIS
392
- 'tck2vtk -image dwi .nii.gz tracked .tck tracked .vtk'
393
+ 'tck2vtk -image b0 .nii tracks .tck tracks .vtk'
393
394
>>> vtk.run() # doctest: +SKIP
394
395
"""
395
396
0 commit comments