Skip to content

Commit fd5a3f3

Browse files
committed
fix(docs): now documentation builds (depends on changes on sMRIPrep)
1 parent c477191 commit fd5a3f3

File tree

4 files changed

+49
-50
lines changed

4 files changed

+49
-50
lines changed

docs/usage.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Command-Line Arguments
3737
:nodefault:
3838
:nodefaultconst:
3939

40+
4041
Defining standard and nonstandard spaces where data will be resampled
4142
=====================================================================
4243

@@ -46,7 +47,7 @@ That is achieved using the ``--output-spaces`` argument, where standard and
4647
nonstandard spaces can be inserted.
4748

4849
Standard spaces
49-
---------------
50+
"""""""""""""""
5051

5152
When using fMRIPrep in a workflow that will investigate effects that span across
5253
analytical groupings, neuroimagers typically resample their data on to a standard,
@@ -88,7 +89,7 @@ FreeSurfer will be supported (e.g. ``fsaverage5``) although the use of the densi
8889
modifier would be preferred (i.e. ``fsaverage:den-10k`` for ``fsaverage5``).
8990

9091
Custom standard spaces
91-
----------------------
92+
""""""""""""""""""""""
9293

9394
Although the functionality is not available yet, the interface of the
9495
``--output-spaces`` permits providing paths to custom templates that
@@ -107,7 +108,7 @@ must be found under under ``/path/to/custom/templates/tpl-MyCustom``: ::
107108
Although a more comprehensive coverage of standard files would be advised.
108109

109110
Nonstandard spaces
110-
------------------
111+
""""""""""""""""""
111112

112113
Additionally, ``--output-spaces`` accepts identifiers of spatial references
113114
that do not generate *standardized* coordinate spaces:
@@ -125,7 +126,7 @@ that do not generate *standardized* coordinate spaces:
125126
Modifiers are not allowed when providing nonstandard spaces.
126127

