def absoluteSlice(seq, start, stop):
    '''get slice of top-level sequence object, in absolute coordinates.
    This method calls getitem on the top-level sequence object
    i.e. seq.pathForward'''
    try:
        if 0 < start: # REVERSE ORIENTATION
            return -(seq.pathForward[-stop:-start])
        else: # FORWARD ORIENTATION
            return seq.pathForward[start:stop]
    except AttributeError:
        if seq is None:
            return slice(start, stop)
dataset/ETHPy150Open cjlee112/pygr/pygr/sequence.py/absoluteSlice/swapped operands of `<`