[hg] galaxy 1538: Fix for histogram tool when input dataset is e...

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[hg] galaxy 1538: Fix for histogram tool when input dataset is e...

Greg Von Kuster
details:   http://www.bx.psu.edu/hg/galaxy/rev/f9431ad593b4
changeset: 1538:f9431ad593b4
user:      Greg Von Kuster <[hidden email]>
date:      Wed Oct 01 10:17:58 2008 -0400
description:
Fix for histogram tool when input dataset is empty.

1 file(s) affected in this change:

tools/stats/gsummary.py

diffs (11 lines):

diff -r 1dbd88fb9e57 -r f9431ad593b4 tools/stats/gsummary.py
--- a/tools/stats/gsummary.py Tue Sep 30 16:40:42 2008 -0400
+++ b/tools/stats/gsummary.py Wed Oct 01 10:17:58 2008 -0400
@@ -57,6 +57,7 @@
     tmp_file.write( "%s\n" % hdr_str )
     skipped_lines = 0
     first_invalid_line = 0
+    i = 0
     for i, line in enumerate( file( datafile ) ):
         line = line.rstrip( '\r\n' )
         if line and not line.startswith( '#' ):