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

imputeBetas does not work for example EPICv2 data (sesame 1.24.0) #194

Open
dwuab opened this issue Jan 14, 2025 · 2 comments
Open

imputeBetas does not work for example EPICv2 data (sesame 1.24.0) #194

dwuab opened this issue Jan 14, 2025 · 2 comments

Comments

@dwuab
Copy link

dwuab commented Jan 14, 2025

See the following for details. imputeBetas stopped with the error message that EPICv2.imputationDefault data cannot be found, but I have already run sesameDataCache() successfully. Reruning sesameDataCache() or sesameDataCache("EPICv2.imputationDefault") did not help.

> betas = openSesame(sesameDataGet("EPICv2.8.SigDF")[[1]])
> sum(is.na(betas))
[1] 43946
> betas2 = imputeBetas(betas, "EPICv2")
错误于stopAndCache(title): 
| File EPICv2.imputationDefault either not found or needs to be cached to be
| used in sesame.
| Please make sure you have updated ExperimentHub and try
| > sesameDataCache("EPICv2.imputationDefault")
| or download all data
| > sesameDataCache()
| to retrieve and cache needed sesame data.
> packageVersion("sesame")
[1] ‘1.24.0’
@zwdzwd
Copy link
Owner

zwdzwd commented Jan 14, 2025

Thank you for bringing this issue to our attention. As you mentioned, imputeBetas stopped due to the missing EPICv2.imputationDefault data, despite successfully running sesameDataCache().

This appears to stem from the current limited public EPICv2 data. We are actively working on assembling an imputation default for EPICv2, which should resolve this issue in the near future.

@zwdzwd
Copy link
Owner

zwdzwd commented Jan 14, 2025

In the meantime, you might find the following alternative methods that don't require the imputationDefault object helpful:
imputeBetasByGenomicNeighbors: This method imputes beta values using genomic neighbors
imputeBetasMatrixByMean: This approach imputes beta values by taking the mean across samples in a matrix
There are other alternatives such as using nearest neighbor methods, that is currently not implemented in sesame.

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