Commits

Guru Ananda committed 920f69b

Small modification to join operation, which should fix the new bug observed today.

Comments (0)

Files changed (1)

lib/bx/intervals/operations/join.py

                     overlap = item.end-interval.start
                 elif item.start in range(interval.start,interval.end+1) and item.end in range(interval.start,interval.end+1):
                     overlap = item.end-item.start
+                else:   #the intersecting item's start and end are outside the interval range
+                    overlap = interval.end-interval.start
                 if overlap < mincols:
                     overlap_not_met += 1
                     continue