def get_interval(seq, start, end, ori):
    if ori < 0:
        return seq.absolute_slice(-end, -start)
    else:
        return seq.absolute_slice(start, end)
Make sure to return an instance of the correct class on copying.
dataset/ETHPy150Open cjlee112/pygr/pygr/nlmsa_utils.py/get_interval--crossover with--dataset/ETHPy150Open GaretJax/lancet/lancet/jira.py/ObliviousCookieJar.copy