read_fs_label: Read Label File

Description Usage Arguments Value Examples

View source: R/read_label.R

Description

Reads an label file from an individual subject

Usage

1

Arguments

file

label file from Freesurfer

Value

data.frame with 5 columns:

vertex_num:

Vertex Number

r_coord:

Coordinate in RL direction

a_coord:

Coordinate in AP direction

s_coord:

Coordinate in SI direction

value:

Value of label (depends on file)

Examples

1
2
3
4
5
6
7
if (have_fs()) {
 file = file.path(fs_subj_dir(), "bert", "label", "lh.BA1.label")
 if (!file.exists(file)) {
 file = file.path(fs_subj_dir(), "bert", "label", "lh.BA1_exvivo.label")
 }
 out = read_fs_label(file)
}

neuroconductor-devel/freesurfer documentation built on April 1, 2021, 1:07 p.m.