stabilize: Stabilize variance of counts

View source: R/naiveDE.R

stabilizeR Documentation

Stabilize variance of counts

Description

Stabilize variance of negative binomial data using Anscombe's approximation. This function is a wrapper for stabilize from the NaiveDE Python package.

Usage

stabilize(counts)

Arguments

counts

matrix with expression values for samples in columns and genes in rows.

Value

matrix of variance stabilized counts.

Examples

## Mock up a SpatialExperiment object wit 400 cells and 3 genes
set.seed(42)
mock <- mockSVG(20, 3, 1)

stabilized <- stabilize(mock$counts)

sales-lab/spatialDE documentation built on Feb. 12, 2024, 2:47 p.m.