Creates feature plots for visualizing the average expression of gene modules across cells.
CustomModulePlot(
dat,
coord = NULL,
feature_partition,
reduction = NULL,
assays = "RNA"
)
A Seurat object or a matrix of gene expression data.
matrix; 2D coordinates of cells for visualization. Required if dat
is not a Seurat object.
factor; a vector indicating the partition of features (genes) into modules.
character; the name of the reduction embedding to use (e.g., "umap", "tsne"). Default is NULL.
character; the assay to use from the Seurat object. Default is "RNA".
A list of ggplot2 objects representing the feature plots for each module.