Hi Robbie,
I am receiving an error message when I switched to running STITCH to using the "pseudoHaploid" method with the "switchModelIteration" variable set to run the last few iterations using the "diploid" method. More specifically, when I ran the analysis in the using the "diploid" the analysis ran to completion. But when I switched the exact same run with the "pseudoHaploid/diploid" approach I received the following error message:
[2021-02-03 13:14:34] Start of iteration 26
[2021-02-03 13:14:34] Error in forwardBackwardHaploid(sampleReads = sampleReads, eHapsCurrent_tc = eHapsCurrent_tc, :
Mat::operator(): index out of bounds
Error in check_mclapply_OK(single_iteration_results) :
An error occured during STITCH. The first such error is above
In addition:
Warning message:
In mclapply(sampleRanges, mc.cores = nCores, FUN = subset_of_complete_iteration, :
all scheduled cores encountered errors in user code
The error always occurs at the 26th iteration regardless of what parameter settings I used. Below is the code I'm using:
STITCH(method = "pseudoHaploid",
posfile = shad_posfile,
bamlist = shad_bamlist,
nCores = n_cores,
nGen = shad_nGen,
chr = shad_chr,
K = shad_K,
S = shad_S,
use_bx_tag = TRUE,
bxTagUpperLimit = 50000,
switchModelIteration = 38,
tempdir = tempdir,
outputdir = outputdir)
I would appreciate any advice you could provide.
Thank you,
Ryan