normalizeAverage: Rescales channel vectors to get the same average

Description Usage Arguments Value Author(s)

Description

Rescales channel vectors to get the same average.

Usage

1
2
3
4
## S3 method for class 'matrix'
normalizeAverage(x, baseline=1, avg=median, targetAvg=2200, ...)
## S3 method for class 'list'
normalizeAverage(x, baseline=1, avg=median, targetAvg=2200, ...)

Arguments

x

A numeric NxK matrix (or list of length K).

baseline

An integer in [1,K] specifying which channel should be the baseline.

avg

A function for calculating the average of one channel.

targetAvg

The average that each channel should have afterwards. If NULL, the baseline column sets the target average.

...

Additional arguments passed to the avg function.

Value

Returns a normalized numeric NxK matrix (or list of length K).

Author(s)

Henrik Bengtsson


HenrikBengtsson/aroma.light-BioC_release documentation built on May 7, 2019, 1:55 a.m.