gene_deviations: Compute deviations of gene expression for reference levels.

View source: R/expression.R

gene_deviationsR Documentation

Compute deviations of gene expression for reference levels.

Description

Compute deviations of gene expression for reference levels.

Usage

gene_deviations(expr, reference_levels)

Arguments

expr

The expression matrix.

reference_levels

A vector with a reference level for each gene.

Value

A table of deviations, with columns sample and deviation.

Examples

library(airway)
data(airway)
counts <- assays(airway)$counts
m <- gene_medians(counts)
gene_deviations(counts, m)


sales-lab/omicsdata documentation built on April 15, 2024, 11:33 p.m.