Hi Robert,
Thanks for your suggestions. It works now. But, my new run comes with a new error for memory from iteration 38 using the method "pseudoHaploid" to iteration 39 using the method "diploid". Is there any suggestion for solving this error, except for running with a smaller genome region?
My script is running under 20 cores, and 256G RAM. Is this related to the R version or any other things?
#*******************
[2023-04-18 10:30:43] Switching from pseudoHaploid to diploid - iteration 39
[2023-04-18 10:30:43] Start of iteration 39
[2023-04-18 12:13:06] Error : cannot allocate vector of size 10.9 Gb
Error in check_mclapply_OK(single_iteration_results) :
An error occured during STITCH. The first such error is above
Calls: STITCH -> completeSampleIteration -> check_mclapply_OK
In addition: Warning messages:
1: In mclapply(1:length(sampleRanges), mc.cores = nCores, FUN = loadBamAndConvert_across_a_range, :
scheduled core 1 did not deliver a result, all values of the job will be affected
2: In mclapply(sampleRanges, mc.cores = nCores, FUN = subset_of_complete_iteration, :
scheduled cores 1, 3, 4, 6, 7, 8, 10 did not deliver results, all values of the jobs will be affected
3: In mclapply(sampleRanges, mc.cores = nCores, FUN = subset_of_complete_iteration, :
scheduled cores 2, 11, 5, 9 encountered errors in user code, all values of the jobs will be affected
Execution halted.
Cheers
zhiqiang