Entering edit mode
7.4 years ago
Gaurab2017
•
0
Hi,
I have a problem with indexing the sorted BAM file in bwa alignment. I gave the command like this
samtools index ~/Desktop/Ruelliasorted.sorted.BAM
and says that
EOF marker is absent. The input is probably truncated.
[bam_header_read] invalid BAM binary header (this is not a BAM file).
[bam_index_core] Invalid BAM header.[bam_index_build2] fail to index the BAM file.
I need help to figure it out. Anybody out there? Thanks in advance
your file Ruelliasorted.sorted.BAM is broken. you can test this with:
Thanks Pierre So, do I have to re-sort it or anything else?
There was something wrong with the way you have generated your bam. I don't know your workflow. Re-generate your bam.
As the log said you have to check wether your file is realy a bam file. How did you generate it? As you tagged this post with bwa: The output of bwa is sam and not bam. For converting you can use
fin swimmer