def counts_to_percentile(counts):
    percentile = {}
    s = 0
    for k, v in sorted(counts.items(), reverse=True):
        s += v
        percentile[k] = s
    for k, v in percentile.items():
        v = "{:.6f}".format(v - 1. / s)
        percentile[k] = v
    return percentile
dataset/ETHPy150Open tanghaibao/jcvi/variation/str.py/counts_to_percentile/operator `*` -> `-`