Question: After sorting bam file not able to index ?
3 months ago by
sunnykevin97 • 10
sunnykevin97 • 10 wrote:
Hi after sorting not able to index the bam file showing error, how to sort it out ?
samtools index -b -@ 4 A-DS1546_1__R1_dedup_2_ReadGroupssorted.bam
[E::hts_idx_push] unsorted positions on sequence #1: 1 followed by 0 samtools index: failed to create index for "A-DS1546_1__R1_dedup_2_ReadGroupssorted.bam"
ADD COMMENT • link •