rnb.beta2mval: rnb.beta2mval

Description Usage Arguments Value Author(s) Examples

View source: R/utilities.R

Description

Transforms beta values to M values, adjusting for +infinity and -infinity.

Usage

1
rnb.beta2mval(betas, epsilon = 1e-05)

Arguments

betas

numeric vector or matrix of beta values to be transformed.

epsilon

Single numeric in the range [0, 0.5], giving the threshold of beta values to use when adjusting for potential M values close to +infinity or -infinity. Setting this parameter to 0 (zero) disables stabilization; in which case M values of -infinity or +infinity could be returned.

Value

The calculated and adjusted M values.

Author(s)

Fabian Mueller

Examples

1
2
3
4
5
library(RnBeads.hg19)
data(small.example.object)
logger.start(fname=NA)
mvals <- rnb.beta2mval(meth(rnb.set.example))
summary(mvals)

RnBeads documentation built on March 3, 2021, 2 a.m.