VlnPlot_subset: Calculate the percent expressed cells for each group in a...

View source: R/Visualizations_Seurat_based.R

VlnPlot_subsetR Documentation

Calculate the percent expressed cells for each group in a Seurat object

Description

Calculate the percent expressed cells for each group in a Seurat object

Usage

VlnPlot_subset(
  SerObj,
  group.by,
  features,
  plot = F,
  topN = 10,
  xlab = "",
  cols = c("#8DD3C7", "#33A02C", "#F4CAE4", "#A6CEE3", "#FDCDAC", "#B2DF8A", "#E78AC3",
    "#1F78B4", "#FB9A99", "#E31A1C", "#66C2A5", "#FF7F00"),
  addDimplot = T,
  returnLs = T
)

Arguments

SerObj

A Seurat object

group.by

A meta feature used to group the cells

features

A vector of features (genes) to calculate the percent expressed cells for

plot

A logical indicating whether to plot

topN

select top N genes

cols

color vector

Value

A data frame with the percent expressed cells for each group and feature


eisascience/scCustFx documentation built on June 2, 2025, 3:59 a.m.