Skip to content

Instantly share code, notes, and snippets.

@dbolser-ebi
Last active November 28, 2017 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbolser-ebi/bbe0fb977a37733395c8ffed5bd20667 to your computer and use it in GitHub Desktop.
Save dbolser-ebi/bbe0fb977a37733395c8ffed5bd20667 to your computer and use it in GitHub Desktop.
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