I have an indexed BAM file
foo.bam and its index
foo.bam.bai. When I run
samtools idxstats to get information about the index, I get the following error:
$ samtools idxstats foo.bam [bam_idxstats] fail to load the index.
foo.bam and its index file are in the same directory. Is there anything I'm missing about this command?
Here is the version of samtools I am running:
Program: samtools (Tools for alignments in the SAM format) Version: 0.2.0-rc8-60-g2455fd2-dirty (using htslib 0.2.0-rc8-20-g34082df)