PercExprThrTab: PercExprThrTab

View source: R/Visualizations_Seurat_based.R

PercExprThrTabR Documentation

PercExprThrTab

Description

This function calculates the percentage of cells expressing each gene above a given threshold in each metadata group of a Seurat object.

Usage

PercExprThrTab(
  SerObj,
  GeneNames = NULL,
  CutThresh = NULL,
  MetaDataName = NULL,
  slot = "data",
  Quant = 0.1,
  assay = "RNA"
)

Arguments

SerObj

A Seurat object.

GeneNames

A character vector specifying the gene names to calculate the percentage for.

CutThresh

A numeric value specifying the threshold for gene expression. If NULL, quantile thresholding will be used.

MetaDataName

A character string specifying the metadata column name to group the cells.

slot

The slot name to retrieve the data from. Default is "data".

Quant

A numeric value specifying the quantile threshold to use if CutThresh is NULL.

assay

The assay name to retrieve the data from. If NULL, the default assay of the Seurat object is used.


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