AddNewAnnotation | R Documentation |
This function creates a new metadata column based on an existing metadata column and a list of mappings (name <- IDs).
AddNewAnnotation(
obj = obj,
source = "RNA_snn_res.0.5",
named.list.of.identities = ls.Subset.ClusterLists
)
obj |
A Seurat object for which the new annotation is to be created. Default: 'obj'. |
source |
A character string specifying the existing metadata column to be used as the basis for the new annotation. Default: 'RNA_snn_res.0.5'. |
named.list.of.identities |
A named list providing the mappings for the new annotation. Default: 'ls.Subset.ClusterLists'. |
A character vector representing the new metadata column.
## Not run:
if (interactive()) {
ls.Subset.ClusterLists <- list("hESC.h9" = c("4", "10", "14"), "hESC.176" = c("0", "1", "2"))
AddNewAnnotation()
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.