@@ -89,13 +89,28 @@ class BETInputSpec(FSLCommandInputSpec):
89
89
90
90
91
91
class BETOutputSpec (TraitedSpec ):
92
- out_file = File (desc = "path/name of skullstripped file" )
92
+ out_file = File (
93
+ desc = "path/name of skullstripped file (if generated)" )
93
94
mask_file = File (
94
95
desc = "path/name of binary brain mask (if generated)" )
95
96
outline_file = File (
96
97
desc = "path/name of outline file (if generated)" )
97
98
meshfile = File (
98
99
desc = "path/name of vtk mesh file (if generated)" )
100
+ inskull_mask_file = File (
101
+ desc = "path/name of inskull mask (if generated)" )
102
+ inskull_mesh_file = File (
103
+ desc = "path/name of inskull mesh outline (if generated)" )
104
+ outskull_mask_file = File (
105
+ desc = "path/name of outskull mask (if generated)" )
106
+ outskull_mesh_file = File (
107
+ desc = "path/name of outskull mesh outline (if generated)" )
108
+ outskin_mask_file = File (
109
+ desc = "path/name of outskin mask (if generated)" )
110
+ outskin_mesh_file = File (
111
+ desc = "path/name of outskin mesh outline (if generated)" )
112
+ skull_mask_file = File (
113
+ desc = "path/name of skull mask (if generated)" )
99
114
100
115
101
116
class BET (FSLCommand ):
@@ -138,7 +153,8 @@ def _gen_outfilename(self):
138
153
def _list_outputs (self ):
139
154
outputs = self .output_spec ().get ()
140
155
outputs ['out_file' ] = self ._gen_outfilename ()
141
- if isdefined (self .inputs .mesh ) and self .inputs .mesh :
156
+ if ((isdefined (self .inputs .mesh ) and self .inputs .mesh ) or
157
+ (isdefined (self .inputs .surfaces ) and self .inputs .surfaces )):
142
158
outputs ['meshfile' ] = self ._gen_fname (outputs ['out_file' ],
143
159
suffix = '_mesh.vtk' ,
144
160
change_ext = False )
@@ -150,6 +166,21 @@ def _list_outputs(self):
150
166
if isdefined (self .inputs .outline ) and self .inputs .outline :
151
167
outputs ['outline_file' ] = self ._gen_fname (outputs ['out_file' ],
152
168
suffix = '_overlay' )
169
+ if isdefined (self .inputs .surfaces ) and self .inputs .surfaces :
170
+ outputs ['inskull_mask_file' ] = self ._gen_fname (outputs ['out_file' ],
171
+ suffix = '_inskull_mask' )
172
+ outputs ['inskull_mesh_file' ] = self ._gen_fname (outputs ['out_file' ],
173
+ suffix = '_inskull_mesh' )
174
+ outputs ['outskull_mask_file' ] = self ._gen_fname (outputs ['out_file' ],
175
+ suffix = '_outskull_mask' )
176
+ outputs ['outskull_mesh_file' ] = self ._gen_fname (outputs ['out_file' ],
177
+ suffix = '_outskull_mesh' )
178
+ outputs ['outskin_mask_file' ] = self ._gen_fname (outputs ['out_file' ],
179
+ suffix = '_outskin_mask' )
180
+ outputs ['outskin_mesh_file' ] = self ._gen_fname (outputs ['out_file' ],
181
+ suffix = '_outskin_mesh' )
182
+ outputs ['skull_mask_file' ] = self ._gen_fname (outputs ['out_file' ],
183
+ suffix = '_skull_mask' )
153
184
if isdefined (self .inputs .no_output ) and self .inputs .no_output :
154
185
outputs ['out_file' ] = Undefined
155
186
return outputs
0 commit comments