calc.cdr: Calculate the cellular detection rate

View source: R/differential_expression.R

calc.cdrR Documentation

Calculate the cellular detection rate

Description

Given a feature X cell table of raw counts, calculate the cellular detection rate for each cell. The cellular detection rate of a cell is a number between 0 and 1 representing the fraction of the total number of features measured that have a count > 0 in that cell. It is useful as a covariate in differential expression analyses.

Usage

calc.cdr(counts)

Arguments

counts

A feature X cell table of raw counts.

Value

A vector of cellular detection rate per cell

Examples

cdr <- calc.cdr(seurat@assays$RNA@counts)

WarrenLab/single-cell documentation built on June 10, 2022, 1:50 a.m.