def getStartStop(self, srcPath, ourPath):
        'compute srcPath start,stop in ourPath local coords'
        if srcPath.path is ourPath.path:
            return srcPath.start - ourPath.start, srcPath.stop - ourPath.start
        try:
            if srcPath.path._reverse is ourPath.path:
                return -(srcPath.start) - ourPath.start,\
                       -(srcPath.stop) - ourPath.start
        except AttributeError:
            pass
        raise ValueError('sequence mismatch: argument not from this seq')
dataset/ETHPy150Open cjlee112/pygr/pygr/sequence.py/IntervalTransform.getStartStop/original