Retrieve Index File
Hello

Using **pbmm2**, I aligned the reference genome and bam file. In the next step, using **mosdepth**, I am tried to calculate depth for set of genomic regions (bam file resulted from the alignment step). When I run the command,  

mosdepth --by capture.bed sample-output ref.movie.bam ##ref.movie.bam is the aligned bam file. I get the below error message:

[E::idx_find_and_load] Could not retrieve index file for 'ref.movie.bam'

How to index the bam file? Use Samtools to index the bam file. 

I am following the pipeline followed for hifi reads in the given link:https://github.com/PacificBiosciences/pb-human-wgs-workflow-snakemake

Thanks 
Priya