File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,10 @@ def init_bold_reference_wf(
188188
189189
190190def init_enhance_and_skullstrip_bold_wf (
191- name = "enhance_and_skullstrip_bold_wf" , pre_mask = False , omp_nthreads = 1
191+ brainmask_thresh = 0.5 ,
192+ name = "enhance_and_skullstrip_bold_wf" ,
193+ omp_nthreads = 1 ,
194+ pre_mask = False ,
192195):
193196 """
194197 Enhance and run brain extraction on a BOLD EPI image.
@@ -238,13 +241,16 @@ def init_enhance_and_skullstrip_bold_wf(
238241
239242 Parameters
240243 ----------
244+ brainmask_thresh: :obj:`float`
245+ Lower threshold for the probabilistic brainmask to obtain
246+ the final binary mask (default: 0.5).
241247 name : str
242248 Name of workflow (default: ``enhance_and_skullstrip_bold_wf``)
249+ omp_nthreads : int
250+ number of threads available to parallel nodes
243251 pre_mask : bool
244252 Indicates whether the ``pre_mask`` input will be set (and thus, step 1
245253 should be skipped).
246- omp_nthreads : int
247- number of threads available to parallel nodes
248254
249255 Inputs
250256 ------
@@ -399,7 +405,7 @@ def init_enhance_and_skullstrip_bold_wf(
399405 ),
400406 name = "map_brainmask" ,
401407 )
402- binarize_mask = pe .Node (Binarize (thresh_low = 0.15 ), name = "binarize_mask" )
408+ binarize_mask = pe .Node (Binarize (thresh_low = brainmask_thresh ), name = "binarize_mask" )
403409
404410 # fmt: off
405411 workflow .connect ([
You can’t perform that action at this time.
0 commit comments