Skip to content

Commit 5d9f624

Browse files
committed
Update docs
1 parent 45de1d5 commit 5d9f624

File tree

4 files changed

+27
-25
lines changed

4 files changed

+27
-25
lines changed

docs/workflows.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ to be run through ``fmriprep``.
128128

129129
Longitudinal processing
130130
~~~~~~~~~~~~~~~~~~~~~~~
131-
In the case of multiple T1w images (across sessions and/or runs), T1w images are
131+
In the case of multiple T1w images (across sessions and/or runs), T1w images are
132132
merged into a single template image using FreeSurfer's `mri_robust_template`_.
133133
This template may be *unbiased*, or equidistant from all source images, or
134134
aligned to the first image (determined lexicographically by session label).
@@ -431,23 +431,23 @@ Interpolation uses a Lanczos kernel.
431431

432432
EPI to T1w registration
433433
~~~~~~~~~~~~~~~~~~~~~~~
434-
:mod:`fmriprep.workflows.bold.registration.init_bold_reg_wf`
434+
:mod:`fmriprep.workflows.bold.registration.init_bold_calc_reg_wf`
435435

436436
.. workflow::
437437
:graph2use: orig
438438
:simple_form: yes
439439

440-
from fmriprep.workflows.bold import init_bold_reg_wf
441-
wf = init_bold_reg_wf(
440+
from fmriprep.workflows.bold import init_bold_calc_reg_wf
441+
wf = init_bold_calc_reg_wf(
442442
freesurfer=True,
443443
mem_gb=1,
444444
omp_nthreads=1,
445445
use_bbr=True,
446446
bold2t1w_dof=9)
447447

448-
The reference :abbr:`EPI (echo-planar imaging)` image of each run is aligned
449-
by the ``bbregister`` routine to the reconstructed subject using the gray/white
450-
matter boundary (FreeSurfer's ``?h.white`` surfaces).
448+
The alignment between the reference :abbr:`EPI (echo-planar imaging)` image
449+
of each run and the reconstructed subject using the gray/white matter boundary
450+
(FreeSurfer's ``?h.white`` surfaces) is calculated by the ``bbregister`` routine.
451451

452452
.. figure:: _static/EPIT1Normalization.svg
453453
:scale: 100%

fmriprep/workflows/bold/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
468468
('subjects_dir', 'inputnode.subjects_dir'),
469469
('subject_id', 'inputnode.subject_id'),
470470
('t1_2_fsnative_reverse_transform', 'inputnode.t1_2_fsnative_reverse_transform')]),
471-
(bold_split, bold_calc_reg_wf, [('out_files', 'inputnode.bold_split')]),
471+
(bold_split, bold_apply_reg_wf, [('out_files', 'inputnode.bold_split')]),
472472
(bold_hmc_wf, bold_apply_reg_wf, [('outputnode.xforms', 'inputnode.hmc_xforms')]),
473473
(bold_calc_reg_wf, outputnode, [('outputnode.bold_aseg_t1', 'bold_aseg_t1'),
474474
('outputnode.bold_aparc_t1', 'bold_aparc_t1')]),

fmriprep/workflows/bold/confounds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def init_ica_aroma_wf(template, metadata, mem_gb, omp_nthreads,
431431
template : str
432432
Spatial normalization template used as target when that
433433
registration step was previously calculated with
434-
:py:func:`~fmriprep.workflows.bold.registration.init_bold_reg_wf`.
434+
:py:func:`~fmriprep.workflows.bold.registration.init_bold_calc_reg_wf`.
435435
The template must be one of the MNI templates (fMRIPrep uses
436436
``MNI152NLin2009cAsym`` by default).
437437
metadata : dict

fmriprep/workflows/bold/registration.py

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
Registration workflows
77
++++++++++++++++++++++
88
9-
.. autofunction:: init_bold_reg_wf
9+
.. autofunction:: init_bold_calc_reg_wf
10+
.. autofunction:: init_bold_apply_reg_wf
1011
.. autofunction:: init_bbreg_wf
1112
.. autofunction:: init_fsl_bbr_wf
1213
@@ -37,8 +38,8 @@ def init_bold_calc_reg_wf(freesurfer, use_bbr, bold2t1w_dof, mem_gb, omp_nthread
3738
use_compression=True, write_report=True,
3839
name='bold_calc_reg_wf', ):
3940
"""
40-
This workflow registers the reference BOLD image to T1-space, using a
41-
boundary-based registration (BBR) cost function.
41+
This workflow calculates the registration of the reference BOLD image to T1-space,
42+
using a boundary-based registration (BBR) cost function.
4243
4344
If FreeSurfer-based preprocessing is enabled, the ``bbregister`` utility
4445
is used to align the BOLD images to the reconstructed subject, and the
@@ -50,12 +51,12 @@ def init_bold_calc_reg_wf(freesurfer, use_bbr, bold2t1w_dof, mem_gb, omp_nthread
5051
:graph2use: orig
5152
:simple_form: yes
5253
53-
from fmriprep.workflows.bold.registration import init_bold_reg_wf
54-
wf = init_bold_reg_wf(freesurfer=True,
55-
mem_gb=3,
56-
omp_nthreads=1,
57-
use_bbr=True,
58-
bold2t1w_dof=9)
54+
from fmriprep.workflows.bold.registration import init_bold_calc_reg_wf
55+
wf = init_bold_calc_reg_wf(freesurfer=True,
56+
mem_gb=3,
57+
omp_nthreads=1,
58+
use_bbr=True,
59+
bold2t1w_dof=9)
5960
6061
**Parameters**
6162
@@ -102,8 +103,6 @@ def init_bold_calc_reg_wf(freesurfer, use_bbr, bold2t1w_dof, mem_gb, omp_nthread
102103
t1_aparc
103104
FreeSurfer's ``aparc+aseg.mgz`` atlas projected into the T1w reference
104105
(only if ``recon-all`` was run).
105-
bold_split
106-
Individual 3D BOLD volumes, not motion corrected
107106
subjects_dir
108107
FreeSurfer SUBJECTS_DIR
109108
subject_id
@@ -143,7 +142,7 @@ def init_bold_calc_reg_wf(freesurfer, use_bbr, bold2t1w_dof, mem_gb, omp_nthread
143142
niu.IdentityInterface(
144143
fields=['name_source', 'ref_bold_brain', 'ref_bold_mask',
145144
't1_preproc', 't1_brain', 't1_mask', 't1_seg',
146-
't1_aseg', 't1_aparc', 'bold_split', 'subjects_dir',
145+
't1_aseg', 't1_aparc', 'subjects_dir',
147146
'subject_id', 't1_2_fsnative_reverse_transform']),
148147
name='inputnode'
149148
)
@@ -248,9 +247,9 @@ def init_bold_apply_reg_wf(mem_gb, omp_nthreads, use_compression=True,
248247
:graph2use: orig
249248
:simple_form: yes
250249
251-
from fmriprep.workflows.bold.registration import init_bold_reg_wf
252-
wf = init_bold_reg_wf(mem_gb=3,
253-
omp_nthreads=19)
250+
from fmriprep.workflows.bold.registration import init_bold_apply_reg_wf
251+
wf = init_bold_apply_reg_wf(mem_gb=3,
252+
omp_nthreads=19)
254253
255254
**Parameters**
256255
@@ -266,6 +265,8 @@ def init_bold_apply_reg_wf(mem_gb, omp_nthreads, use_compression=True,
266265
Name of workflow (default: ``bold_apply_reg_wf``)
267266
268267
**Inputs**
268+
bold_split
269+
Individual 3D BOLD volumes, not motion corrected
269270
reference_grid
270271
Reference grid for resampling to a different space (e.g. MNI),
271272
keeping the original resolution
@@ -284,7 +285,8 @@ def init_bold_apply_reg_wf(mem_gb, omp_nthreads, use_compression=True,
284285
workflow = Workflow(name=name)
285286
inputnode = pe.Node(
286287
niu.IdentityInterface(fields=[
287-
'reference_grid', 'itk_bold_to_t1', 'hmc_xforms', 'fieldwarp']),
288+
'bold_split', 'reference_grid', 'itk_bold_to_t1',
289+
'hmc_xforms', 'fieldwarp']),
288290
name='inputnode'
289291
)
290292

0 commit comments

Comments
 (0)