View source: R/Seurat.Utils.Metadata.R
seu.map.and.add.new.ident.to.meta | R Documentation |
Adds a new metadata column to a Seurat object based on an identity mapping table.
seu.map.and.add.new.ident.to.meta(
obj = combined.obj,
ident.table = clusterIDs.GO.process,
orig.ident = Idents(obj),
metaD.colname = substitute_deparse(ident.table)
)
obj |
The Seurat object to which the new metadata column will be added. Default: combined.obj. |
ident.table |
A data frame or matrix with identity mapping data. This parameter is used to map the old identities to the new ones. Default: clusterIDs.GO.process. |
orig.ident |
The original identities of the Seurat object. Default: Idents(obj). |
metaD.colname |
A string specifying the name of the new metadata column. The default value is the name of the provided ident.table. |
A Seurat object with the new metadata column added.
## Not run:
if (interactive()) {
# Example usage:
combined.obj <- seu.map.and.add.new.ident.to.meta(
obj = combined.obj,
ident.table = clusterIDs.GO.process
)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.