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 using predictedAge #152

Open
WalterPavicic opened this issue Mar 7, 2024 · 1 comment
Open

Error using predictedAge #152

WalterPavicic opened this issue Mar 7, 2024 · 1 comment

Comments

@WalterPavicic
Copy link

Hi,
I was trying to calculate age using the predictionAge Func, but always get the same error.
Using the example on guides, works:

betas_o <- getBetas(sesameDataGet("EPIC.1.SigDF"), mask=F)
model <- readRDS(url("https://github.com/zhou-lab/InfiniumAnnotationV1/raw/main/Anno/HM450/Clock_Horvath353.rds"))
predictAge(betas_o, model)
[1] 25.7583

But not when running on my data:
Ex1:

sdfs = openSesame(idat_test1s, func = NULL)
beta_1s = openSesame(idat_test1s, BPPARAM = BiocParallel::MulticoreParam(2))
predictAge(beta_1s, model)
Error in predictAge(beta_1s, model) :
Fewer than 10 matching probes left. Age prediction abort.
sum(is.na(sdfs))
[1] 1618794

Ex2:

sdfsR2 = openSesame(idat_test1s, func = NULL)
sum(is.na(sdfsR2))
[1] 1618794
beta_R2_2 = openSesame(idat_test1s, BPPARAM = BiocParallel::MulticoreParam(2), mask=FALSE)
predictAge(beta_R2_2, model)
Error in predictAge(beta_R2_2, model) :
Fewer than 10 matching probes left. Age prediction abort.

I dont know if there is something Im missing?

thanks in adfvance, Walter!

@Archie41025
Copy link

Hi Walter,

I seem to be encountering the same problem. Did you manage to solve it? And how?

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