mris_convert_annot: Convert Annotation file

View source: R/mris_convert_annot.R

mris_convert_annotR Documentation

Convert Annotation file

Description

This function call mris_convert, using the --annot option

Usage

mris_convert_annot(annot, opts = "", ...)

Arguments

annot

(character) annotation or gifti label data

opts

(character) additional options to mris_convert

...

additional arguments to mris_convert

Value

Result of mris_convert

Examples

if (have_fs()) {
 bert_dir = file.path(fs_subj_dir(), "bert")
 gii_file = mris_convert_annot(
 infile = file.path(bert_dir, "surf", "lh.white"),
 annot = file.path(bert_dir, "label", "lh.aparc.annot"),
 ext = ".gii"
 )  
 gii = mris_convert_annot(
 infile = file.path(bert_dir, "surf", "lh.white"),
 annot = gii_file,
 ext = ".gii"
 )  
}   

muschellij2/freesurfer documentation built on Nov. 28, 2023, 4:45 a.m.