addMetaData: Add meta information of CYT

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Add meta information of CYT

Usage

1
addMetaData(object, meta.info, name = "NewCol", verbose = FALSE)

Arguments

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.

Value

A CYT object

Examples

1
2
3
4
5
6
7
8
9
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)

CytoTree documentation built on Nov. 10, 2020, 2 a.m.