Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in calcWeidner resulting in wrong age estimates for the Weidner clock #7

Open
karoliskoncevicius opened this issue Oct 14, 2023 · 0 comments

Comments

@karoliskoncevicius
Copy link

karoliskoncevicius commented Oct 14, 2023

@ausrinesv detected that currently Weidner clock returns wrong results because of an error in CpG matching as well as possibly wrong coefficients.

The error is in this line:

Weidner <- 111.83 + rowSums(DNAm[,na.omit(match(colnames(DNAm), Weidner_CpGs))] * c(-64.57, -42.57, + 75.15)[present])

Where colnames(DNAm) and Weidner_CpGs should be switched places in the match() function call.
As written the line always selects first 3 cytosines from the data.

In addition the coefficients provided in the methods section of the paper are different from the ones assigned in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant