# Load a small example Seurat object
data("pbmc_small", package = "SeuratObject")
features <- c("CD3D", "CD79A", "MS4A1")
# Basic usage
matrices <- prepare_expression_matrices(
seurat_object = pbmc_small,
features = features,
group_by = "RNA_snn_res.0.8"
)
# Access the results
expression_matrix <- matrices$exp_mat
percentage_matrix <- matrices$percent_mat
Run the code above in your browser using DataLab