This function create a Seurat object from an input CellChat object, and then plot gene expression distribution using a modified violin plot or dot plot based on Seurat's function.
Please check StackedVlnPlot
and dotPlot
for detailed description of the arguments.
plotGeneExpression(
object,
features = NULL,
signaling = NULL,
enriched.only = TRUE,
type = c("violin", "dot"),
color.use = NULL,
group.by = NULL,
...
)
seurat object
Features to plot gene expression
a char vector containing signaling pathway names for searching
whether only return the identified enriched signaling genes in the database. Default = TRUE, returning the significantly enriched signaling interactions
violin plot or dot plot
defining the color for each cell group
Name of one metadata columns to group (color) cells. Default is the defined cell groups in CellChat object
other arguments passing to either VlnPlot or DotPlot from Seurat package
USER can extract the signaling genes related to the inferred L-R pairs or signaling pathway using extractEnrichedLR
, and then plot gene expression using Seurat package.