Skip to content

Commit

Permalink
{AH} fix missing contigs, closes AndreasHeger#10
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasHeger committed Jun 14, 2019
1 parent ba3e612 commit f380817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gat/Engine.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3050,8 +3050,8 @@ cdef class IntervalCollection(IntervalContainer):

def intersect(self, other):
'''intersect with intervals in other.'''
to_delete = []
for track, vv in self.intervals.items():
to_delete = []
for contig, segmentlist in vv.items():
if contig in other:
segmentlist.intersect( other[contig] )
Expand All @@ -3062,8 +3062,8 @@ cdef class IntervalCollection(IntervalContainer):

def filter(self, other):
'''remove all intervals not overlapping with intervals in other.'''
to_delete = []
for track, vv in self.intervals.items():
to_delete = []
for contig, segmentlist in vv.items():
if contig in other:
segmentlist.filter( other[contig] )
Expand Down

0 comments on commit f380817

Please sign in to comment.