This function extracts data from a Seurat object, handling both V4 and V5 formats.
Usage
get_seurat_data(srt, layer = "data", assay = NULL)
Arguments
- srt
A Seurat object
- layer
The layer to extract (e.g., "counts", "data", "scale.data")
- assay
Name of the assay. If NULL, uses the default assay.
Value
A matrix of the requested data