Skip to content

Commit b5d16d3

Browse files
authored
Merge pull request #39 from mgxd/fix/bold-coreg
FIX: T1 BOLD coregistration
2 parents c065e14 + 5792d59 commit b5d16d3

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

nibabies/cli/parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ def parse_args(args=None, namespace=None):
626626
# Initialize --output-spaces if not defined
627627
if config.execution.output_spaces is None:
628628
# TODO: Set a default volumetric output space
629+
pass
629630

630631
# Retrieve logging level
631632
build_log = config.loggers.cli

nibabies/workflows/bold/registration.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,14 @@ def init_bold_reg_wf(
131131
name='outputnode'
132132
)
133133

134-
# if freesurfer:
135-
# bbr_wf = init_bbreg_wf(use_bbr=use_bbr, bold2t1w_dof=bold2t1w_dof,
136-
# bold2t1w_init=bold2t1w_init, omp_nthreads=omp_nthreads)
137-
# else:
138-
# bbr_wf = init_fsl_bbr_wf(use_bbr=use_bbr, bold2t1w_dof=bold2t1w_dof,
139-
# bold2t1w_init=bold2t1w_init, sloppy=sloppy)
140-
# Replace with volumetric registration until better WM/GM contrasts
141-
142-
bbr_wf = init_fsl_bbr_wf(use_bbr=False, bold2t1w_dof=bold2t1w_dof,
143-
bold2t1w_init=bold2t1w_init, sloppy=sloppy)
134+
# Default to no bbr for the moment
135+
use_bbr = False
136+
if freesurfer:
137+
bbr_wf = init_bbreg_wf(use_bbr=use_bbr, bold2t1w_dof=bold2t1w_dof,
138+
bold2t1w_init=bold2t1w_init, omp_nthreads=omp_nthreads)
139+
else:
140+
bbr_wf = init_fsl_bbr_wf(use_bbr=use_bbr, bold2t1w_dof=bold2t1w_dof,
141+
bold2t1w_init=bold2t1w_init, sloppy=sloppy)
144142

145143
workflow.connect([
146144
(inputnode, bbr_wf, [

0 commit comments

Comments
 (0)