Element metadata from a ModelArray
elementMetadata.RdReads element metadata (e.g., greyordinates for CIFTI data, or fixel/voxel
coordinate information) from the HDF5 file or TileDB store if present. The
function searches for known metadata dataset names ("greyordinates",
"fixels", "voxels") at the top level of the storage backend.
It uses the backend retained when the ModelArray was constructed, so
an explicit constructor choice is preserved.
Arguments
- x
A ModelArray object.
Value
A matrix or data.frame of element metadata if found, or NULL
if no known metadata dataset exists.
Examples
if (FALSE) { # \dontrun{
ma <- ModelArray("data.h5", scalar_types = c("FD"))
meta <- elementMetadata(ma)
if (!is.null(meta)) head(meta)
} # }