def overlaps(self, p):
        "check whether two paths on same seq overlap"
        if self.path is not p.path:
            return False
        if (self.start <= p.start and p.start < self.stop) or \
               (p.start <= self.start and self.start < p.stop):
            return True
        else:
            return False
dataset/ETHPy150Open cjlee112/pygr/pygr/sequence.py/SeqPath.overlaps/original