Skip to content

Commit 1d90e1d

Browse files
committed
feat: Add N4 parameters to init_syn_preprocessing_wf
1 parent 9c3e833 commit 1d90e1d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sdcflows/workflows/fit/syn.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,10 @@ def init_syn_preprocessing_wf(
348348
auto_bold_nss=False,
349349
t1w_inversion=False,
350350
sd_prior=True,
351+
n4_iterations=(50,) * 5,
352+
n4_shrink_factor=4,
353+
calculate_n4_spline_grid=False,
354+
**kwargs,
351355
):
352356
"""
353357
Prepare EPI references and co-registration to anatomical for SyN.
@@ -470,6 +474,9 @@ def init_syn_preprocessing_wf(
470474
epi_reference_wf = init_epi_reference_wf(
471475
omp_nthreads=omp_nthreads,
472476
auto_bold_nss=auto_bold_nss,
477+
n4_iterations=n4_iterations,
478+
n4_shrink_factor=n4_shrink_factor,
479+
calculate_bspline_grid=calculate_n4_spline_grid,
473480
)
474481
epi_brain = pe.Node(BrainExtraction(), name='epi_brain')
475482
merge_output = pe.Node(

0 commit comments

Comments
 (0)