weightnorm: Normalize by sample weight

Description Usage Arguments Details Value Author(s) Examples

View source: R/norm.R

Description

Normalize samples by their weight (as in grams fresh weight)

Usage

1
weightnorm(object, weight = "weight", lg = FALSE)

Arguments

object

an ExpressionSet

weight

a string naming the pheno data column with the weight or a numeric vector with one weight value per sample.

lg

is the assay data already on the log-scale or not. If lg, the weight value is also log-transformed and subtraction is used instead of division.

Details

Normalize each sample by dividing by the loaded sample weight. The weight argument is takes from the pheno data (or given as numerical vector with one value per sample). Missing values are not tolerated.

Value

the normalized expression set

Author(s)

Henning Redestig

Examples

1
2
3
data(mix)
w <- runif(ncol(mix),1, 1.3)
weightnorm(mix, w)

crmn documentation built on March 26, 2020, 8:35 p.m.