Skip to content

Commit 9d52b44

Browse files
committed
doc: ensure the new brain extraction workflow is plotted
1 parent 9966815 commit 9d52b44

File tree

2 files changed

+35
-18
lines changed

2 files changed

+35
-18
lines changed

docs/workflows.rst

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,19 @@ single reference template (see `Longitudinal processing`_).
9393
Brain extraction, brain tissue segmentation and spatial normalization
9494
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9595

96-
Then, the T1w image/average is skull-stripped using ANTs' ``antsBrainExtraction.sh``,
97-
which is an atlas-based brain extraction workflow.
96+
Then, the T1w reference is skull-stripped using a Nipype implementation of
97+
the ``antsBrainExtraction.sh`` tool (ANTs), which is an atlas-based
98+
brain extraction workflow:
99+
100+
.. workflow::
101+
:graph2use: orig
102+
:simple_form: yes
103+
104+
from niworkflows.anat.ants import init_brain_extraction_wf
105+
wf = init_brain_extraction_wf()
106+
107+
108+
An example of brain extraction is shown below:
98109

99110
.. figure:: _static/brainextraction_t1.svg
100111
:scale: 100%
@@ -254,31 +265,34 @@ BOLD preprocessing
254265
:graph2use: orig
255266
:simple_form: yes
256267

268+
from collections import namedtuple
269+
BIDSLayout = namedtuple('BIDSLayout', ['root'], defaults='.')
257270
from fmriprep.workflows.bold import init_func_preproc_wf
258271
wf = init_func_preproc_wf(
259272
'/completely/made/up/path/sub-01_task-nback_bold.nii.gz',
260-
omp_nthreads=1,
261-
ignore=[],
262-
freesurfer=True,
263-
reportlets_dir='.',
264-
output_dir='.',
265-
template='MNI152NLin2009cAsym',
266-
output_spaces=['T1w', 'fsnative', 'template', 'fsaverage5'],
267-
medial_surface_nan=False,
273+
aroma_melodic_dim=-200,
274+
bold2t1w_dof=9,
268275
cifti_output=False,
269276
debug=False,
270-
low_mem=False,
271-
use_bbr=True,
272-
t2s_coreg=False,
273-
bold2t1w_dof=9,
277+
err_on_aroma_warn=False,
274278
fmap_bspline=True,
275279
fmap_demean=True,
276-
use_syn=True,
277280
force_syn=True,
281+
freesurfer=True,
282+
ignore=[],
283+
layout=BIDSLayout(),
284+
low_mem=False,
285+
medial_surface_nan=False,
286+
omp_nthreads=1,
287+
output_dir='.',
288+
output_spaces=['T1w', 'fsnative', 'template', 'fsaverage5'],
289+
reportlets_dir='.',
290+
t2s_coreg=False,
291+
template='MNI152NLin2009cAsym',
278292
template_out_grid='native',
279293
use_aroma=False,
280-
aroma_melodic_dim=-200,
281-
err_on_aroma_warn=False,
294+
use_bbr=True,
295+
use_syn=True,
282296
)
283297

284298
Preprocessing of :abbr:`BOLD (blood-oxygen level-dependent)` files is

fmriprep/workflows/bold/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
6161
:simple_form: yes
6262
6363
from fmriprep.workflows.bold import init_func_preproc_wf
64+
from collections import namedtuple
65+
BIDSLayout = namedtuple('BIDSLayout', ['root'], defaults='.')
6466
wf = init_func_preproc_wf('/completely/made/up/path/sub-01_task-nback_bold.nii.gz',
6567
omp_nthreads=1,
6668
ignore=[],
@@ -85,7 +87,8 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
8587
use_aroma=False,
8688
err_on_aroma_warn=False,
8789
aroma_melodic_dim=-200,
88-
num_bold=1)
90+
num_bold=1,
91+
layout=BIDSLayout())
8992
9093
**Parameters**
9194

0 commit comments

Comments
 (0)