6
6
Registration workflows
7
7
++++++++++++++++++++++
8
8
9
- .. autofunction:: init_bold_reg_wf
9
+ .. autofunction:: init_bold_calc_reg_wf
10
+ .. autofunction:: init_bold_apply_reg_wf
10
11
.. autofunction:: init_bbreg_wf
11
12
.. autofunction:: init_fsl_bbr_wf
12
13
@@ -37,8 +38,8 @@ def init_bold_calc_reg_wf(freesurfer, use_bbr, bold2t1w_dof, mem_gb, omp_nthread
37
38
use_compression = True , write_report = True ,
38
39
name = 'bold_calc_reg_wf' , ):
39
40
"""
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.
42
43
43
44
If FreeSurfer-based preprocessing is enabled, the ``bbregister`` utility
44
45
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
50
51
:graph2use: orig
51
52
:simple_form: yes
52
53
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)
59
60
60
61
**Parameters**
61
62
@@ -102,8 +103,6 @@ def init_bold_calc_reg_wf(freesurfer, use_bbr, bold2t1w_dof, mem_gb, omp_nthread
102
103
t1_aparc
103
104
FreeSurfer's ``aparc+aseg.mgz`` atlas projected into the T1w reference
104
105
(only if ``recon-all`` was run).
105
- bold_split
106
- Individual 3D BOLD volumes, not motion corrected
107
106
subjects_dir
108
107
FreeSurfer SUBJECTS_DIR
109
108
subject_id
@@ -143,7 +142,7 @@ def init_bold_calc_reg_wf(freesurfer, use_bbr, bold2t1w_dof, mem_gb, omp_nthread
143
142
niu .IdentityInterface (
144
143
fields = ['name_source' , 'ref_bold_brain' , 'ref_bold_mask' ,
145
144
't1_preproc' , 't1_brain' , 't1_mask' , 't1_seg' ,
146
- 't1_aseg' , 't1_aparc' , 'bold_split' , ' subjects_dir' ,
145
+ 't1_aseg' , 't1_aparc' , 'subjects_dir' ,
147
146
'subject_id' , 't1_2_fsnative_reverse_transform' ]),
148
147
name = 'inputnode'
149
148
)
@@ -248,9 +247,9 @@ def init_bold_apply_reg_wf(mem_gb, omp_nthreads, use_compression=True,
248
247
:graph2use: orig
249
248
:simple_form: yes
250
249
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)
254
253
255
254
**Parameters**
256
255
@@ -266,6 +265,8 @@ def init_bold_apply_reg_wf(mem_gb, omp_nthreads, use_compression=True,
266
265
Name of workflow (default: ``bold_apply_reg_wf``)
267
266
268
267
**Inputs**
268
+ bold_split
269
+ Individual 3D BOLD volumes, not motion corrected
269
270
reference_grid
270
271
Reference grid for resampling to a different space (e.g. MNI),
271
272
keeping the original resolution
@@ -284,7 +285,8 @@ def init_bold_apply_reg_wf(mem_gb, omp_nthreads, use_compression=True,
284
285
workflow = Workflow (name = name )
285
286
inputnode = pe .Node (
286
287
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' ]),
288
290
name = 'inputnode'
289
291
)
290
292
0 commit comments