R/matrix_ind_map_nodes.R

Defines functions matrix_ind_map_nodes

Documented in matrix_ind_map_nodes

#' @title Extract MatrixIndicesMap nodes from CIFTI
#' @description Extracts the nodes from a CIFTI-2 file corresponding to the
#' \code{MatrixIndicesMap} branch
#'
#' @param fname File of CIFTI data
#'
#' @return Nodes of class \code{xml_nodeset}
#' @export
#' @importFrom xml2 xml_find_all
matrix_ind_map_nodes = function(fname) {
  doc = cifti_xml(fname)
  nodes = xml_find_all(doc, "/CIFTI/Matrix/MatrixIndicesMap")
}
neuroconductor-devel/cifti documentation built on May 6, 2021, 1:43 p.m.