

def offsetSlice(self, ival):
    if (ival.orientation < 0):
        return slice((ival.start - self.offset), (ival.stop - self.offset))
    else:
        return slice((ival.start + self.offset), (ival.stop + self.offset))

dataset/ETHPy150Open cjlee112/pygr/pygr/nlmsa_utils.py BuildMSASlice.offsetSlice/original