@@ -454,6 +454,20 @@ class EddyOutputSpec(TraitedSpec):
454
454
out_parameter = File (exists = True ,
455
455
desc = ('text file with parameters definining the '
456
456
'field and movement for each scan' ))
457
+ out_rotated_bvecs = File (exists = True ,
458
+ desc = ('File containing rotated b-values for all volumes' ))
459
+ out_movement_rms = File (exists = True ,
460
+ desc = ('Summary of the "total movement" in each volume' ))
461
+ out_restricted_movement_rms = File (exists = True ,
462
+ desc = ('Summary of the "total movement" in each volume '
463
+ 'disregarding translation in the PE direction' ))
464
+ out_shell_alignment_parameters = File (exists = True ,
465
+ desc = ('File containing rigid body movement parameters '
466
+ 'between the different shells as estimated by a '
467
+ 'post-hoc mutual information based registration' ))
468
+ out_outlier_report = File (exists = True ,
469
+ desc = ('Text-file with a plain language report '
470
+ 'on what outlier slices eddy has found' ))
457
471
458
472
459
473
class Eddy (FSLCommand ):
@@ -526,6 +540,30 @@ def _list_outputs(self):
526
540
'%s.nii.gz' % self .inputs .out_base )
527
541
outputs ['out_parameter' ] = os .path .abspath (
528
542
'%s.eddy_parameters' % self .inputs .out_base )
543
+
544
+ # File generation might depend on the version of EDDY
545
+ out_rotated_bvecs = os .path .abspath (
546
+ '%s.eddy_rotated_bvecs' % self .inputs .out_base )
547
+ out_movement_rms = os .path .abspath (
548
+ '%s.eddy_movement_rms' % self .inputs .out_base )
549
+ out_restricted_movement_rms = os .path .abspath (
550
+ '%s.eddy_restricted_movement_rms' % self .inputs .out_base )
551
+ out_shell_alignment_parameters = os .path .abspath (
552
+ '%s.eddy_post_eddy_shell_alignment_parameters' % self .inputs .out_base )
553
+ out_outlier_report = os .path .abspath (
554
+ '%s.eddy_outlier_report' % self .inputs .out_base )
555
+
556
+ if os .path .exists (out_rotated_bvecs ):
557
+ outputs ['out_rotated_bvecs' ] = out_rotated_bvecs
558
+ if os .path .exists (out_movement_rms ):
559
+ outputs ['out_movement_rms' ] = out_movement_rms
560
+ if os .path .exists (out_restricted_movement_rms ):
561
+ outputs ['out_restricted_movement_rms' ] = out_restricted_movement_rms
562
+ if os .path .exists (out_shell_alignment_parameters ):
563
+ outputs ['out_shell_alignment_parameters' ] = out_shell_alignment_parameters
564
+ if os .path .exists (out_outlier_report ):
565
+ outputs ['out_outlier_report' ] = out_outlier_report
566
+
529
567
return outputs
530
568
531
569
0 commit comments