Mercurial > repos > melissacline > ucsc_cancer_browser_stats
changeset 8:f55d3b781adb
check file input ignore bad lines`
author | jingchunzhu@gmail.com |
---|---|
date | Thu, 30 Jul 2015 21:42:15 -0700 |
parents | 14c406f8fca6 |
children | a04e3c59e117 |
files | ttest/stats.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ttest/stats.py Wed Oct 22 18:14:35 2014 -0700 +++ b/ttest/stats.py Thu Jul 30 21:42:15 2015 -0700 @@ -28,6 +28,8 @@ outfile.write("%s\tStatistic\tpValue\tMedian1\tMedian2\tDelta\n" % (headerTokens[0])) for row in genomicFp: tokens = row.rstrip().split("\t") + if len(tokens)!= len(headerTokens): + continue symbol = tokens[0] groupATokens = [tokens[ii] for ii in columnsGroupA] groupBTokens = [tokens[ii] for ii in columnsGroupB]