Skip to content

Commit 4f13b1d

Browse files
ranjitchrisgorgo
authored andcommitted
added back the fstat outputs to fsl flameo interface
Conflicts: nipype/interfaces/fsl/model.py
1 parent 7b44101 commit 4f13b1d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

nipype/interfaces/fsl/model.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,8 @@ class FLAMEOOutputSpec(TraitedSpec):
678678
exists=True, desc="Variance estimates for each contrast")
679679
zstats = OutputMultiPath(exists=True, desc="z-stat file for each contrast")
680680
tstats = OutputMultiPath(exists=True, desc="t-stat file for each contrast")
681+
zfstats = OutputMultiPath(exists=True, desc="z stat file for each f contrast")
682+
fstats = OutputMultiPath(exists=True, desc="f-stat file for each contrast")
681683
mrefvars = OutputMultiPath(
682684
exists=True, desc="mean random effect variances for each contrast")
683685
tdof = OutputMultiPath(
@@ -752,6 +754,16 @@ def _list_outputs(self):
752754
zstats = glob(os.path.join(pth, 'zstat[0-9]*.*'))
753755
assert len(zstats) >= 1, 'No zstat volumes generated by FSL CEstimate'
754756
outputs['zstats'] = zstats
757+
758+
759+
if isdefined(self.inputs.f_con_file):
760+
zfstats = glob(os.path.join(pth, 'zfstat[0-9]*.*'))
761+
assert len(zfstats) >= 1, 'No zfstat volumes generated by FSL CEstimate'
762+
outputs['zfstats'] = zfstats
763+
764+
fstats = glob(os.path.join(pth, 'fstat[0-9]*.*'))
765+
assert len(fstats) >= 1, 'No fstat volumes generated by FSL CEstimate'
766+
outputs['fstats'] = fstats
755767

756768
tstats = glob(os.path.join(pth, 'tstat[0-9]*.*'))
757769
assert len(tstats) >= 1, 'No tstat volumes generated by FSL CEstimate'

0 commit comments

Comments
 (0)