Last active
November 28, 2017 10:49
-
-
Save dbolser-ebi/bbe0fb977a37733395c8ffed5bd20667 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from runstats import Statistics | |
stats = Statistics() | |
i=0 | |
with open("dupes_default_run_scores.tsv") as tsv: | |
next(tsv) | |
for line in tsv: | |
i=i+1 | |
line=line.rstrip() | |
cols=line.split("\t") | |
stats.push(cols[2]) | |
if i%100000 == 0: | |
print '%d %5.0f %7d %9d' % ( | |
stats.minimum(), | |
stats.mean(), | |
stats.maximum(), | |
len(stats) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment