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:
shiftDict = {}
chromosomeList = getChromosomeListToProcess(hitRDS, controlRDS, doControl)
for chromosome in chromosomeList:
+ #TODO: QForAli -Really? Use first chr shift value for all of them
if regionFinder.shiftValue == "learn":
learnShift(regionFinder, hitRDS, chromosome, logfilename, outfilename, outfile, useMulti, doControl, controlRDS, combine5p)
if __name__ == "__main__":
- main(sys.argv)
+ main(sys.argv)
\ No newline at end of file