giftixml_add_labeltable_from_annot: Add a label tabel from an annotation to a GIFTI XML tree.

View source: R/gifti_xml_tools.R

giftixml_add_labeltable_from_annotR Documentation

Add a label tabel from an annotation to a GIFTI XML tree.

Description

Computes the LabelTable XML node for the given annotation and adds it to the XML tree.

Usage

giftixml_add_labeltable_from_annot(xmltree, annot)

Arguments

xmltree

an XML tree from xml2, typically the return value from gifti_xml.

annot

an fs.annotation, the included data will be used to compute the LabelTable node

Value

XML tree from xml2, the modified tree with the LabelTable added below the root node.


freesurferformats documentation built on May 29, 2024, 5:29 a.m.