@@ -62,6 +62,13 @@ single reference template (see `Longitudinal processing`_).
62
62
63
63
from niworkflows.utils.spaces import Reference, SpatialReferences
64
64
from smriprep.workflows.anatomical import init_anat_preproc_wf
65
+ spaces=SpatialReferences([
66
+ ('MNI152Lin', {}),
67
+ ('fsaverage', {'density': '10k'}),
68
+ ('T1w', {}),
69
+ ('fsnative', {})
70
+ ])
71
+ spaces.checkpoint()
65
72
wf = init_anat_preproc_wf(
66
73
bids_root='.',
67
74
freesurfer=True,
@@ -71,12 +78,7 @@ single reference template (see `Longitudinal processing`_).
71
78
output_dir='.',
72
79
skull_strip_mode='force',
73
80
skull_strip_template=Reference('MNI152NLin2009cAsym'),
74
- spaces=SpatialReferences([
75
- ('MNI152Lin', {}),
76
- ('fsaverage', {'density': '10k'}),
77
- ('T1w', {}),
78
- ('fsnative', {})
79
- ]),
81
+ spaces=spaces,
80
82
skull_strip_fixed_seed=False,
81
83
t1w=['sub-01/anat/sub-01_T1w.nii.gz'],
82
84
t2w=[],
@@ -267,9 +269,9 @@ packages, including FreeSurfer and the `Connectome Workbench`_.
267
269
:simple_form: yes
268
270
269
271
from smriprep.workflows.surfaces import init_surface_recon_wf
270
- wf = init_surface_recon_wf(omp_nthreads=1,
271
- hires=True,
272
- precomputed={} )
272
+ wf = init_surface_recon_wf(
273
+ omp_nthreads=1, hires=True, precomputed={}, fs_no_resume=False ,
274
+ )
273
275
274
276
See also *sMRIPrep *'s
275
277
:py:func: `~smriprep.workflows.surfaces.init_surface_recon_wf `
@@ -401,6 +403,7 @@ Slice time correction
401
403
402
404
from fmriprep.workflows.bold import init_bold_stc_wf
403
405
wf = init_bold_stc_wf(
406
+ mem_gb={'filesize': 1},
404
407
metadata={'RepetitionTime': 2.0,
405
408
'SliceTiming': [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]},
406
409
)
@@ -479,8 +482,9 @@ EPI to T1w registration
479
482
wf = init_bbreg_wf(
480
483
omp_nthreads=1,
481
484
use_bbr=True,
482
- bold2t1w_dof=9,
483
- bold2t1w_init='register')
485
+ bold2anat_dof=9,
486
+ bold2anat_init='t2w',
487
+ )
484
488
485
489
The alignment between the reference :abbr: `EPI ( echo-planar imaging ) ` image
486
490
of each run and the reconstructed subject using the gray/white matter boundary
@@ -510,7 +514,16 @@ Resampling BOLD runs onto standard spaces
510
514
:simple_form: yes
511
515
512
516
from fmriprep.workflows.bold.apply import init_bold_volumetric_resample_wf
513
- wf = init_bold_volumetric_resample_wf(metadata={}, fieldmap_id='fmap')
517
+ wf = init_bold_volumetric_resample_wf(
518
+ metadata={
519
+ 'RepetitionTime': 2.0,
520
+ 'PhaseEncodingDirection': 'j-',
521
+ 'TotalReadoutTime': 0.03
522
+ },
523
+ mem_gb={'resampled': 1},
524
+ jacobian=True,
525
+ fieldmap_id='fmap',
526
+ )
514
527
515
528
This sub-workflow concatenates the transforms calculated upstream (see
516
529
`Head-motion estimation `_, `Susceptibility Distortion Correction (SDC) `_ --if
@@ -564,7 +577,6 @@ HCP Grayordinates
564
577
565
578
from fmriprep.workflows.bold.resampling import init_bold_fsLR_resampling_wf
566
579
wf = init_bold_fsLR_resampling_wf(
567
- estimate_goodvoxels=True,
568
580
grayord_density='92k',
569
581
omp_nthreads=1,
570
582
mem_gb=1,
0 commit comments