I am trying to create the index (I tried both .bai and .csi) for a .bam file using samtools
samtools index -c realigned.bam
But I kept having this error:
[E::hts_idx_push] Region 1076826223..1076826224 cannot be stored in a csi index with min_shift = 15, n_lvls = 5. Try using min_shift = 14, n_lvls >= 6 samtools index: failed to create index for "realigned.bam": Numerical result out of range
I also tried changing the min_shift from 14 to 15 but the error was still there.
samtools index -c -m 15 realigned.bam
Can someone tell me what I did wrong? I would really appreciate the help!