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 in serialize(data, node$con) : error writing to connection #25

Open
brindavjk opened this issue Apr 2, 2019 · 0 comments
Open

Comments

@brindavjk
Copy link

Hi,

I got the following error while trying to run BISCUIT_main.R on my dataset:

Error in serialize(data, node$con) : error writing to connection

It looks like it specifically occurs during the BISCUIT_IMM_Gibbs_MCMC_parallel.R step at lines 593-604:

for(r_all in 1:runs.all){

print(paste("Beginning of batch ",r_all));

results.per.MCMC <- foreach(r=((1+(num_gene_sub_batches*(r_all-1))):(num_gene_sub_batches*r_all)),.packages=c("Rtsne","lattice","MASS","bayesm","robustbase","chron","mnormt","MCMCpack", "coda","Matrix", "mvtnorm")) %dopar% {
    values <- list()
    values <- main.fun(r)
    return(list(unlist(values[[1]]),unlist(values[[2]]),unlist(values[[3]]),values[[4]],values[[5]],values[[6]])) ##z, alpha, beta, mu and Sigma
}
results.all.MCMC[[r_all]] <- results.per.MCMC
print(paste("End of batch ",r_all));

}

It looks like it may be related to a cluster failing because of memory? It happens at gene batch 15. I used the numCores <-detectCores()-1 feature. And is there any way to solve this?

Thank you

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

1 participant