@@ -26,12 +26,9 @@ class DWIDenoiseInputSpec(MRTrix3BaseInputSpec):
2626 extent = traits .Tuple ((traits .Int , traits .Int , traits .Int ),
2727 argstr = '-extent %d,%d,%d' ,
2828 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 (
3230 argstr = '-noise %s' ,
33- desc = 'the output noise map' ,
34- genfile = True )
31+ desc = 'the output noise map' )
3532 out_file = File (name_template = '%s_denoised' ,
3633 name_source = 'in_file' ,
3734 keep_extension = True ,
@@ -41,7 +38,6 @@ class DWIDenoiseInputSpec(MRTrix3BaseInputSpec):
4138 genfile = True )
4239
4340class DWIDenoiseOutputSpec (TraitedSpec ):
44- out_noisemap = File (desc = 'the output noise map' , exists = True )
4541 out_file = File (desc = 'the output denoised DWI image' , exists = True )
4642
4743class DWIDenoise (MRTrix3Base ):
@@ -71,7 +67,7 @@ class DWIDenoise(MRTrix3Base):
7167 >>> denoise.inputs.in_file = 'dwi.mif'
7268 >>> denoise.inputs.mask = 'mask.mif'
7369 >>> 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'
7571 >>> denoise.run() # doctest: +SKIP
7672 """
7773
@@ -155,7 +151,7 @@ class MRDeGibbs(MRTrix3Base):
155151 >>> import nipype.interfaces.mrtrix3 as mrt
156152 >>> unring = mrt.MRDeGibbs()
157153 >>> unring.inputs.in_file = 'dwi.mif'
158- >>> unring.cmdline # doctest: +ELLIPSIS
154+ >>> unring.cmdline
159155 'mrdegibbs -axes 0,1 -maxW 3 -minW 1 -nshifts 20 dwi.mif dwi_unr.mif'
160156 >>> unring.run() # doctest: +SKIP
161157 """
@@ -196,12 +192,9 @@ class DWIBiasCorrectInputSpec(MRTrix3BaseInputSpec):
196192 argstr = '-fslgrad %s %s' ,
197193 desc = 'diffusion gradient table in FSL bvecs/bvals format' ,
198194 xor = _xor_grads )
199- out_bias = File (name_template = '%s_biasfield' ,
200- name_source = 'in_file' ,
201- keep_extension = True ,
195+ bias = File (
202196 argstr = '-bias %s' ,
203- desc = 'bias field' ,
204- genfile = True )
197+ desc = 'bias field' )
205198 out_file = File (name_template = '%s_biascorr' ,
206199 name_source = 'in_file' ,
207200 keep_extension = True ,
@@ -211,7 +204,6 @@ class DWIBiasCorrectInputSpec(MRTrix3BaseInputSpec):
211204 genfile = True )
212205
213206class DWIBiasCorrectOutputSpec (TraitedSpec ):
214- out_bias = File (desc = 'the output estimated bias field' )
215207 out_file = File (desc = 'the output bias corrected DWI image' , exists = True )
216208
217209class DWIBiasCorrect (MRTrix3Base ):
@@ -227,8 +219,8 @@ class DWIBiasCorrect(MRTrix3Base):
227219 >>> import nipype.interfaces.mrtrix3 as mrt
228220 >>> bias_correct = mrt.DWIBiasCorrect()
229221 >>> 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'
232224 >>> bias_correct.run() # doctest: +SKIP
233225 """
234226
0 commit comments