addMetaData {CytoTree} | R Documentation |
Add meta information of CYT
addMetaData(object, meta.info, name = "NewCol", verbose = FALSE)
object |
A CYT object |
meta.info |
a vector, meta data of cell information |
name |
character, colname of 'meta.info' |
verbose |
logical. Whether to print calculation progress. |
A CYT object
cyt.file <- system.file("extdata/cyt.rds", package = "CytoTree") cyt <- readRDS(file = cyt.file) plot.meta <- fetchPlotMeta(cyt) meta.info <- 1:nrow(plot.meta) names(meta.info) <- plot.meta$cell cyt <- addMetaData(cyt, meta.info = meta.info, name = "MyInformation") plot.meta <- fetchPlotMeta(cyt)