From e0bf31431c5f8510f29c6da86b10ccf18aeaefa9 Mon Sep 17 00:00:00 2001 From: Guruprasad Anada Date: Mon, 8 Sep 2008 14:54:40 -0400 Subject: [PATCH] Fix for grouping.py: New line character appended when grouping by the last column will now be trimmed. --- tools/stats/grouping.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/stats/grouping.py b/tools/stats/grouping.py index 0ce70293d61..d21a6da6f4e 100644 --- a/tools/stats/grouping.py +++ b/tools/stats/grouping.py @@ -90,6 +90,7 @@ def main(): for ii, line in enumerate( file( tmpfile.name )): if line and not line.startswith( '#' ): + line = line.strip() try: fields = line.split("\t") item = fields[group_col]