modMetaName: Modify the display name of metadata

View source: R/modMetaName.R

modMetaNameR Documentation

Modify the display name of metadata

Description

Modify the display name of metadata. It is possible that the original metadata name is not so informative e.g "orig.ident" or too long e.g. "seurat_clusters" and users want to shorten the way they are displayed on the shiny app. This function allows users to specify display names for metadata i.e. the names that will be displayed on the shiny app. Note that showLegend shows the display name instead of the actual name.

Usage

modMetaName(scConf, meta.to.mod, new.name)

Arguments

scConf

shinycell config data.table

meta.to.mod

metadata for which to modify the display name. Users can either use the actual metadata column names or display names. Multiple metadata can be specified. It is reccomended to use the original metadata column names to reduce confusion.

new.name

new display names for the corresponding metadata

Value

updated shinycell config data.table

Author(s)

John F. Ouyang

Examples

scConf = modMetaName(scConf, 
                     meta.to.mod = c("orig.ident", "seurat_clusters"), 
                     new.name = c("library", "cluster"))


SGDDNB/ShinyCell documentation built on Jan. 25, 2024, 3:19 p.m.