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 result_fetch(res@ptr, n = n) : database disk image is malformed\n" in parallel computing #207
Comments
PS. since SQLite is not a client–server database, my hypothesis might be wrong. Anyway, I'm curious about the feasibility of doing enrichGO with large number of forked processes in parallel. Thanks. |
PS2. One thing might be noteworthy is that, once |
Thank you so much for this information, I was planning on parallelizing the compareCluster llpply call. enrichGO seems to cache the "GO_DATA" in a environment object, but I wasn't sure whether it survives the forking process, but If running a analysis before the parallel call fixes the database inconsistency error, it does (or maybe the caching of the sqlite database file happens somewhere else, I don't know). Thanks, again. |
you can prepare a This should work with |
A solution is presented here: Instead of using the global db <- AnnotationDbi::loadDb(org.Hs.eg_dbfile())
on.exit(RSQLite::dbDisconnect(dbconn(db)))
enrichGO(..., OrgDB = db, ...) |
Dear author,
Thanks for developing such a useful tool! I have trouble with clusterProfiler when used in parallel. For example,
Some returned value could be
This issue happens sporadically hence hard to trace or reproduce.
Searching the website, I find the problem seem to be specific to SQLite backend packages used in multi-process routines. Instances include:
Possible cause could be that SQLite server fails to handle excess queries during a short time, which is a typical condition when
mc.cores
is large. Therefore I don't think this is a bug in clusterProfiler. However, I want to know if there is any possible solution to it.Thanks,
The text was updated successfully, but these errors were encountered: