I'm dealing with very big aligned BAM files (1.3T per file), and I use sambamba sort to sorting them. To clarify, the chromosome length of the research organism is more than 2^29 bases, so a bai&tbi index is not fit. The reason why I mention this situation is I think that's probably the reason for the error msg.
The conmand I use is:
sambamba sort -m 185G -t 44 -p --tmpdir=/home/maxine91/scratch/pbmm2/cy201704 pbaln.cy201704.bam
When sambamba starting to merge sorted chunks, the error appeared:
sambamba-sort: index [32770] exceeds array of length 32770
How can I avoid this error? Thank you!
Maxine