@@ -62,6 +62,13 @@ single reference template (see `Longitudinal processing`_).
6262
6363 from niworkflows.utils.spaces import Reference, SpatialReferences
6464 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()
6572 wf = init_anat_preproc_wf(
6673 bids_root='.',
6774 freesurfer=True,
@@ -71,12 +78,7 @@ single reference template (see `Longitudinal processing`_).
7178 output_dir='.',
7279 skull_strip_mode='force',
7380 skull_strip_template=Reference('MNI152NLin2009cAsym'),
74- spaces=SpatialReferences([
75- ('MNI152Lin', {}),
76- ('fsaverage', {'density': '10k'}),
77- ('T1w', {}),
78- ('fsnative', {})
79- ]),
81+ spaces=spaces,
8082 skull_strip_fixed_seed=False,
8183 t1w=['sub-01/anat/sub-01_T1w.nii.gz'],
8284 t2w=[],
@@ -267,9 +269,9 @@ packages, including FreeSurfer and the `Connectome Workbench`_.
267269 :simple_form: yes
268270
269271 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+ )
273275
274276See also *sMRIPrep *'s
275277:py:func: `~smriprep.workflows.surfaces.init_surface_recon_wf `
@@ -401,6 +403,7 @@ Slice time correction
401403
402404 from fmriprep.workflows.bold import init_bold_stc_wf
403405 wf = init_bold_stc_wf(
406+ mem_gb={'filesize': 1},
404407 metadata={'RepetitionTime': 2.0,
405408 'SliceTiming': [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]},
406409 )
@@ -479,8 +482,9 @@ EPI to T1w registration
479482 wf = init_bbreg_wf(
480483 omp_nthreads=1,
481484 use_bbr=True,
482- bold2t1w_dof=9,
483- bold2t1w_init='register')
485+ bold2anat_dof=9,
486+ bold2anat_init='t2w',
487+ )
484488
485489The alignment between the reference :abbr: `EPI ( echo-planar imaging ) ` image
486490of each run and the reconstructed subject using the gray/white matter boundary
@@ -510,7 +514,16 @@ Resampling BOLD runs onto standard spaces
510514 :simple_form: yes
511515
512516 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+ )
514527
515528This sub-workflow concatenates the transforms calculated upstream (see
516529`Head-motion estimation `_, `Susceptibility Distortion Correction (SDC) `_ --if
@@ -564,7 +577,6 @@ HCP Grayordinates
564577
565578 from fmriprep.workflows.bold.resampling import init_bold_fsLR_resampling_wf
566579 wf = init_bold_fsLR_resampling_wf(
567- estimate_goodvoxels=True,
568580 grayord_density='92k',
569581 omp_nthreads=1,
570582 mem_gb=1,
0 commit comments