View source: R/Seurat.Utils.Metadata.R
seu.RemoveMetadata | R Documentation |
Remove specified metadata columns from a Seurat object.
seu.RemoveMetadata(
obj = combined.obj,
cols_remove = grepv(colnames(obj@meta.data), pattern = "^integr|^cl.names", perl =
TRUE)
)
obj |
A Seurat object from which metadata columns will be removed. Default: combined.obj |
cols_remove |
A character vector specifying metadata column names to remove. By default, it will remove all columns that do not start with "integr" or "cl.names". |
A Seurat object with specified metadata columns removed.
## Not run:
combined.obj <- seu.RemoveMetadata(obj = combined.obj, cols_remove = c("column1", "column2"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.