if (FALSE) {
# Downloaded CIFTI2 example data from https://www.nitrc.org/projects/cifti/
cifti_example_data_dir <- "~/data/cifti"
dlabel_file <- file.path(cifti_example_data_dir,
"Conte69.parcellations_VGD11b.32k_fs_LR.dlabel.nii");
parc_lh <- read.fs.parcellation.cifti(dlabel_file, "lh");
parc_rh <- read.fs.parcellation.cifti(dlabel_file, "rh");
parc_with_table <- read.fs.parcellation.cifti(dlabel_file, "lh",
with_label_table = TRUE);
# fsbrain::vis.fs.surface(sf_lh, per_vertex_data = parc_lh);
}
Run the code above in your browser using DataLab