Skip to content

Commit 2bf7570

Browse files
committed
Merge pull request #674 from dmordom/fix/probstreamtrack
Spec should be in mm.
2 parents b2eeaa0 + a983a92 commit 2bf7570

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

nipype/interfaces/mrtrix/tracking.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,17 @@ class StreamlineTrackInputSpec(CommandLineInputSpec):
7272
'the base DWI are needed. For SD methods, the SH harmonic coefficients of the FOD are needed.')
7373

7474
seed_file = File(exists=True, argstr='-seed %s', mandatory=False, position=2, desc='seed file')
75-
seed_spec = traits.List(traits.Int, desc='seed specification in voxels and radius (x y z r)', position=2,
76-
argstr='-seed %s', minlen=4, maxlen=4, sep=',', units='voxels')
75+
seed_spec = traits.List(traits.Float, desc='seed specification in mm and radius (x y z r)', position=2,
76+
argstr='-seed %s', minlen=4, maxlen=4, sep=',', units='mm')
7777
include_file = File(exists=True, argstr='-include %s', mandatory=False, position=2, desc='inclusion file')
78-
include_spec = traits.List(traits.Int, desc='inclusion specification in voxels and radius (x y z r)', position=2,
79-
argstr='-seed %s', minlen=4, maxlen=4, sep=',', units='voxels')
78+
include_spec = traits.List(traits.Float, desc='inclusion specification in mm and radius (x y z r)', position=2,
79+
argstr='-seed %s', minlen=4, maxlen=4, sep=',', units='mm')
8080
exclude_file = File(exists=True, argstr='-exclude %s', mandatory=False, position=2, desc='exclusion file')
81-
exclude_spec = traits.List(traits.Int, desc='exclusion specification in voxels and radius (x y z r)', position=2,
82-
argstr='-seed %s', minlen=4, maxlen=4, sep=',', units='voxels')
81+
exclude_spec = traits.List(traits.Float, desc='exclusion specification in mm and radius (x y z r)', position=2,
82+
argstr='-seed %s', minlen=4, maxlen=4, sep=',', units='mm')
8383
mask_file = File(exists=True, argstr='-exclude %s', mandatory=False, position=2, desc='mask file. Only tracks within mask.')
84-
mask_spec = traits.List(traits.Int, desc='Mask specification in voxels and radius (x y z r). Tracks will be terminated when they leave the ROI.', position=2,
85-
argstr='-seed %s', minlen=4, maxlen=4, sep=',', units='voxels')
84+
mask_spec = traits.List(traits.Float, desc='Mask specification in mm and radius (x y z r). Tracks will be terminated when they leave the ROI.', position=2,
85+
argstr='-seed %s', minlen=4, maxlen=4, sep=',', units='mm')
8686

8787
inputmodel = traits.Enum('DT_STREAM', 'SD_PROB', 'SD_STREAM',
8888
argstr='%s', desc='input model type', usedefault=True, position=-3)
@@ -183,7 +183,7 @@ def __init__(self, command=None, **inputs):
183183
return super(DiffusionTensorStreamlineTrack, self).__init__(command, **inputs)
184184

185185
class ProbabilisticSphericallyDeconvolutedStreamlineTrackInputSpec(StreamlineTrackInputSpec):
186-
maximum_number_of_trials = traits.Int(argstr='-trials %s', units='mm',
186+
maximum_number_of_trials = traits.Int(argstr='-trials %s',
187187
desc="Set the maximum number of sampling trials at each point (only used for probabilistic tracking).")
188188

189189
class ProbabilisticSphericallyDeconvolutedStreamlineTrack(StreamlineTrack):

0 commit comments

Comments
 (0)