Commits

Anonymous committed 57bd06b Merge

Merged in joachimjacob/galaxy-central-subtract_query_change (pull request #111)

Adjusted subtract_query.py to accomodate for empty fields at end of lines.

  • Participants
  • Parent commits 14733d2, b8ead26

Comments (0)

Files changed (1)

File tools/new_operations/subtract_query.py

                 try:
                     line = line.split('\t')
                     line = '\t'.join([line[j] for j in range(begin_col-1, end_col)])
+                    # removing empty fields, we do not compare empty fields at the end of a line.
+                    line = line.rstrip()
                     lines.add( line )
                 except: pass
             else:
+                line = line.rstrip()
                 lines.add( line )
     if i: return (i+1, lines)
     else: return (i, lines)