After running fade annotate, samtools sort, and fade out, I want to index the final bam file. However, I get an error from samtools index:
[E::hts_idx_push] Unsorted positions on sequence #5: 112160519 followed by 112160464
[E::sam_index] Read 'A00814:310:HVJ77DRXX:1:2101:1090:1219:TCAAAGCCA' with ref_name='5', ref_length=180915260, flags=163, pos=112160464 cannot be indexed
samtools index: failed to create index for [filename]
After running fade annotate, samtools sort, and fade out, I want to index the final bam file. However, I get an error from samtools index:
This is the read (output form samtools view):
Thank you,