@@ -32,16 +32,14 @@ class DWIDenoiseInputSpec(MRTrix3BaseInputSpec):
32
32
name_template = '%s_noise' ,
33
33
name_source = 'in_file' ,
34
34
keep_extension = True ,
35
- desc = 'the output noise map' ,
36
- genfile = True )
35
+ desc = 'the output noise map' )
37
36
out_file = File (
38
37
argstr = '%s' ,
39
38
position = - 1 ,
40
39
name_template = '%s_denoised' ,
41
40
name_source = 'in_file' ,
42
41
keep_extension = True ,
43
- desc = 'the output denoised DWI image' ,
44
- genfile = True )
42
+ desc = 'the output denoised DWI image' )
45
43
46
44
47
45
class DWIDenoiseOutputSpec (TraitedSpec ):
@@ -93,24 +91,28 @@ class MRDeGibbsInputSpec(MRTrix3BaseInputSpec):
93
91
mandatory = True ,
94
92
desc = 'input DWI image' )
95
93
axes = traits .ListInt (
96
- [0 ,1 ],
94
+ default_value = [0 , 1 ],
95
+ use_default = True ,
97
96
sep = ',' ,
98
97
minlen = 2 ,
99
98
maxlen = 2 ,
100
99
argstr = '-axes %s' ,
101
100
desc = 'indicate the plane in which the data was acquired (axial = 0,1; '
102
101
'coronal = 0,2; sagittal = 1,2' )
103
102
nshifts = traits .Int (
104
- 20 ,
103
+ default_value = 20 ,
104
+ use_default = True ,
105
105
argstr = '-nshifts %d' ,
106
106
desc = 'discretization of subpixel spacing (default = 20)' )
107
107
minW = traits .Int (
108
- 1 ,
108
+ default_value = 1 ,
109
+ use_default = True ,
109
110
argstr = '-minW %d' ,
110
111
desc = 'left border of window used for total variation (TV) computation '
111
112
'(default = 1)' )
112
113
maxW = traits .Int (
113
- 3 ,
114
+ default_value = 3 ,
115
+ use_default = True ,
114
116
argstr = '-maxW %d' ,
115
117
desc = 'right border of window used for total variation (TV) computation '
116
118
'(default = 3)' )
@@ -120,8 +122,7 @@ class MRDeGibbsInputSpec(MRTrix3BaseInputSpec):
120
122
keep_extension = True ,
121
123
argstr = '%s' ,
122
124
position = - 1 ,
123
- desc = 'the output unringed DWI image' ,
124
- genfile = True )
125
+ desc = 'the output unringed DWI image' )
125
126
126
127
class MRDeGibbsOutputSpec (TraitedSpec ):
127
128
out_file = File (desc = 'the output unringed DWI image' , exists = True )
@@ -158,7 +159,7 @@ class MRDeGibbs(MRTrix3Base):
158
159
>>> unring = mrt.MRDeGibbs()
159
160
>>> unring.inputs.in_file = 'dwi.mif'
160
161
>>> unring.cmdline
161
- 'mrdegibbs dwi.mif dwi_unr.mif'
162
+ 'mrdegibbs -axes 0,1 -maxW 3 -minW 1 -nshifts 20 dwi.mif dwi_unr.mif'
162
163
>>> unring.run() # doctest: +SKIP
163
164
"""
164
165
0 commit comments