AddNewMetaColumn | R Documentation |
This function creates a new Seurat object metadata column based on current formulas applied to current metadata columns
AddNewMetaColumn(
seuratObj,
varname,
formulavector,
defaultname,
enforceFunctionalFormulae = TRUE
)
seuratObj |
The seurat object |
varname |
The name of the new metadata column |
formulavector |
vector of formulas, e.g.: c(Tcell_NaiveToEffector > 10 ~ "Effector", Tcell_NaiveToEffector < 5 ~ "Naive") |
defaultname |
The default value applied when none of the formulas in formulavec are TRUE |
enforceFunctionalFormulae |
Boolean determining whether or not to sanity check that all defined formulae in formulavector labeled at least one cell in the Seurat Object. |
Updated Seurat object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.