Functions for getting stats and downsampling based on all reads in a BAM file.