|
7 | 7 |
|
8 | 8 |
|
9 | 9 | class ResampleDTIInputSpec(CommandLineInputSpec):
|
10 |
| - inputVolume = File(position="0", desc="Input volume to be resampled", exists=True, argstr="--inputVolume %s") |
11 |
| - outputVolume = traits.Either(traits.Bool, File(), position="1", hash_files=False, desc="Resampled Volume", argstr="--outputVolume %s") |
| 10 | + inputVolume = File(position=-2, desc="Input volume to be resampled", exists=True, argstr="%s") |
| 11 | + outputVolume = traits.Either(traits.Bool, File(), position=-1, hash_files=False, desc="Resampled Volume", argstr="%s") |
12 | 12 | Reference = File(desc="Reference Volume (spacing,size,orientation,origin)", exists=True, argstr="--Reference %s")
|
13 | 13 | transformationFile = File(exists=True, argstr="--transformationFile %s")
|
14 | 14 | defField = File(desc="File containing the deformation field (3D vector image containing vectors with 3 components)", exists=True, argstr="--defField %s")
|
@@ -36,7 +36,7 @@ class ResampleDTIInputSpec(CommandLineInputSpec):
|
36 | 36 |
|
37 | 37 |
|
38 | 38 | class ResampleDTIOutputSpec(TraitedSpec):
|
39 |
| - outputVolume = File(position="1", desc="Resampled Volume", exists=True) |
| 39 | + outputVolume = File(position=-1, desc="Resampled Volume", exists=True) |
40 | 40 |
|
41 | 41 |
|
42 | 42 | class ResampleDTI(SlicerCommandLine):
|
@@ -67,17 +67,17 @@ class ResampleDTI(SlicerCommandLine):
|
67 | 67 |
|
68 | 68 |
|
69 | 69 | class DiffusionTensorEstimationInputSpec(CommandLineInputSpec):
|
70 |
| - inputVolume = File(position="0", desc="Input DWI volume", exists=True, argstr="--inputVolume %s") |
| 70 | + inputVolume = File(position=-3, desc="Input DWI volume", exists=True, argstr="%s") |
71 | 71 | mask = File(desc="Mask where the tensors will be computed", exists=True, argstr="--mask %s")
|
72 |
| - outputTensor = traits.Either(traits.Bool, File(), position="1", hash_files=False, desc="Estimated DTI volume", argstr="--outputTensor %s") |
73 |
| - outputBaseline = traits.Either(traits.Bool, File(), position="2", hash_files=False, desc="Estimated baseline volume", argstr="--outputBaseline %s") |
| 72 | + outputTensor = traits.Either(traits.Bool, File(), position=-2, hash_files=False, desc="Estimated DTI volume", argstr="%s") |
| 73 | + outputBaseline = traits.Either(traits.Bool, File(), position=-1, hash_files=False, desc="Estimated baseline volume", argstr="%s") |
74 | 74 | enumeration = traits.Enum("LS", "WLS", desc="LS: Least Squares, WLS: Weighted Least Squares", argstr="--enumeration %s")
|
75 | 75 | shiftNeg = traits.Bool(desc="Shift eigenvalues so all are positive (accounts for bad tensors related to noise or acquisition error)", argstr="--shiftNeg ")
|
76 | 76 |
|
77 | 77 |
|
78 | 78 | class DiffusionTensorEstimationOutputSpec(TraitedSpec):
|
79 |
| - outputTensor = File(position="1", desc="Estimated DTI volume", exists=True) |
80 |
| - outputBaseline = File(position="2", desc="Estimated baseline volume", exists=True) |
| 79 | + outputTensor = File(position=-2, desc="Estimated DTI volume", exists=True) |
| 80 | + outputBaseline = File(position=-1, desc="Estimated baseline volume", exists=True) |
81 | 81 |
|
82 | 82 |
|
83 | 83 | class DiffusionTensorEstimation(SlicerCommandLine):
|
@@ -114,16 +114,16 @@ class DiffusionTensorEstimation(SlicerCommandLine):
|
114 | 114 |
|
115 | 115 |
|
116 | 116 | class DiffusionWeightedMaskingInputSpec(CommandLineInputSpec):
|
117 |
| - inputVolume = File(position="0", desc="Input DWI volume", exists=True, argstr="--inputVolume %s") |
118 |
| - outputBaseline = traits.Either(traits.Bool, File(), position="2", hash_files=False, desc="Estimated baseline volume", argstr="--outputBaseline %s") |
119 |
| - thresholdMask = traits.Either(traits.Bool, File(), position="3", hash_files=False, desc="Otsu Threshold Mask", argstr="--thresholdMask %s") |
| 117 | + inputVolume = File(position=-4, desc="Input DWI volume", exists=True, argstr="%s") |
| 118 | + outputBaseline = traits.Either(traits.Bool, File(), position=-2, hash_files=False, desc="Estimated baseline volume", argstr="%s") |
| 119 | + thresholdMask = traits.Either(traits.Bool, File(), position=-1, hash_files=False, desc="Otsu Threshold Mask", argstr="%s") |
120 | 120 | otsuomegathreshold = traits.Float(desc="Control the sharpness of the threshold in the Otsu computation. 0: lower threshold, 1: higher threhold", argstr="--otsuomegathreshold %f")
|
121 | 121 | removeislands = traits.Bool(desc="Remove Islands in Threshold Mask?", argstr="--removeislands ")
|
122 | 122 |
|
123 | 123 |
|
124 | 124 | class DiffusionWeightedMaskingOutputSpec(TraitedSpec):
|
125 |
| - outputBaseline = File(position="2", desc="Estimated baseline volume", exists=True) |
126 |
| - thresholdMask = File(position="3", desc="Otsu Threshold Mask", exists=True) |
| 125 | + outputBaseline = File(position=-2, desc="Estimated baseline volume", exists=True) |
| 126 | + thresholdMask = File(position=-1, desc="Otsu Threshold Mask", exists=True) |
127 | 127 |
|
128 | 128 |
|
129 | 129 | class DiffusionWeightedMasking(SlicerCommandLine):
|
@@ -154,13 +154,13 @@ class DiffusionWeightedMasking(SlicerCommandLine):
|
154 | 154 |
|
155 | 155 |
|
156 | 156 | class DiffusionTensorMathematicsInputSpec(CommandLineInputSpec):
|
157 |
| - inputVolume = File(position="0", desc="Input DTI volume", exists=True, argstr="--inputVolume %s") |
158 |
| - outputScalar = traits.Either(traits.Bool, File(), position="2", hash_files=False, desc="Scalar volume derived from tensor", argstr="--outputScalar %s") |
| 157 | + inputVolume = File(position=-3, desc="Input DTI volume", exists=True, argstr="%s") |
| 158 | + outputScalar = traits.Either(traits.Bool, File(), position=-1, hash_files=False, desc="Scalar volume derived from tensor", argstr="%s") |
159 | 159 | enumeration = traits.Enum("Trace", "Determinant", "RelativeAnisotropy", "FractionalAnisotropy", "Mode", "LinearMeasure", "PlanarMeasure", "SphericalMeasure", "MinEigenvalue", "MidEigenvalue", "MaxEigenvalue", "MaxEigenvalueProjectionX", "MaxEigenvalueProjectionY", "MaxEigenvalueProjectionZ", "RAIMaxEigenvecX", "RAIMaxEigenvecY", "RAIMaxEigenvecZ", "D11", "D22", "D33", "ParallelDiffusivity", "PerpendicularDffusivity", desc="An enumeration of strings", argstr="--enumeration %s")
|
160 | 160 |
|
161 | 161 |
|
162 | 162 | class DiffusionTensorMathematicsOutputSpec(TraitedSpec):
|
163 |
| - outputScalar = File(position="2", desc="Scalar volume derived from tensor", exists=True) |
| 163 | + outputScalar = File(position=-1, desc="Scalar volume derived from tensor", exists=True) |
164 | 164 |
|
165 | 165 |
|
166 | 166 | class DiffusionTensorMathematics(SlicerCommandLine):
|
|
0 commit comments