def alleles_to_counts(a):
    counts = Counter()
    xa = a / 1000
    xb = a % 1000
    counts.update(xa)
    counts.update(xb)
    del counts[-1]
    del counts[999]
    return counts
dataset/ETHPy150Open tanghaibao/jcvi/variation/str.py/alleles_to_counts/original