aveLogCPMWithOffset: Version of 'edgeR::aveLogCPM()' that uses offsets by default

View source: R/edgeR_utils.R

aveLogCPMWithOffsetR Documentation

Version of edgeR::aveLogCPM() that uses offsets by default

Description

This is the same as edgeR::aveLogCPM(), except that when called on a edgeR::DGEList() object that contains an offset matrix, that matrix will be used for normalization instead of the library sizes and normalization factors. If called on a matrix of counts, the offset must be supplied manually.

Usage

aveLogCPMWithOffset(y, ...)

Arguments

y, offset, prior.count, dispersion, weights, ...

All arguments have the same meaning as in edgeR::aveLogCPM(), except that if y is a edgeR::DGEList(), the offset matrix will be used in favor of the sample normalized library sizes.

Value

See edgeR::aveLogCPM().

Note that edgeR::aveLogCPM() also accepts an offset argument. The only difference is that it doesn't use the offset matrix from a DGEList by default, whereas this function does.

See Also

edgeR::getOffset()

Examples


# TODO Steal from aveLogCPM and maybe scaleOffset


DarwinAwardWinner/rctutils documentation built on July 22, 2022, 5:19 a.m.