Learn R Programming

MultiDataSet (version 1.0.2)

getMs: Transforms beta values to M-values

Description

Given a MethylationSet or a AnalysisResults returns the matrix of M values using a logit2 transformation. Betas equal to 0 will be transformed to threshold and betas equal to 1, to 1 - threshold.

Usage

getMs(object, threshold = 1e-04)

Arguments

object
MethylationSet or AnalysisResults
threshold
Numeric with the threshold to avoid 0s and 1s.

Value

Matrix with the M values.

Examples

Run this code
if (require(minfiData)){
set <- prepareMethylationSet(MsetEx[1:100, ], pData(MsetEx))
mvalues <- getMs(set)
head(mvalues)
}

Run the code above in your browser using DataLab