Skip to content

Commit 41d2b69

Browse files
slimnsouroesteban
andcommitted
Apply suggestions from @oesteban
Co-authored-by: Oscar Esteban <[email protected]>
1 parent db0fda2 commit 41d2b69

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

dmriprep/cli/parser.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,6 @@ def _bids_filter(value):
227227
help='Either "register" (the default) to initialize volumes at center or "header"'
228228
" to use the header information when coregistering BOLD to T1w images.",
229229
)
230-
g_conf.add_argument(
231-
"--bold2t1w-dof",
232-
action="store",
233-
default=6,
234-
choices=[6, 9, 12],
235-
type=int,
236-
help="Degrees of freedom when registering BOLD to T1w images. "
237-
"6 degrees (rotation and translation) are used by default.",
238-
)
239230

240231
# ANTs options
241232
g_ants = parser.add_argument_group("Specific options for ANTs registrations")

dmriprep/config/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,9 @@ class workflow(_Config):
436436
ignore = None
437437
"""Ignore particular steps for *dMRIPrep*."""
438438
longitudinal = False
439-
"""Number of ICA components to be estimated by MELODIC
440-
(positive = exact, negative = maximum)."""
441-
bold2t1w_dof = None
442-
"""Degrees of freedom of the BOLD-to-T1w registration steps."""
443439
bold2t1w_init = "register"
440+
"""Whether to use standard coregistration ('register') or to initialize coregistration from the
441+
BOLD image-header ('header')."""
444442
"""Run FreeSurfer ``recon-all`` with the ``-logitudinal`` flag."""
445443
run_reconall = True
446444
"""Run FreeSurfer's surface reconstruction."""

dmriprep/workflows/base.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,16 @@ def init_single_subject_wf(subject_id):
360360
# Mask the T1
361361
t1w_brain = pe.Node(ApplyMask(), name='t1w_brain')
362362

363-
bbr_wf = init_bbreg_wf(use_bbr=True, bold2t1w_dof=config.workflow.bold2t1w_dof,
364-
bold2t1w_init=config.workflow.bold2t1w_init, omp_nthreads=config.nipype.omp_nthreads)
363+
bbr_wf = init_bbreg_wf(
364+
bold2t1w_init=config.workflow.bold2t1w_init,
365+
omp_nthreads=config.nipype.omp_nthreads,
366+
use_bbr=True,
367+
)
365368

366369
workflow.connect([
367370
# T1 Mask
368371
(anat_preproc_wf, t1w_brain, [('outputnode.t1w_preproc', 'in_file'),
369-
('outputnode.t1w_mask', 'in_mask')]),
372+
('outputnode.t1w_mask', 'in_mask')]),
370373
# BBregister
371374
(split_info, bbr_wf, [('dwi_file', 'inputnode.in_file')]),
372375
(t1w_brain, bbr_wf, [('out_file', 'inputnode.t1w_brain')]),

0 commit comments

Comments
 (0)