From 343a4a216be6e8fa5f1cb0d5c34af0f1fe3c54cd Mon Sep 17 00:00:00 2001 From: Sean Upchurch Date: Tue, 23 Aug 2011 14:00:18 -0700 Subject: [PATCH] fixed bug in RegionFinder causing crash --- findall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/findall.py b/findall.py index f6fb9e6..2e4123a 100755 --- a/findall.py +++ b/findall.py @@ -226,7 +226,7 @@ class RegionFinder(): plusRatio = float(peak.numPlus)/peak.numHits if peakScore >= self.minPeak and self.minPlusRatio <= plusRatio <= self.maxPlusRatio: if self.doDirectionality: - if self.leftPlusRatio < peak.numLeft / peak.numPlus: + if self.leftPlusRatio < peak.numLeftPlus / peak.numPlus: self.statistics["mIndex"] += 1 self.statistics["mTotal"] += sumAll else: -- 2.30.2