region_name_to_mni: Output the MNI coordinates of brain regions defined by AAL/BA...

View source: R/region_name_to_mni.R

region_name_to_mniR Documentation

Output the MNI coordinates of brain regions defined by AAL/BA system

Description

Input a brain region name, output the corresponding MNI coordinates. This is the inverse function of the function mni_to_region_name().

Usage

region_name_to_mni(region_names, template = "aal")

Arguments

region_names

A character vector which indeicates the brain region names of interest. Use list_brain_regions() to see all brain region names defined by AAL/BA system.

template

One character value which indicates the templates to use ("aal" or "ba"). Use "aal" by default.

Value

Return a list of data frames and each of them correspond to a template. Each data frame consists the MNI coordinates of the input brain region.

See Also

mni_to_region_name
list_brain_regions

Examples

# Get the MNI cooridnates of the right precentral region
# defined by AAL template
region_name_to_mni(region_names = "Precentral_R", template = "aal")

# Get the MNI cooridnates of both the right and left precentral region
# defined by AAL template
region_name_to_mni(
  region_names = c("Precentral_R", "Precentral_L"),
  template = "aal"
)

yunshiuan/label4MRI documentation built on Aug. 31, 2023, 3:24 p.m.