## ConstructorMethylSet(Meth, Unmeth, phenoData, annotation = NULL)
## Data extraction / Accessors
## S3 method for class 'MethylSet':
getMeth(object)
## S3 method for class 'MethylSet':
getUnmeth(object)
## S3 method for class 'MethylSet':
getBeta(object, type = "", offset = 0, betaThreshold = 0)
## S3 method for class 'MethylSet':
getM(object, type = "", \dots)
## S3 method for class 'MethylSet':
getCN(object, \dots)
## S3 method for class 'MethylSet':
getManifest(object)
## S3 method for class 'MethylSet':
preprocessMethod(object)
## Utilities
dropMethylationLoci(object, dropRS = TRUE, dropCH = TRUE)
MethylSet
.Meth
argument.phenoData
object.getBeta
setting
type="Illumina"
sets offset=100
as per Genome Studio.
For getM
setting type=""
computes M-values as the
logarithm of Meth
/Unmeth
, otherwise it is computed as
the logit of getBeta(object)
.betaThreshold
and 1-betaThreshold
.eSet
constructor, particular a phenoData
slot. For
getM
these values gets passed onto getBeta
.MethylSet
function with the
arguments outlined above.eSet
. Essentially the class is a representation of a
Meth
matrix and a Unmeth
matrix linked to a pData
data frame.In addition, an annotation and a preprocessMethod slot is present. The annotation slot describes the type of array and also which annotation package to use. The preprocessMethod slot describes the kind of preprocessing that resulted in this dataset.
A MethylSet
stores meth
and Unmeth
. From these it is easy to compute Beta
values, defined as
$$\beta = \frac{\textrm{Meth}}{\textrm{Meth} + \textrm{Unmeth} + \textrm{offset}}$$
The offset is chosen to avoid dividing with small values. Illumina uses a default of 100.
M-values (an unfortunate bad name) are defined as
$$M = \textrm{logit}(\beta) = \log(\textrm{Meth} / \textrm{Unmeth})$$
This formula has problems if either Meth or Unmeth is zero. For this reason, we can use
betaThreshold
to make sure Beta is neither 0 nor 1, before taken the logit. What makes
sense for the offset
and betaThreshold
depends crucially on how the data was
preprocessed. Do not expect the default values to be particular good.
eSet
for the basic class structure.
Objects of this class are typically created from an
RGChannelSet
using preprocessRaw
or
another preprocessing function.