vertex_regions: Find regions for vertices in all brainparc atlases.

Description Usage Arguments Value See Also Examples

View source: R/closest_atlas_regions.R

Description

Find regions for vertices in all brainparc atlases.

Usage

1
vertex_regions(brainparc, vertices, hemis)

Arguments

brainparc

a brain parcellation, see functions like brainparc_fs to get one.

vertices

integer vector, the query vertex indices (from the surface in the brainparc).

hemis

character string vector, the hemispheres for each of the vertices. Allowed entries are "lh" and "rh", for the left and right brain hemisphere, respectively. Must have same length as the 'vertices' vector (or exactly length 1, in which case we assume that this is the hemi for ALL query vertices).

Value

a data.frame, the column names should be obvious.

See Also

vertex_closest_regions to compute distance to all regions.

Examples

1
2
3
4
5
## Not run: 
bp = brainparc_fs(get_subjects_dir(), "fsaverage", atlas="aparc");
vertex_region(bp, vertices=c(10, 20), hemis=c("lh", "rh"));

## End(Not run)

dfsp-spirit/brainloc documentation built on Jan. 28, 2022, 12:25 p.m.