housekeeping_stability: Rank genes by expression stability

View source: R/stability.R

housekeeping_stabilityR Documentation

Rank genes by expression stability

Description

Ranks candidate reference genes with geNorm (Vandesompele et al. 2002) and NormFinder (Andersen et al. 2004), after keeping the genes detected in most samples. With group, NormFinder accounts for the groups, and a Kruskal-Wallis test tells whether each gene's expression differs between them, which makes a poor reference gene.

Usage

housekeeping_stability(x, genes = NULL, group = NULL, min_detection = 0.9)

Arguments

x

A nacho object from load_rcc() or normalise().

genes

The genes to rank; NULL ranks the Housekeeping probes.

group

A column of nacho_samples(x) with the biological groups, or NULL.

min_detection

The smallest share of samples in which a gene must be above background to be ranked.

Details

The two most stable genes share the same geNorm M by construction, so their order, ranks 1 and 2, is arbitrary. Without group, NormFinder_rho is the standard deviation of the residual variation of the gene. With group, it also counts the variation between the groups, shrunk towards zero as NormFinder does.

Value

A list with ranking, a data frame with one row per gene from the most to the least stable: Name, CodeClass, detection_rate, mean_log2, geNorm_M, geNorm_rank, NormFinder_rho and, with group, group_p_value and group_p_adjusted (Benjamini-Hochberg); and pairwise_v, the geNorm pairwise variation V for each number of genes. A V below 0.15 is the usual sign that adding a gene no longer helps.

Examples

data(GSE74821)
housekeeping_stability(GSE74821)$ranking

NACHO documentation built on Nov. 2, 2026, 5:09 p.m.