@@ -659,6 +659,8 @@ class EddyInputSpec(FSLCommandInputSpec):
659
659
"the field specified by --field and first volume "
660
660
"in file --imain" )
661
661
use_cuda = traits .Bool (False , desc = "Run eddy using cuda gpu" )
662
+ cnr_maps = traits .Bool (False , desc = 'Output CNR-Maps' , argstr = '--cnr_maps' )
663
+ residuals = traits .Bool (False , desc = 'Output Residuals' , argstr = '--residuals' )
662
664
663
665
664
666
class EddyOutputSpec (TraitedSpec ):
@@ -685,6 +687,10 @@ class EddyOutputSpec(TraitedSpec):
685
687
exists = True ,
686
688
desc = ('Text-file with a plain language report on what '
687
689
'outlier slices eddy has found' ))
690
+ out_cnr_maps = File (
691
+ exists = True , desc = 'path/name of file with the cnr_maps' )
692
+ out_residuals = File (
693
+ exists = True , desc = 'path/name of file with the residuals' )
688
694
689
695
690
696
class Eddy (FSLCommand ):
@@ -787,6 +793,16 @@ def _list_outputs(self):
787
793
self .inputs .out_base )
788
794
out_outlier_report = os .path .abspath (
789
795
'%s.eddy_outlier_report' % self .inputs .out_base )
796
+ if isdefined (self .inputs .cnr_maps ) and self .inputs .cnr_maps :
797
+ out_cnr_maps = os .path .abspath (
798
+ '%s.eddy_cnr_maps.nii.gz' % self .inputs .out_base )
799
+ if os .path .exists (out_cnr_maps ):
800
+ outputs ['out_cnr_maps' ] = out_cnr_maps
801
+ if isdefined (self .inputs .residuals ) and self .inputs .residuals :
802
+ out_residuals = os .path .abspath (
803
+ '%s.eddy_residuals.nii.gz' % self .inputs .out_base )
804
+ if os .path .exists (out_residuals ):
805
+ outputs ['out_residuals' ] = out_residuals
790
806
791
807
if os .path .exists (out_rotated_bvecs ):
792
808
outputs ['out_rotated_bvecs' ] = out_rotated_bvecs
0 commit comments