@@ -26,12 +26,9 @@ class DWIDenoiseInputSpec(MRTrix3BaseInputSpec):
26
26
extent = traits .Tuple ((traits .Int , traits .Int , traits .Int ),
27
27
argstr = '-extent %d,%d,%d' ,
28
28
desc = 'set the window size of the denoising filter. (default = 5,5,5)' )
29
- out_noisemap = File (name_template = '%s_noisemap' ,
30
- name_source = 'in_file' ,
31
- keep_extension = True ,
29
+ noise = File (
32
30
argstr = '-noise %s' ,
33
- desc = 'the output noise map' ,
34
- genfile = True )
31
+ desc = 'the output noise map' )
35
32
out_file = File (name_template = '%s_denoised' ,
36
33
name_source = 'in_file' ,
37
34
keep_extension = True ,
@@ -41,7 +38,6 @@ class DWIDenoiseInputSpec(MRTrix3BaseInputSpec):
41
38
genfile = True )
42
39
43
40
class DWIDenoiseOutputSpec (TraitedSpec ):
44
- out_noisemap = File (desc = 'the output noise map' , exists = True )
45
41
out_file = File (desc = 'the output denoised DWI image' , exists = True )
46
42
47
43
class DWIDenoise (MRTrix3Base ):
@@ -71,7 +67,7 @@ class DWIDenoise(MRTrix3Base):
71
67
>>> denoise.inputs.in_file = 'dwi.mif'
72
68
>>> denoise.inputs.mask = 'mask.mif'
73
69
>>> denoise.cmdline # doctest: +ELLIPSIS
74
- 'dwidenoise -mask mask.mif -noise dwi_noisemap.mif dwi.mif dwi_denoised.mif'
70
+ 'dwidenoise -mask mask.mif dwi.mif dwi_denoised.mif'
75
71
>>> denoise.run() # doctest: +SKIP
76
72
"""
77
73
@@ -155,7 +151,7 @@ class MRDeGibbs(MRTrix3Base):
155
151
>>> import nipype.interfaces.mrtrix3 as mrt
156
152
>>> unring = mrt.MRDeGibbs()
157
153
>>> unring.inputs.in_file = 'dwi.mif'
158
- >>> unring.cmdline # doctest: +ELLIPSIS
154
+ >>> unring.cmdline
159
155
'mrdegibbs -axes 0,1 -maxW 3 -minW 1 -nshifts 20 dwi.mif dwi_unr.mif'
160
156
>>> unring.run() # doctest: +SKIP
161
157
"""
@@ -196,12 +192,9 @@ class DWIBiasCorrectInputSpec(MRTrix3BaseInputSpec):
196
192
argstr = '-fslgrad %s %s' ,
197
193
desc = 'diffusion gradient table in FSL bvecs/bvals format' ,
198
194
xor = _xor_grads )
199
- out_bias = File (name_template = '%s_biasfield' ,
200
- name_source = 'in_file' ,
201
- keep_extension = True ,
195
+ bias = File (
202
196
argstr = '-bias %s' ,
203
- desc = 'bias field' ,
204
- genfile = True )
197
+ desc = 'bias field' )
205
198
out_file = File (name_template = '%s_biascorr' ,
206
199
name_source = 'in_file' ,
207
200
keep_extension = True ,
@@ -211,7 +204,6 @@ class DWIBiasCorrectInputSpec(MRTrix3BaseInputSpec):
211
204
genfile = True )
212
205
213
206
class DWIBiasCorrectOutputSpec (TraitedSpec ):
214
- out_bias = File (desc = 'the output estimated bias field' )
215
207
out_file = File (desc = 'the output bias corrected DWI image' , exists = True )
216
208
217
209
class DWIBiasCorrect (MRTrix3Base ):
@@ -227,8 +219,8 @@ class DWIBiasCorrect(MRTrix3Base):
227
219
>>> import nipype.interfaces.mrtrix3 as mrt
228
220
>>> bias_correct = mrt.DWIBiasCorrect()
229
221
>>> bias_correct.inputs.in_file = 'dwi.mif'
230
- >>> bias_correct.cmdline # doctest: +ELLIPSIS
231
- 'dwibiascorrect -ants -bias dwi_biasfield.mif dwi.mif dwi_biascorr.mif'
222
+ >>> bias_correct.cmdline
223
+ 'dwibiascorrect -ants dwi.mif dwi_biascorr.mif'
232
224
>>> bias_correct.run() # doctest: +SKIP
233
225
"""
234
226
0 commit comments