Skip to content

Commit 6b23666

Browse files
committed
fixed mcflirt mean image output
1 parent 3da5443 commit 6b23666

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

nipype/interfaces/fsl/preprocess.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,17 @@ def _list_outputs(self):
678678
'_variance.ext', cwd=cwd)
679679
outputs['std_img'] = self._gen_fname(outputs['out_file'] +
680680
'_sigma.ext', cwd=cwd)
681+
682+
# The mean image created if -stats option is specified ('meanvol')
683+
# is missing the top and bottom slices. Therefore we only expose the
684+
# mean image created by -meanvol option ('mean_reg') which isn't
685+
# corrupted.
686+
# Note that the same problem holds for the std and variance image.
687+
688+
if isdefined(self.inputs.mean_vol) and self.inputs.mean_vol:
681689
outputs['mean_img'] = self._gen_fname(outputs['out_file'] +
682-
'_meanvol.ext', cwd=cwd)
690+
'_mean_reg.ext', cwd=cwd)
691+
683692
if isdefined(self.inputs.save_mats) and self.inputs.save_mats:
684693
_, filename = os.path.split(outputs['out_file'])
685694
matpathname = os.path.join(cwd, filename + '.mat')

0 commit comments

Comments
 (0)