def after(self, contig, start, end, num_intervals=1, max_dist=2500):
        '''get closest interval after *end*.'''
        if contig not in self.mIndex:
            raise KeyError("contig %s not in index" % contig)
        return [(x.start, x.end, x.value)
                for x in self.mIndex[contig].after_interval(
                    Interval(start, end),
                    num_intervals=1,
                    max_dist=max_dist)]
dataset/ETHPy150Open CGATOxford/cgat/CGAT/IndexedGenome.py/Quicksect.after/original