127128
Preprocessing blocks depending on standard templates
128-
----------------------------------------------------
129+
""""""""""""""""""""""""""""""""""""""""""""""""""""
129130

130131
Some modules of the pipeline (e.g. the ICA-AROMA denoising, the generation of
131132
HCP compatible *grayordinates* files, or the *fieldmap-less* distortion correction)

docs/workflows.rst

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -19,44 +19,43 @@ is presented below:
1919
:simple_form: yes
2020

2121
from fmriprep.workflows.base import init_single_subject_wf
22-
from collections import namedtuple
22+
from collections import namedtuple, OrderedDict
2323
BIDSLayout = namedtuple('BIDSLayout', ['root'], defaults='.')
2424
wf = init_single_subject_wf(
25-
layout=BIDSLayout(),
26-
subject_id='test',
27-
name='single_subject_wf',
28-
task_id='',
25+
anat_only=False,
26+
aroma_melodic_dim=-200,
27+
bold2t1w_dof=9,
28+
cifti_output=False,
29+
debug=False,
2930
echo_idx=None,
31+
err_on_aroma_warn=False,
32+
fmap_bspline=False,
33+
fmap_demean=True,
34+
force_syn=True,
35+
freesurfer=True,
36+
hires=True,
37+
ignore=[],
38+
layout=BIDSLayout(),
3039
longitudinal=False,
31-
t2s_coreg=False,
40+
low_mem=False,
41+
medial_surface_nan=False,
42+
name='single_subject_wf',
3243
omp_nthreads=1,
33-
freesurfer=True,
34-
reportlets_dir='.',
3544
output_dir='.',
36-
skull_strip_template='OASIS30ANTs',
45+
output_spaces=OrderedDict([
46+
('MNI152Lin', {}), ('fsaverage', {'density': '10k'}),
47+
('T1w', {}), ('fsnative', {})]),
48+
reportlets_dir='.',
3749
skull_strip_fixed_seed=False,
38-
template='MNI152NLin2009cAsym',
39-
output_spaces=['T1w', 'fsnative', 'template', 'fsaverage5'],
40-
medial_surface_nan=False,
41-
cifti_output=False,
42-
ignore=[],
43-
debug=False,
44-
low_mem=False,
45-
anat_only=False,
46-
hires=True,
50+
skull_strip_template='OASIS30ANTs',
51+
subject_id='test',
52+
t2s_coreg=False,
53+
task_id='',
54+
use_aroma=False,
4755
use_bbr=True,
48-
bold2t1w_dof=9,
49-
fmap_bspline=False,
50-
fmap_demean=True,
5156
use_syn=True,
52-
force_syn=True,
53-
template_out_grid='native',
54-
use_aroma=False,
55-
aroma_melodic_dim=-200,
56-
err_on_aroma_warn=False,
5757
)
5858

59-
6059
T1w/T2w preprocessing
6160
---------------------
6261
:mod:`fmriprep.workflows.anatomical.init_anat_preproc_wf`
@@ -65,22 +64,20 @@ T1w/T2w preprocessing
6564
:graph2use: orig
6665
:simple_form: yes
6766

67+
from collections import OrderedDict
6868
from fmriprep.workflows.anatomical import init_anat_preproc_wf
6969
wf = init_anat_preproc_wf(
7070
bids_root='.',
71-
debug=False,
7271
freesurfer=True,
73-
fs_spaces=['T1w', 'fsnative',
74-
'template', 'fsaverage5'],
7572
hires=True,
7673
longitudinal=False,
7774
num_t1w=1,
7875
omp_nthreads=1,
7976
output_dir='.',
77+
output_spaces=OrderedDict([
78+
('MNI152NLin2009cAsym', {}), ('fsaverage5', {})]),
8079
reportlets_dir='.',
8180
skull_strip_template='MNI152NLin2009cAsym',
82-
skull_strip_fixed_seed=False,
83-
template='MNI152NLin2009cAsym',
8481
)
8582

8683
The anatomical sub-workflow begins by constructing an average image by
@@ -274,13 +271,13 @@ BOLD preprocessing
274271
:graph2use: orig
275272
:simple_form: yes
276273

277-
from collections import namedtuple
274+
from collections import namedtuple, OrderedDict
275+
from fmriprep.workflows.bold.base import init_func_preproc_wf
278276
BIDSLayout = namedtuple('BIDSLayout', ['root'], defaults='.')
279-
from fmriprep.workflows.bold import init_func_preproc_wf
280277
wf = init_func_preproc_wf(
281-
'/completely/made/up/path/sub-01_task-nback_bold.nii.gz',
282278
aroma_melodic_dim=-200,
283279
bold2t1w_dof=9,
280+
bold_file='/completely/made/up/path/sub-01_task-nback_bold.nii.gz',
284281
cifti_output=False,
285282
debug=False,
286283
err_on_aroma_warn=False,
@@ -289,19 +286,20 @@ BOLD preprocessing
289286
force_syn=True,
290287
freesurfer=True,
291288
ignore=[],
292-
layout=BIDSLayout(),
293289
low_mem=False,
294290
medial_surface_nan=False,
295291
omp_nthreads=1,
296292
output_dir='.',
297-
output_spaces=['T1w', 'fsnative', 'template', 'fsaverage5'],
293+
output_spaces=OrderedDict([
294+
('MNI152Lin', {}), ('fsaverage', {'density': '10k'}),
295+
('T1w', {}), ('fsnative', {})]),
298296
reportlets_dir='.',
299297
t2s_coreg=False,
300-
template='MNI152NLin2009cAsym',
301-
template_out_grid='native',
302298
use_aroma=False,
303299
use_bbr=True,
304300
use_syn=True,
301+
layout=BIDSLayout(),
302+
num_bold=1,
305303
)
306304

307305
Preprocessing of :abbr:`BOLD (blood-oxygen level-dependent)` files is
@@ -478,13 +476,14 @@ EPI to MNI transformation
478476
:graph2use: colored
479477
:simple_form: yes
480478

479+
from collections import OrderedDict
481480
from fmriprep.workflows.bold import init_bold_std_trans_wf
482481
wf = init_bold_std_trans_wf(
483-
template='MNI152NLin2009cAsym',
484-
freesurfer=True,
485-
mem_gb=1,
482+
standard_spaces=OrderedDict([('MNI152Lin', {}),
483+
('fsaverage', {'density': '10k'})]),
484+
mem_gb=3,
486485
omp_nthreads=1,
487-
template_out_grid='native')
486+
)
488487

489488
This sub-workflow concatenates the transforms calculated upstream (see
490489
`Head-motion estimation`_, `Susceptibility Distortion Correction (SDC)`_ --if

fmriprep/workflows/bold/confounds.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,7 @@ def init_ica_aroma_wf(metadata, mem_gb, omp_nthreads,
439439
:simple_form: yes
440440
441441
from fmriprep.workflows.bold.confounds import init_ica_aroma_wf
442-
wf = init_ica_aroma_wf(template='MNI152NLin2009cAsym',
443-
metadata={'RepetitionTime': 1.0},
442+
wf = init_ica_aroma_wf(metadata={'RepetitionTime': 1.0},
444443
mem_gb=3,
445444
omp_nthreads=1)
446445

fmriprep/workflows/bold/resampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def init_bold_std_trans_wf(
191191
('fsaverage', {'density': '10k'})]),
192192
mem_gb=3,
193193
omp_nthreads=1,
194-
template_out_grid='native')
194+
)
195195
196196
**Parameters**
197197

0 commit comments

Comments
 (0)