get_template: Access Templateflow Brain Templates

View source: R/template_flow.R

get_templateR Documentation

Access Templateflow Brain Templates

Description

Retrieves standardized neuroimaging templates from the Templateflow repository. Provides access to various brain templates, masks, segmentations, and atlases in standardized spaces.

Usage

get_template(
  name = "MNI152NLin2009cAsym",
  desc = "brain",
  resolution = 1,
  label = NULL,
  atlas = NULL,
  suffix = "T1w",
  extension = ".nii.gz"
)

Arguments

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"

Details

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

Value

A NeuroVol object containing the requested template

Source

https://www.templateflow.org/

References

Ciric R et al., (2021) TemplateFlow: a community archive of imaging templates and atlases for improved consistency in neuroimaging. Nature Methods, 18, 1276-1278.

See Also

get_template_brainmask, get_template_probseg, get_template_schaefer

Examples

## 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)


bbuchsbaum/neuroatlas documentation built on Dec. 24, 2024, 4:22 a.m.