@@ -93,8 +93,19 @@ single reference template (see `Longitudinal processing`_).
93
93
Brain extraction, brain tissue segmentation and spatial normalization
94
94
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
95
95
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:
98
109
99
110
.. figure :: _static/brainextraction_t1.svg
100
111
:scale: 100%
@@ -254,31 +265,34 @@ BOLD preprocessing
254
265
:graph2use: orig
255
266
:simple_form: yes
256
267
268
+ from collections import namedtuple
269
+ BIDSLayout = namedtuple('BIDSLayout', ['root'], defaults='.')
257
270
from fmriprep.workflows.bold import init_func_preproc_wf
258
271
wf = init_func_preproc_wf(
259
272
'/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,
268
275
cifti_output=False,
269
276
debug=False,
270
- low_mem=False,
271
- use_bbr=True,
272
- t2s_coreg=False,
273
- bold2t1w_dof=9,
277
+ err_on_aroma_warn=False,
274
278
fmap_bspline=True,
275
279
fmap_demean=True,
276
- use_syn=True,
277
280
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',
278
292
template_out_grid='native',
279
293
use_aroma=False,
280
- aroma_melodic_dim=-200 ,
281
- err_on_aroma_warn=False ,
294
+ use_bbr=True ,
295
+ use_syn=True ,
282
296
)
283
297
284
298
Preprocessing of :abbr: `BOLD ( blood-oxygen level-dependent ) ` files is
0 commit comments