Get fragment coverage according to input bam file information.