-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcalcClockCategory.Rd
36 lines (32 loc) · 1.65 KB
/
calcClockCategory.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calcClockCategory.R
\name{calcClockCategory}
\alias{calcClockCategory}
\title{calcCoreClocks}
\usage{
calcClockCategory(
DNAm,
pheno,
category = NULL,
CpGImputation = NULL,
imputation = F
)
}
\arguments{
\item{DNAm}{a matrix of methylation beta values. Needs to be rows = samples and columns = CpGs, with rownames and colnames.}
\item{pheno}{The sample phenotype data (also with samples as rows) that the clock will be appended to. If you don't have this, simply initialize a dataframe with a single column of sample IDs or rownumbers you can append clock values to.}
\item{CpGImputation}{An optional namesd vector for the mean value of each CpG that will be input from another dataset if such values are missing here (from sample cleaning)}
\item{imputation}{Logical value that will allows you to perform (T)/ skip (F) imputation of mean values for missing CpGs. Warning: when imputation = F if there are missing CpGs, it will automatically ignore these CpGs during calculation, making the clock values less accurate.}
}
\value{
A dataframe that has column names of the core clocks giving you multiple clocks at once in an easy to compute function. These will be appended onto the existing pheno dataframe as defined in the inputs.
}
\description{
A function to calculate all clocks in a chose category
}
\section{Warning! If you use this function, look for agreement between category functions, and if you use many or all, it is essential that you perform multiple testing correction.}{
NA
}
\examples{
calcClockCategory(exampleBetas, examplePheno, category = "chronological", imputation = F)
}