mapCellMeta | R Documentation |
Designed for fast variable creation when a new variable is going to be created from existing variable. For example, multiple samples can be mapped to the same study design condition, clusters can be mapped to cell types.
mapCellMeta(object, from, newTo = NULL, ...)
object |
A liger object. |
from |
The name of the original variable to be mapped from. |
newTo |
The name of the new variable to store the mapped result. Default
|
... |
Mapping criteria, argument names are original existing categories
in the |
When newTo = NULL
, a factor object of the new variable.
Otherwise, the input object with variable newTo
updated in
cellMeta(object)
.
pbmc <- mapCellMeta(pbmc, from = "dataset", newTo = "modal",
ctrl = "rna", stim = "rna")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.