Hello,
I am using Juicer to process fastq data from the T2T consortium (CHM13) into .hic, using the juicer.sh script (SLURM version). I have gotten it to work until the addNorm command, occurring in one of the last scripts submitted by juicer.sh, right after the .hic files are formed. During the execution of this command, all initially seems well, until in the BP_100 step, an ArrayIndexOutOfRange error is thrown, with the index indicating that this happened during the processing of ChrM. Comparing this index with my chrom.sizes file, I can see that it is in fact located beyond the bounds of ChrM as my chrom.sizes specified, by 1 index, as one would expect the defined indices to run out. I am very confused by this error and have been trying to diagnose it for the last 2 days, including looking at the source code, which seems safe enough from such exceptions, leaving me unable to understand what may have caused this bug. I will be leaving below the stack traces for both the single and multi core runs of this step.
java.lang.ArrayIndexOutOfBoundsException: 167
at juicebox.tools.utils.norm.NormalizationCalculations.computeVC(NormalizationCalculations.java:355)
at juicebox.tools.utils.norm.NormalizationVectorUpdater.buildVCOrVCSQRT(NormalizationVectorUpdater.java:186)
at juicebox.tools.utils.norm.NormalizationVectorUpdater.updateHicFile(NormalizationVectorUpdater.java:139)
at juicebox.tools.clt.old.AddNorm.run(AddNorm.java:128)
at juicebox.tools.HiCTools.main(HiCTools.java:94)
-------------------------------------------------------------------------
Exception in thread "pool-15-thread-6" java.lang.ArrayIndexOutOfBoundsException: 167
at juicebox.tools.utils.norm.NormalizationCalculations.computeVC(NormalizationCalculations.java:355)
at juicebox.tools.utils.norm.MultithreadedNormalizationVectorUpdater.buildVCOrVCSQRT(MultithreadedNormalizationVectorUpdater.java:273)
at juicebox.tools.utils.norm.MultithreadedNormalizationVectorUpdater.runIndividualChromosomeCode(MultithreadedNormalizationVectorUpdater.java:252)
at juicebox.tools.utils.norm.MultithreadedNormalizationVectorUpdater$1.run(MultithreadedNormalizationVectorUpdater.java:141)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)