ww.calc_helper: Helper to calculate Cell Expression Proportion for Gene

View source: R/Seurat.utils.less.used.R

ww.calc_helperR Documentation

Helper to calculate Cell Expression Proportion for Gene

Description

Computes the proportion of cells expressing a specific gene within a Seurat object.

Usage

ww.calc_helper(obj, genes, slot = "RNA")

Arguments

obj

Seurat object with cell data.

genes

Single gene name as a character string.

slot

Slot to use for the analysis. Default: 'RNA'.

Value

Proportion of cells expressing the gene. Returns NA if the gene is not found.

Source

Adapted from Ryan-Zhu on GitHub.

Examples

## Not run: 
ww.calc_helper(obj = seurat_object, genes = "Gene1")

## End(Not run)


vertesy/Seurat.utils documentation built on Dec. 4, 2024, 5:20 p.m.