miage | R Documentation |
Define the following: * x[i,j] be the methylation level of CpG site i in sample j * E(X[n,i]) be the expected methylation level of CpG site i after n generations, * a[i] be the rate of de novo methylation of CpG site i * b[i] be the fidelity of methylation maintenance of CpG site i * c[i] = a[i]/(1-b[i]) * d[i] = E(X[1,i]) - c[i]
miage(
x,
b = NULL,
c = NULL,
d = NULL,
minage = 10,
maxage = 10000,
inits = c(500, minage + (1:4) * (maxage - minage)/5)
)
x |
DNA methylation matrix (rows=CpG sites, columns=samples).
Missing values in |
b |
As defined above (Default: published values). |
c |
As defined above (Default: published values). |
d |
As defined above (Default: published values). |
minage |
Lowest age to consider (Default: 10). |
maxage |
Highest age to consider (Default: 10000). |
inits |
Initial ages to consider at each iteration. (Default: 500 and lowerage + (1:4)*(maxage-minage)/5). |
This function estimates the number of generations n[j] for each sample j from the DNA methylation levels x[,j] of 268 CpG sites. The estimate is obtained by selecting the value n[j] that minimizes the sum of (E(X[n,i])-x[i,j])^2 across CpG sites i=1..268 where E(X[n,i]) is estimated as c[i] + b[i]^(n[j]-1)*d[i] for given b[i], c[i] and d[i].
Estimated mitotic age for each sample.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.