Let's go the other way.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5422 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
572b2707f2
commit
be1f6af815
|
|
@ -21,11 +21,11 @@ def recalibrate(fname,hist,out):
|
||||||
denom = sum(hist.values())
|
denom = sum(hist.values())
|
||||||
cumQuals = dict()
|
cumQuals = dict()
|
||||||
for key1 in hist:
|
for key1 in hist:
|
||||||
sumLess = 0
|
sumMore = 1
|
||||||
for key2 in hist:
|
for key2 in hist:
|
||||||
if ( key2 <= key1 ):
|
if ( key2 > key1 ):
|
||||||
sumLess += hist[key2]
|
sumMore += hist[key2]
|
||||||
cumQuals[key1] = int(-10*log10((0.0+sumLess)/denom))
|
cumQuals[key1] = min(int(-10*log10((0.0+sumMore)/denom)),150)
|
||||||
use = parseTDF
|
use = parseTDF
|
||||||
if ( fname.endswith(".wig") ):
|
if ( fname.endswith(".wig") ):
|
||||||
use = parseWiggle
|
use = parseWiggle
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue