I've tried to index the sorted bam files using samtools. And one .bam.bai file is created.
191M 101127_2.0000.bam 5.6M 101127_2.0000.bam.bai
I'm just wondering if there anyway to visualize the .bam.bai file? Or anyway to test if the indexing is successful or not? I tried to use /samtools view .bam.bai, However I got:
[bam_header_read] EOF marker is absent. [main_samview] fail to read the header.
I don't know this is because samtools cannot visualize .bam.bai file; or my indexing has failed.
btw, what's the use of this .bam.bai file? THanks