addMetaData {CytoTree} | R Documentation

## Add meta information of CYT

### Description

Add meta information of CYT

### Usage

    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

    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)

[Package CytoTree version 1.0.3 Index]