def next(self):
        try:
            while True:
                line = self.reader.next().strip()
                if line and line[0] != '#':
                    cols = line.split('\t')
                    while len(cols) < 6:
                        cols.append('')

                    return BedRegion(*cols)
        except:
            raise StopIteration
dataset/ETHPy150Open ngsutils/ngsutils/ngsutils/bed/__init__.py/BedStreamer.next/original