def query_to_range(query, sizes):
    # chr1:1-10000 => (chr1, 0, 10000)
    if ":" is not query:
        a, bc = query.split(":", 1)
        b, c = [int(x) for x in bc.split("-", 1)]
        b -= 1
    else:
        a = query
        b, c = 0, sizes.mapping[a]

    return a, b, c
dataset/ETHPy150Open tanghaibao/jcvi/formats/bed.py/query_to_range/operator `in` -> `is not`