Learn R Programming

freesurferformats (version 0.1.18)

read.fs.label.gii: Read a label from a GIFTI label/annotation file.

Description

Read a label from a GIFTI label/annotation file.

Usage

read.fs.label.gii(filepath, label_value = 1L, element_index = 1L)

Value

integer vector, the vertex indices of the label

Arguments

filepath

string. Full path to the input label file.

label_value

integer, the label value of interest to extract from the annotation: the indices of the vertices with this value will be returned. See the note for details.. It is important to set this correctly, otherwise you may accidently load the vertices which are *not* part of the label.

element_index

positive integer, the index of the data array to return. Ignored unless the file contains several data arrays.

See Also

Other label functions: read.fs.label.native(), read.fs.label(), write.fs.label()

Other gifti readers: read.fs.annot.gii(), read.fs.morph.gii(), read.fs.surface.gii()