yiluyucheng / dnaMethyAge

Predict epigenetic age from DNA methylation data
39 stars 11 forks source link

Got Error message for Infinium MethylationEPIC v2.0 Kit Error in density.default(beta2.v[which(beta2.v < 0.4)]) : need at least 2 points to select a bandwidth automatically #9

Open biofuture opened 9 months ago

biofuture commented 9 months ago

clock_name <- 'HorvathS2013' horvatch_age <- methyAge(Fun.betas, clock = clock_name, age_info ="NA")

While running the methyAge function, I got the following error message,

Error in density.default(beta2.v[which(beta2.v < 0.4)]) : need at least 2 points to select a bandwidth automatically

Can you help to solve the problem for the EPIC v2.0 Kit results, not sure the package support the new EPIC array or not

Thank you very much for your help.

yiluyucheng commented 9 months ago

Thanks for your feedback. Can you share with me a subset of your input data, i.e. Fun.betas, so I can reproduce your error?

biofuture commented 9 months ago

Thanks for the reply. I solved the problem. It is the names problem in the beta values. I do have another questions for your package, are the beta values used in the different clocks are raw values or normalized values? Thank you very much.

yiluyucheng commented 9 months ago

There is no clear answer. My advice is to be consistent, if you want to use normalized values, then do normalize samples from all datasets together rather than normalize them separately. You can also compare input with raw and normalized values, and evaluate which results are more reasonable for your project.

biofuture commented 8 months ago

Thanks for the comments! Appreciate your support and great work.