Skip to content

Commit 4dc5ab1

Browse files
authored
Merge pull request #1793 from ariekahn/enh/eddy_assign_outputs
Enh/eddy assign outputs
2 parents a9e1d4a + 53364d4 commit 4dc5ab1

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

nipype/interfaces/fsl/epi.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,20 @@ class EddyOutputSpec(TraitedSpec):
454454
out_parameter = File(exists=True,
455455
desc=('text file with parameters definining the '
456456
'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'))
457471

458472

459473
class Eddy(FSLCommand):
@@ -526,6 +540,30 @@ def _list_outputs(self):
526540
'%s.nii.gz' % self.inputs.out_base)
527541
outputs['out_parameter'] = os.path.abspath(
528542
'%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+
529567
return outputs
530568

531569

0 commit comments

Comments
 (0)