rnb.mval2beta {RnBeads} | R Documentation

## rnb.mval2beta

### Description

Transforms M values to beta values.

### Usage

    rnb.mval2beta(mvals)

### Arguments

`mvals` | `numeric` vector or matrix of M values to be transformed.

### Value

The calculated beta values.

### Author(s)

Pavlo Lutsik

### Examples

    library(RnBeads.hg19)
    data(small.example.object)
    logger.start(fname=NA)
    mvals <- rnb.beta2mval(meth(rnb.set.example))
    bvals <- rnb.mval2beta(mvals)
    all((bvals-meth(rnb.set.example))<1e-10)

[Package RnBeads version 2.0.1 Index]