Add a metadata to be included in the shiny app.
Arguments
- scConf
CellSight config data.table
- meta.to.add
metadata to add from the single-cell metadata. Must match one of the following:
Seurat objects: column names in
seu@meta.datai.e.colnames(seu@meta.data)h5ad files: column names in
h5ad.obsi.e.h5ad.obs.columns.values
- obj
input Seurat (v3+) object or input file path for h5ad file
- maxLevels
maximum number of levels allowed for categorical metadata. Metadata with nlevels > maxLevels will throw up an error message
Examples
bfc <- BiocFileCache::BiocFileCache(ask = FALSE)
pbmc_path <- BiocFileCache::bfcrpath(bfc,
"https://github.com/OpenOmics/CellSight/releases/download/datav1.0.0/multimodal_pbmc_subsample.rds")
seu <- readRDS(pbmc_path)
scConf <- createConfig(seu)
scConf = addMeta(scConf, c("orig.ident"), seu)
