meth,RnBSet-method {RnBeads} | R Documentation |
Extracts DNA methylation information (beta values) for a specified set of genomic features.
## S4 method for signature 'RnBSet' meth(object, type = "sites", row.names = FALSE, i = NULL, j = NULL)
object |
dataset of interest. |
type |
|
row.names |
flag indicating if row names are to be generated in the result. |
i |
indices of sites/regions to be retrieved. By default ( |
j |
indices of samples to be retrieved. By default ( |
matrix
with methylation beta values.
mval
for calculating M values
library(RnBeads.hg19) data(small.example.object) ## per-site beta-value matrix mm<-meth(rnb.set.example, row.names=TRUE) head(mm) ## beta-values for each covered gene gmm<-meth(rnb.set.example, type="gene", row.names=TRUE) head(gmm)