@@ -38,6 +38,7 @@ class DWIDenoiseInputSpec(MRTrix3BaseInputSpec):
3838 genfile = True )
3939
4040class DWIDenoiseOutputSpec (TraitedSpec ):
41+ noise = File (desc = 'the output noise map' , exists = True )
4142 out_file = File (desc = 'the output denoised DWI image' , exists = True )
4243
4344class DWIDenoise (MRTrix3Base ):
@@ -75,6 +76,13 @@ class DWIDenoise(MRTrix3Base):
7576 input_spec = DWIDenoiseInputSpec
7677 output_spec = DWIDenoiseOutputSpec
7778
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+
7886
7987class MRDeGibbsInputSpec (MRTrix3BaseInputSpec ):
8088 in_file = File (
@@ -204,6 +212,7 @@ class DWIBiasCorrectInputSpec(MRTrix3BaseInputSpec):
204212 genfile = True )
205213
206214class DWIBiasCorrectOutputSpec (TraitedSpec ):
215+ bias = File (desc = 'the output bias field' , exists = True )
207216 out_file = File (desc = 'the output bias corrected DWI image' , exists = True )
208217
209218class DWIBiasCorrect (MRTrix3Base ):
@@ -228,6 +237,13 @@ class DWIBiasCorrect(MRTrix3Base):
228237 input_spec = DWIBiasCorrectInputSpec
229238 output_spec = DWIBiasCorrectOutputSpec
230239
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+
231247
232248class ResponseSDInputSpec (MRTrix3BaseInputSpec ):
233249 algorithm = traits .Enum (
0 commit comments