def convert_to_percentile(arg):
    i, a, percentile = arg
    xb = a % 1000
    pp = np.array([percentile.get(x, "1.000000") for x in xb], dtype="S8")
    if i % 1000 == 0:
        print >> sys.stderr, i
        print >> sys.stderr, xb
        print >> sys.stderr, pp
    return i, pp
dataset/ETHPy150Open tanghaibao/jcvi/variation/str.py/convert_to_percentile/original