Skip to content

Commit 8816365

Browse files
committed
add skull_file output
1 parent 5e9d9b5 commit 8816365

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nipype/interfaces/fsl/preprocess.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class BETOutputSpec(TraitedSpec):
111111
outskin_mesh_file = File(
112112
desc="path/name of outskin mesh outline (if generated)")
113113
skull_mask_file = File(desc="path/name of skull mask (if generated)")
114+
skull_file = File(desc="path/name of skull file (if generated)")
114115

115116

116117
class BET(FSLCommand):
@@ -181,6 +182,9 @@ def _list_outputs(self):
181182
outputs['out_file'], suffix='_outskin_mesh')
182183
outputs['skull_mask_file'] = self._gen_fname(
183184
outputs['out_file'], suffix='_skull_mask')
185+
if isdefined(self.inputs.skull) and self.inputs.skull:
186+
outputs['skull_file'] = self._gen_fname(
187+
outputs['out_file'], suffix='_skull')
184188
if isdefined(self.inputs.no_output) and self.inputs.no_output:
185189
outputs['out_file'] = Undefined
186190
return outputs

0 commit comments

Comments
 (0)