@@ -17,52 +17,10 @@ is presented below:
17
17
:graph2use: orig
18
18
:simple_form: yes
19
19
20
- from collections import namedtuple
21
- from niworkflows.utils.spaces import Reference, SpatialReferences
20
+ from fmriprep.workflows.tests import mock_config
22
21
from fmriprep.workflows.base import init_single_subject_wf
23
- BIDSLayout = namedtuple('BIDSLayout', ('root'))
24
- wf = init_single_subject_wf(
25
- anat_only=False,
26
- aroma_melodic_dim=-200,
27
- bold2t1w_dof=9,
28
- cifti_output=False,
29
- debug=False,
30
- dummy_scans=None,
31
- echo_idx=None,
32
- err_on_aroma_warn=False,
33
- fmap_bspline=False,
34
- fmap_demean=True,
35
- force_syn=True,
36
- freesurfer=True,
37
- hires=True,
38
- ignore=[],
39
- layout=BIDSLayout('.'),
40
- longitudinal=False,
41
- low_mem=False,
42
- medial_surface_nan=False,
43
- name='single_subject_wf',
44
- omp_nthreads=1,
45
- output_dir='.',
46
- reportlets_dir='.',
47
- regressors_all_comps=False,
48
- regressors_dvars_th=1.5,
49
- regressors_fd_th=0.5,
50
- skull_strip_fixed_seed=False,
51
- skull_strip_template=Reference('OASIS30ANTs'),
52
- spaces=SpatialReferences(
53
- spaces=[('MNI152Lin', {}),
54
- ('fsaverage', {'density': '10k'}),
55
- ('T1w', {}),
56
- ('fsnative', {})],
57
- checkpoint=True),
58
- subject_id='test',
59
- t2s_coreg=False,
60
- task_id='',
61
- use_aroma=False,
62
- use_bbr=True,
63
- use_syn=True,
64
- bids_filters=None,
65
- )
22
+ with mock_config():
23
+ wf = init_single_subject_wf('01')
66
24
67
25
Preprocessing of structural MRI
68
26
-------------------------------
@@ -96,7 +54,7 @@ single reference template (see `Longitudinal processing`_).
96
54
skull_strip_fixed_seed=False,
97
55
)
98
56
99
- See also *sMRIPrep *'s
57
+ See also *sMRIPrep *'s
100
58
:py:func: `~smriprep.workflows.anatomical.init_anat_preproc_wf `.
101
59
102
60
.. _t1preproc_steps :
@@ -218,7 +176,7 @@ would be processed by the following command::
218
176
-autorecon1 \
219
177
-noskullstrip
220
178
221
- The second phase imports the brainmask calculated in the
179
+ The second phase imports the brainmask calculated in the
222
180
`Preprocessing of structural MRI `_ sub-workflow.
223
181
The final phase resumes reconstruction, using the T2w image to assist
224
182
in finding the pial surface, if available.
@@ -279,44 +237,13 @@ BOLD preprocessing
279
237
:graph2use: orig
280
238
:simple_form: yes
281
239
282
- from collections import namedtuple
283
- from niworkflows.utils.spaces import SpatialReferences
240
+ from fmriprep.workflows.tests import mock_config
241
+ from fmriprep import config
284
242
from fmriprep.workflows.bold.base import init_func_preproc_wf
285
- BIDSLayout = namedtuple('BIDSLayout', ['root'])
286
- wf = init_func_preproc_wf(
287
- aroma_melodic_dim=-200,
288
- bold2t1w_dof=9,
289
- bold_file='/completely/made/up/path/sub-01_task-nback_bold.nii.gz',
290
- cifti_output=False,
291
- debug=False,
292
- dummy_scans=None,
293
- err_on_aroma_warn=False,
294
- fmap_bspline=True,
295
- fmap_demean=True,
296
- force_syn=True,
297
- freesurfer=True,
298
- ignore=[],
299
- low_mem=False,
300
- medial_surface_nan=False,
301
- omp_nthreads=1,
302
- output_dir='.',
303
- regressors_all_comps=False,
304
- regressors_fd_th=0.5,
305
- regressors_dvars_th=1.5,
306
- reportlets_dir='.',
307
- t2s_coreg=False,
308
- spaces=SpatialReferences(
309
- spaces=[('MNI152Lin', {}),
310
- ('fsaverage', {'density': '10k'}),
311
- ('T1w', {}),
312
- ('fsnative', {})],
313
- checkpoint=True),
314
- use_aroma=False,
315
- use_bbr=True,
316
- use_syn=True,
317
- layout=BIDSLayout('.'),
318
- num_bold=1,
319
- )
243
+ with mock_config():
244
+ bold_file = config.execution.bids_dir / 'sub-01' / 'func' \
245
+ / 'sub-01_task-mixedgamblestask_run-01_bold.nii.gz'
246
+ wf = init_func_preproc_wf(str(bold_file))
320
247
321
248
Preprocessing of :abbr: `BOLD ( blood-oxygen level-dependent ) ` files is
322
249
split into multiple sub-workflows described below.
@@ -396,7 +323,7 @@ Slice time correction
396
323
wf = init_bold_stc_wf(
397
324
metadata={'RepetitionTime': 2.0,
398
325
'SliceTiming': [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]},
399
- )
326
+ )
400
327
401
328
If the ``SliceTiming `` field is available within the input dataset metadata,
402
329
this workflow performs slice time correction prior to other signal resampling
@@ -501,7 +428,7 @@ Resampling BOLD runs onto standard spaces
501
428
This sub-workflow concatenates the transforms calculated upstream (see
502
429
`Head-motion estimation `_, `Susceptibility Distortion Correction (SDC) `_ --if
503
430
fieldmaps are available--, `EPI to T1w registration `_, and an anatomical-to-standard
504
- transform from `Preprocessing of structural MRI `_) to map the
431
+ transform from `Preprocessing of structural MRI `_) to map the
505
432
:abbr: `EPI ( echo-planar imaging ) `
506
433
image to the standard spaces given by the ``--output-spaces `` argument
507
434
(see :ref: `output-spaces `).
0 commit comments