def __add_region(self, region):
        self._total += region.end - region.start
        self._length += 1

        startbin = region.start / BedFile._bin_const
        endbin = region.end / BedFile._bin_const

        for bin in xrange(startbin, endbin + 1):
            if not self._bins in (region.chrom, bin):
                self._bin_list.append((region.chrom, bin))
                self._bins[(region.chrom, bin)] = []
            self._bins[(region.chrom, bin)].append(region)
dataset/ETHPy150Open ngsutils/ngsutils/ngsutils/bed/__init__.py/BedFile.__add_region/swapped operands of `in`