Reads an label
file from an individual subject
read_fs_label(file)
file | label file from Freesurfer |
---|
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)
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)
}