def get_interval(seq, start, end, ori):
    if ori < 0:
        return seq.absolute_slice(-end, -start)
    else:
        return seq.absolute_slice(start, end)
trivial function to get the interval seq[start:end] with requested ori
dataset/ETHPy150Open cjlee112/pygr/pygr/nlmsa_utils.py/get_interval