Skip to content

Commit d84fc31

Browse files
committed
DOC: Add docstring for init_bold_volumetric_resample_wf
1 parent 195521d commit d84fc31

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

fmriprep/workflows/bold/apply.py

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,69 @@ def init_bold_volumetric_resample_wf(
1919
omp_nthreads: int = 1,
2020
name: str = 'bold_volumetric_resample_wf',
2121
) -> pe.Workflow:
22+
"""Resample a BOLD series to a volumetric target space.
23+
24+
This workflow collates a sequence of transforms to resample a BOLD series
25+
in a single shot, including motion correction and fieldmap correction, if
26+
requested.
27+
28+
.. workflow::
29+
30+
from fmriprep.workflows.bold.resampling import init_bold_volumetric_resample_wf
31+
wf = init_bold_volumetric_resample_wf(
32+
metadata={
33+
'RepetitionTime': 2.0,
34+
'PhaseEncodingDirection': 'j-',
35+
'TotalReadoutTime': 0.03
36+
},
37+
fieldmap_id='my_fieldmap',
38+
)
39+
40+
Parameters
41+
----------
42+
metadata
43+
BIDS metadata for BOLD file.
44+
fieldmap_id
45+
Fieldmap identifier, if fieldmap correction is to be applied.
46+
omp_nthreads
47+
Maximum number of threads an individual process may use.
48+
name
49+
Name of workflow (default: ``bold_volumetric_resample_wf``)
50+
51+
Inputs
52+
------
53+
bold_file
54+
BOLD series to resample.
55+
bold_ref_file
56+
Reference image to which BOLD series is aligned.
57+
target_ref_file
58+
Reference image defining the target space.
59+
target_mask
60+
Brain mask corresponding to ``target_ref_file``.
61+
This is used to define the field of view for the resampled BOLD series.
62+
motion_xfm
63+
List of affine transforms aligning each volume to ``bold_ref_file``.
64+
If undefined, no motion correction is performed.
65+
boldref2fmap_xfm
66+
Affine transform from ``bold_ref_file`` to the fieldmap reference image.
67+
fmap_ref
68+
Fieldmap reference image defining the valid field of view for the fieldmap.
69+
fmap_coeff
70+
B-Spline coefficients for the fieldmap.
71+
fmap_id
72+
Fieldmap identifier, to select correct fieldmap in case there are multiple.
73+
boldref2anat_xfm
74+
Affine transform from ``bold_ref_file`` to the anatomical reference image.
75+
anat2std_xfm
76+
Affine transform from the anatomical reference image to standard space.
77+
Leave undefined to resample to anatomical reference space.
78+
79+
Outputs
80+
-------
81+
bold_file
82+
The ``bold_file`` input, resampled to ``target_ref_file`` space.
83+
84+
"""
2285
workflow = pe.Workflow(name=name)
2386

2487
inputnode = pe.Node(

0 commit comments

Comments
 (0)