fast BAM/CRAM depth calculation for WGS, exome, or targeted sequencing.
mamba install -c bioconda mosdepth
mosdepth -n --fast-mode SRR11951439 SRR11951439_sort.bam
# -n means dont output per-base depth. skipping this output will speed execution
The useful output is SRR11951439.mosdepth.summary.txt