Extract expression matrix from Seurat object, supporting both V4 and V5.
Usage
extract_expression(seurat_obj, assay = "RNA", slot = "counts")
Arguments
- seurat_obj
Seurat object
- assay
Assay name (default: "RNA")
- slot
Slot/layer name (default: "counts")
Value
Dense matrix (cells x genes)