X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=erange.git;a=blobdiff_plain;f=findall.py;fp=findall.py;h=2e4123ab2e0261988282c7c9f11b02c474d61fac;hp=f6fb9e618ae7ebd72830e75b84aa536a455c07e8;hb=343a4a216be6e8fa5f1cb0d5c34af0f1fe3c54cd;hpb=f367a00b0a47e22c96cacccc1ffb4934746629cb 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: