Skip to content
Closed
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
2 changes: 1 addition & 1 deletion fmriprep/workflows/bold/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def init_func_preproc_wf(bold_file):
])

# Generate a tentative boldref
bold_reference_wf = init_bold_reference_wf(omp_nthreads=omp_nthreads)
bold_reference_wf = init_bold_reference_wf(omp_nthreads=omp_nthreads, brainmask_thresh=0.85)
bold_reference_wf.inputs.inputnode.dummy_scans = config.workflow.dummy_scans
if sbref_file is not None:
workflow.connect([
Expand Down
2 changes: 1 addition & 1 deletion fmriprep/workflows/bold/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def init_bold_t1_trans_wf(freesurfer, mem_gb, omp_nthreads, multiecho=False, use
merge = pe.Node(Merge(compress=use_compression), name='merge', mem_gb=mem_gb)

# Generate a reference on the target T1w space
gen_final_ref = init_bold_reference_wf(omp_nthreads, pre_mask=True)
gen_final_ref = init_bold_reference_wf(omp_nthreads, pre_mask=True, brainmask_thresh=0.85)

if not multiecho:
# Merge transforms placing the head motion correction last
Expand Down
4 changes: 2 additions & 2 deletions fmriprep/workflows/bold/resampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def init_bold_std_trans_wf(

# Generate a reference on the target standard space
gen_final_ref = init_bold_reference_wf(
omp_nthreads=omp_nthreads, pre_mask=True)
omp_nthreads=omp_nthreads, pre_mask=True, brainmask_thresh=0.85)

workflow.connect([
(iterablesource, split_target, [('std_target', 'in_target')]),
Expand Down Expand Up @@ -526,7 +526,7 @@ def init_bold_preproc_trans_wf(mem_gb, omp_nthreads,
mem_gb=mem_gb * 3)

# Generate a new BOLD reference
bold_reference_wf = init_bold_reference_wf(omp_nthreads=omp_nthreads)
bold_reference_wf = init_bold_reference_wf(omp_nthreads=omp_nthreads, brainmask_thresh=0.85)
bold_reference_wf.__desc__ = None # Unset description to avoid second appearance

workflow.connect([
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ install_requires =
nipype >= 1.4
nitime
nitransforms >= 20.0.0rc3,<20.2
niworkflows ~= 1.2.3
niworkflows @ git+https://github.com/oesteban/niworkflows.git@294a8679d0a1eb3a7536429b7c794fa902f01703
numpy
pandas
psutil >= 5.4
Expand Down