From 1e2323c459baafd28f5d978042f8825c629c3d4f Mon Sep 17 00:00:00 2001 From: Tim Schaefer Date: Tue, 18 May 2021 12:45:12 +0200 Subject: [PATCH] add comment on howto test annot writing --- R/read_fs_annot.R | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/R/read_fs_annot.R b/R/read_fs_annot.R index b3ec2f6..61a73c1 100644 --- a/R/read_fs_annot.R +++ b/R/read_fs_annot.R @@ -591,9 +591,15 @@ annot.max.region.idx <- function(annot) { } } + + + # lh_annot = read.fs.annot("~/data/tim_only/tim/label/lh.aparc.annot"); # rh_annot = read.fs.annot("~/data/tim_only/tim/label/rh.aparc.annot"); - +# rh_annot_mod = annot.unique(... +# write.fs.annot("~/test.annot", annot=rh_annot_mod); +# To test whether the annot is valid and freesurfer can read it, try converting with mris_convert: +# $ mris_convert --annot ~/test.annot data/tim_only/tim/surf/rh.white rh.aparc.gii #' @title Make the region names and indices unique across hemispheres for a parcellation. #'