Creates feature plots for visualizing the average expression of gene modules across cells.

CustomModulePlot(
  dat,
  coord = NULL,
  feature_partition,
  reduction = NULL,
  assays = "RNA"
)

Arguments

dat

A Seurat object or a matrix of gene expression data.

coord

matrix; 2D coordinates of cells for visualization. Required if dat is not a Seurat object.

feature_partition

factor; a vector indicating the partition of features (genes) into modules.

reduction

character; the name of the reduction embedding to use (e.g., "umap", "tsne"). Default is NULL.

assays

character; the assay to use from the Seurat object. Default is "RNA".

Value

A list of ggplot2 objects representing the feature plots for each module.