Skip to contents

DEPRECATED: This function signature is deprecated. Please use the new get_template function which offers a more comprehensive and R-native interface.

Usage

get_template_legacy(
  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"

Value

A NeuroVol object containing the requested template

See also

The new get_template with updated signature.

Examples

# \donttest{
if (requireNamespace("templateflow", quietly = TRUE)) {
  tryCatch(result <- get_template_legacy(), error = function(e) NULL)
}
#> Warning: The `name` argument of `get_template()` is deprecated as of neuroatlas 0.10.0.
#> ℹ Please use the `space` argument instead.
#> ℹ The signature get_template(name, desc, resolution, ...) is deprecated. Please
#>   use the new signature: get_template(space, variant, modality, resolution,
#>   ...).
#> [templateflow] Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152NLin2009cAsym/tpl-MNI152NLin2009cAsym_res-01_desc-brain_T1w.nii.gz
# }