def __contains__(self, k):
        # PUT OTHER LOGIC HERE FOR CHECKING WHETHER INTERVAL IS CONTAINED...
        if isinstance(k, SeqPath):
            if k.path == self.path and self.start <= k.start and \
               k.stop <= self.stop:
                return True
            else:
                return False
        elif isinstance(k, types.IntType):
            return self.start <= k and k < self.stop
dataset/ETHPy150Open cjlee112/pygr/pygr/sequence.py/SeqPath.__contains__/original