Skip to contents

Create one parcel, i.e. a named set of surface vertices (per structure) and volume voxels. The name is the only label a parcellated file has: the position in the list of parcels is the parcel index, and the reader returns the names.

Usage

cifti.parcel(name, vertices = NULL, voxel_indices_ijk = NULL)

Arguments

name

character string, the parcel name.

vertices

named list or NULL, the 0-based vertex indices per brain structure, e.g. list(CORTEX_LEFT = c(0, 1, 2), CORTEX_RIGHT = c(4, 5)). Structures without vertices are left out.

voxel_indices_ijk

n x 3 integer matrix or NULL, the 0-based voxel indices of the parcel, one voxel per row.

Value

a named list, one parcel, to be passed to cifti.axis.parcels.

Examples

parcel <- cifti.parcel("PARCEL_A", list(CORTEX_LEFT = 0:2, CORTEX_RIGHT = 4:5))
parcel$name
#> [1] "PARCEL_A"