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

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 this issue Feb 4, 2024 · 4 comments

Comments

@biofuture
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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

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

2 participants