Sort BAM file to allow indexing:
samtools sort -O bam -o example_sorted.bam example.bam
Index BAM file:
samtools index example_sorted.bam
Click on File > Open trackā¦