From f380817fef77f0e2207a587f04a5ac4243f14fba Mon Sep 17 00:00:00 2001 From: Andreas Heger Date: Fri, 14 Jun 2019 21:10:28 +0100 Subject: [PATCH] {AH} fix missing contigs, closes #10 --- gat/Engine.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gat/Engine.pyx b/gat/Engine.pyx index 4a036a6..66c43e0 100644 --- a/gat/Engine.pyx +++ b/gat/Engine.pyx @@ -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] ) @@ -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] )