aslprep.workflows.asl.resampling module
Workflows for resampling data.
- init_asl_preproc_trans_wf(mem_gb, omp_nthreads, name='asl_preproc_trans_wf', use_compression=True, use_fieldwarp=False, split_file=False, interpolation='LanczosWindowedSinc')[source]
Resample in native (original) space.
This workflow resamples the input fMRI in its native (original) space in a “single shot” from the original asl series.
- Workflow Graph
-
(Source code, png, svg, pdf)
- Parameters:
mem_gb (
float
) – Size of asl file in GBomp_nthreads (
int
) – Maximum number of threads an individual process may usename (
str
) – Name of workflow (default:asl_std_trans_wf
)use_compression (
bool
) – Save registered asl series as.nii.gz
use_fieldwarp (
bool
) – Include SDC warp in single-shot transform from asl to MNIsplit_file (
bool
) – Whether the input file should be splitted (it is a 4D file) or it is a list of 3D files (defaultFalse
, do not split)interpolation (
str
) – Interpolation type to be used by ANTs’applyTransforms
(default'LanczosWindowedSinc'
)
- Inputs:
asl_file – Individual 3D volumes, not motion corrected
asl_mask – Skull-stripping mask of reference image
name_source – asl series NIfTI file Used to recover original information lost during processing
hmc_xforms – List of affine transforms aligning each volume to
ref_image
in ITK formatfieldwarp – a DFM in ITK format
- Outputs:
asl – asl series, resampled in native space, including all preprocessing
asl_mask – asl series mask calculated with the new time-series
asl_ref – asl reference image: an average-like 3D image of the time-series
asl_ref_brain – Same as
asl_ref
, but once the brain mask has been applied
- init_asl_std_trans_wf(mem_gb, omp_nthreads, spaces, scorescrub=False, basil=False, name='asl_std_trans_wf', use_compression=True, use_fieldwarp=False)[source]
Sample ASL into standard space with a single-step resampling of the original ASL series.
Important
This workflow provides two outputnodes. One output node (with name
poutputnode
) will be parameterized in a Nipype sense (see Nipype iterables), and a second node (outputnode
) will collapse the parameterized outputs into synchronous lists of the output fields listed below.- Workflow Graph
-
(Source code, png, svg, pdf)
- Parameters:
mem_gb (
float
) – Size of ASL file in GBomp_nthreads (
int
) – Maximum number of threads an individual process may usespaces (
SpatialReferences
) – A container for storing, organizing, and parsing spatial normalizations. Composed ofReference
objects representing spatial references. EachReference
contains a space, which is a string of either TemplateFlow template IDs.name (
str
) – Name of workflow (default:asl_std_trans_wf
)use_compression (
bool
) – Save registered ASL series as.nii.gz
use_fieldwarp (
bool
) – Include SDC warp in single-shot transform from ASL to MNI
- Inputs:
anat2std_xfm – List of anatomical-to-standard space transforms generated during spatial normalization.
asl_mask – Skull-stripping mask of reference image
asl_split – Individual 3D volumes, not motion corrected
fieldwarp – a DFM in ITK format
hmc_xforms – List of affine transforms aligning each volume to
ref_image
in ITK formatitk_asl_to_t1 – Affine transform from
ref_asl_brain
to T1 space (ITK format)name_source – ASL series NIfTI file Used to recover original information lost during processing
templates – List of templates that were applied as targets during spatial normalization.
- Outputs:
asl_std – ASL series, resampled to template space
cbf_std, *cbf – cbf series, resampled to template space
asl_std_ref – Reference, contrast-enhanced summary of the ASL series, resampled to template space
asl_mask_std – ASL series mask in template space
template – Template identifiers synchronized correspondingly to previously described outputs.
- init_asl_surf_wf(mem_gb, surface_spaces, medial_surface_nan, name='asl_surf_wf')[source]
Sample functional images to FreeSurfer surfaces.
For each vertex, the cortical ribbon is sampled at six points (spaced 20% of thickness apart) and averaged. Outputs are in GIFTI format.
- Workflow Graph
-
(Source code, png, svg, pdf)
- Parameters:
surface_spaces (
list
) – List of FreeSurfer surface-spaces (eitherfsaverage{3,4,5,6,}
orfsnative
) the functional images are to be resampled to. Forfsnative
, images will be resampled to the individual subject’s native surface.medial_surface_nan (
bool
) – Replace medial wall values with NaNs on functional GIFTI files
- Inputs:
source_file – Motion-corrected ASL series in T1 space
t1w_preproc – Bias-corrected structural template image
subjects_dir – FreeSurfer SUBJECTS_DIR
subject_id – FreeSurfer subject ID
t1w2fsnative_xfm – LTA-style affine matrix translating from T1w to FreeSurfer-conformed subject space
- Outputs:
surfaces – ASL series, resampled to FreeSurfer surfaces