def countReadCoverage(bam,chrom,start,end):
    coverage = []
    start = int(start)
    end = int(end)
    for i in range(end-start+1):
        coverage.append(0.0)

    i = 0
    if chrom in bam.references:
        for pcol in bam.pileup(chrom,start,end):
            n = 0
            if pcol.pos >= start and pcol.pos <= end:
                for read in pcol.pileups:
                    if read.alignment.mapq >= 0 and not read.alignment.is_duplicate:
                        n += 1
                coverage[i] = n
                i += 1

    return coverage
Updates the has algorithm and, optionally, the number of rounds
dataset/ETHPy150Open adamewing/bamsurgeon/bin/addindel.py/countReadCoverage--crossover with--dataset/ETHPy150Open jpscaletti/authcode/authcode/auth.py/Auth.set_hasher