mris_convert_annot: Convert Annotation file

Description Usage Arguments Value Examples

View source: R/mris_convert_annot.R

Description

This function call mris_convert, using the --annot option

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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"
 )  
}   

Example output



freesurfer documentation built on Dec. 9, 2020, 1:07 a.m.