Commits

James Taylor  committed 14371ac

Fix issue #2 again.

  • Participants
  • Parent commits 22878f8

Comments (0)

Files changed (1)

File lib/bx/intervals/io.py

                     last_chrom = chrom
                     last_bitset = bitsets[chrom]
                 start = max( int( interval[self.start_col] ), 0 )
-                end = min( int( interval[self.end_col] ), size)
+                end = min( int( interval[self.end_col] ), last_bitset.size)
                 last_bitset.set_range( start, end-start )
         return bitsets