@@ -38,6 +38,7 @@ class DWIDenoiseInputSpec(MRTrix3BaseInputSpec):
38
38
genfile = True )
39
39
40
40
class DWIDenoiseOutputSpec (TraitedSpec ):
41
+ noise = File (desc = 'the output noise map' , exists = True )
41
42
out_file = File (desc = 'the output denoised DWI image' , exists = True )
42
43
43
44
class DWIDenoise (MRTrix3Base ):
@@ -75,6 +76,13 @@ class DWIDenoise(MRTrix3Base):
75
76
input_spec = DWIDenoiseInputSpec
76
77
output_spec = DWIDenoiseOutputSpec
77
78
79
+ def _list_outputs (self ):
80
+ outputs = self .output_spec ().get ()
81
+ outputs ['out_file' ] = op .abspath (self .inputs .out_file )
82
+ if self .inputs .noise != Undefined :
83
+ outputs ['noise' ] = op .abspath (self .inputs .noise )
84
+ return outputs
85
+
78
86
79
87
class MRDeGibbsInputSpec (MRTrix3BaseInputSpec ):
80
88
in_file = File (
@@ -204,6 +212,7 @@ class DWIBiasCorrectInputSpec(MRTrix3BaseInputSpec):
204
212
genfile = True )
205
213
206
214
class DWIBiasCorrectOutputSpec (TraitedSpec ):
215
+ bias = File (desc = 'the output bias field' , exists = True )
207
216
out_file = File (desc = 'the output bias corrected DWI image' , exists = True )
208
217
209
218
class DWIBiasCorrect (MRTrix3Base ):
@@ -228,6 +237,13 @@ class DWIBiasCorrect(MRTrix3Base):
228
237
input_spec = DWIBiasCorrectInputSpec
229
238
output_spec = DWIBiasCorrectOutputSpec
230
239
240
+ def _list_outputs (self ):
241
+ outputs = self .output_spec ().get ()
242
+ outputs ['out_file' ] = op .abspath (self .inputs .out_file )
243
+ if self .inputs .bias != Undefined :
244
+ outputs ['bias' ] = op .abspath (self .inputs .bias )
245
+ return outputs
246
+
231
247
232
248
class ResponseSDInputSpec (MRTrix3BaseInputSpec ):
233
249
algorithm = traits .Enum (
0 commit comments