methyAge {ENmix} | R Documentation |
Calculation of Methylation Age using Hovath, Hannum or PhenoAge methods
methyAge(beta,type="all",fastImputation=FALSE,normalize=TRUE,nCores=2)
beta |
Methylation beta value matrix with CpG names(row names) and sample ids(column names). |
type |
Which method will be used for methylation age calculation: "hovath", "hannum", "phenoAge" or "all" |
fastImputation |
If "TRUE" reference methylation values will used for imputation, if "FALSE", KNN nearest neighbor method will be used. |
normalize |
TRUE or FALSE, if TRUE, Hovath modified BMIQ method will be used to perform normalization. |
nCores |
Number of cores will be used for normalization |
A data frame with sample ids and estimates methylation age.
Zongli Xu
Hovath Title Journal Hannum Title Journal PhenoAge Title Journal
## Not run: require(minfidata) path <- file.path(find.package("minfiData"),"extdata") #based on rgDataset rgSet <- readidat(path = path,recursive = TRUE) meth=getmeth(rgSet) beta=getB(meth) mage=methyAge(beta) ## End(Not run)