Skip to content

Commit

Permalink
Merge pull request #39 from mgxd/fix/bold-coreg
Browse files Browse the repository at this point in the history
FIX: T1 BOLD coregistration
  • Loading branch information
mgxd authored Mar 17, 2021
2 parents c065e14 + 5792d59 commit b5d16d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
1 change: 1 addition & 0 deletions nibabies/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ def parse_args(args=None, namespace=None):
# Initialize --output-spaces if not defined
if config.execution.output_spaces is None:
# TODO: Set a default volumetric output space
pass

# Retrieve logging level
build_log = config.loggers.cli
Expand Down
18 changes: 8 additions & 10 deletions nibabies/workflows/bold/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,14 @@ def init_bold_reg_wf(
name='outputnode'
)

# if freesurfer:
# bbr_wf = init_bbreg_wf(use_bbr=use_bbr, bold2t1w_dof=bold2t1w_dof,
# bold2t1w_init=bold2t1w_init, omp_nthreads=omp_nthreads)
# else:
# bbr_wf = init_fsl_bbr_wf(use_bbr=use_bbr, bold2t1w_dof=bold2t1w_dof,
# bold2t1w_init=bold2t1w_init, sloppy=sloppy)
# Replace with volumetric registration until better WM/GM contrasts

bbr_wf = init_fsl_bbr_wf(use_bbr=False, bold2t1w_dof=bold2t1w_dof,
bold2t1w_init=bold2t1w_init, sloppy=sloppy)
# Default to no bbr for the moment
use_bbr = False
if freesurfer:
bbr_wf = init_bbreg_wf(use_bbr=use_bbr, bold2t1w_dof=bold2t1w_dof,
bold2t1w_init=bold2t1w_init, omp_nthreads=omp_nthreads)
else:
bbr_wf = init_fsl_bbr_wf(use_bbr=use_bbr, bold2t1w_dof=bold2t1w_dof,
bold2t1w_init=bold2t1w_init, sloppy=sloppy)

workflow.connect([
(inputnode, bbr_wf, [
Expand Down

0 comments on commit b5d16d3

Please sign in to comment.