Adapted from Seurat::DotPlot but adds the module score per group.
DotPlotwithModuleScore(
object,
assay = NULL,
features,
featureDat = featureDat,
cols = c("lightgrey", "blue"),
col.min = -2.5,
col.max = 2.5,
dot.min = 0,
dot.scale = 6,
idents = NULL,
group.by = NULL,
split.by = NULL,
cluster.idents = FALSE,
clusters = "sampleNames",
scale = TRUE,
scale.by = "radius",
scale.min = NA,
scale.max = NA
)
A Seurat object.
The assay to be used for plotting. Defaults to NULL, in which case the default assay of the object is used.
A list of character vectors of gene names in "symbol" annotation (SCHNAPPs specific).
A data frame containing information about features, particularly the "symbol" column.
A vector of colors for plotting.
Minimum value for color scaling.
Maximum value for color scaling.
Minimum value for dot scaling.
Scaling factor for dot size.
Identifiers for cells.
Grouping variable.
Variable to split the plot by.
Boolean indicating whether to cluster identifiers.
Column name for grouping identifiers.
Logical indicating whether to scale the data.
The type of scaling to be applied ('size' or 'radius').
Minimum value for scaling.
Maximum value for scaling.
A ggplot2 object representing the DotPlot with module scores.