plotGeneExpression: Plot Gene Expression in Seurat Object

View source: R/Seurat_based.R

plotGeneExpressionR Documentation

Plot Gene Expression in Seurat Object

Description

This function generates a violin plot or pie chart for the expression of a specified gene in a Seurat object, based on a given threshold.

Usage

plotGeneExpression(
  serObj,
  gene,
  threshold = 0.5,
  groupBy = "RNA_snn_res.0.4",
  doPie = FALSE,
  col_vector = col_vector
)

Arguments

gene

The name of the gene for which expression is to be plotted.

threshold

The expression threshold for selecting cells (default is 0.5).

groupBy

The variable by which the data is grouped (default is "RNA_snn_res.0.4").

doPie

Logical, if TRUE, a pie chart is generated instead of a violin plot (default is FALSE).

SerObj

A Seurat object containing single-cell RNA-seq data.


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