View source: R/template_flow.R
get_template | R Documentation |
Retrieves standardized neuroimaging templates from the Templateflow repository. Provides access to various brain templates, masks, segmentations, and atlases in standardized spaces.
get_template(
name = "MNI152NLin2009cAsym",
desc = "brain",
resolution = 1,
label = NULL,
atlas = NULL,
suffix = "T1w",
extension = ".nii.gz"
)
name |
Character string specifying template name. Default: "MNI152NLin2009cAsym" |
desc |
Character string describing template variant. Default: "brain" |
resolution |
Numeric resolution in mm. Default: 1 |
label |
Character string specifying tissue label for probability maps |
atlas |
Character string specifying atlas name |
suffix |
Character string specifying image type. Default: "T1w" |
extension |
Character string specifying file extension. Default: ".nii.gz" |
The function provides access to various template resources:
Template Spaces Available:
MNI152NLin2009cAsym: Non-linear asymmetric MNI template (default)
MNI152NLin6Asym: Older non-linear MNI template
OASIS30ANTs: Template derived from OASIS dataset
NKI: Nathan Kline Institute template
WHS: Waxholm space rat template
Common Descriptors (desc):
brain: Brain-extracted template
head: Full head template
mask: Binary brain mask
dseg: Discrete segmentation
probseg: Probability maps
Labels for Segmentations:
GM: Gray matter
WM: White matter
CSF: Cerebrospinal fluid
A NeuroVol object containing the requested template
Ciric R et al., (2021) TemplateFlow: a community archive of imaging templates and atlases for improved consistency in neuroimaging. Nature Methods, 18, 1276-1278.
get_template_brainmask
, get_template_probseg
,
get_template_schaefer
## Not run:
# Get standard brain-extracted MNI template
mni <- get_template()
# Get 2mm resolution template
mni_2mm <- get_template(resolution = 2)
# Get gray matter probability map
gm_prob <- get_template_probseg(label = "GM")
# Get brain mask
mask <- get_template_brainmask()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.