Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions nipype/interfaces/fsl/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ class BETOutputSpec(TraitedSpec):
outskin_mask_file = File(desc="path/name of outskin mask (if generated)")
outskin_mesh_file = File(desc="path/name of outskin mesh outline (if generated)")
skull_mask_file = File(desc="path/name of skull mask (if generated)")
skull_file = File(desc="path/name of skull file (if generated)")


class BET(FSLCommand):
Expand Down Expand Up @@ -208,6 +209,10 @@ def _list_outputs(self):
outputs["skull_mask_file"] = self._gen_fname(
outputs["out_file"], suffix="_skull_mask"
)
if isdefined(self.inputs.skull) and self.inputs.skull:
outputs["skull_file"] = self._gen_fname(
outputs["out_file"], suffix="_skull"
)
if isdefined(self.inputs.no_output) and self.inputs.no_output:
outputs["out_file"] = Undefined
return outputs
Expand Down
1 change: 1 addition & 0 deletions nipype/interfaces/fsl/tests/test_auto_BET.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def test_BET_outputs():
outskin_mesh_file=dict(extensions=None,),
outskull_mask_file=dict(extensions=None,),
outskull_mesh_file=dict(extensions=None,),
skull_file=dict(extensions=None,),
skull_mask_file=dict(extensions=None,),
)
outputs = BET.output_spec()
Expand Down