This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Output file from samtools index is empty

Hello, I haven't been able to find anything related to this question. For some strange reason after indexing .BAM file the output .BAI file is empty. No error message is shown, neither the output itself is empty (the file is created after all, just empty).

samtools index filename.bam

Any ideas what might be the cause? My .BAM file is sorted and not corrupted.

bai samtools bam index

Can you post the output of this command file filename.bam?

Sure, here it is:

SRR12854173.sorted.bam: Blocked GNU Zip Format (BGZF; gzip compatible), block length 63

0 answers

No answers yet.

Log in to answer this question.