Learn R Programming

freesurfer (version 1.6.10)

read_fs_label: Read Label File

Description

Reads an label file from an individual subject

Usage

read_fs_label(file)

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)

Arguments

file

label file from Freesurfer

Examples

Run this code
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)
}

Run the code above in your browser using DataLab