Extract cell type annotations from a Seurat object.
Usage
ExtractCellTypes(object, celltype_col = NULL)
Arguments
- object
A Seurat object.
- celltype_col
Character. Name of the metadata column containing cell types.
If NULL, uses active identity (Idents).
Value
A character vector of cell type labels.
Examples
if (FALSE) { # \dontrun{
# Use active identity
celltypes <- ExtractCellTypes(seurat_obj)
# Use specific metadata column
celltypes <- ExtractCellTypes(seurat_obj, celltype_col = "cell_type")
} # }