mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-08-29 02:26:59 +08:00
TRUNK:This trunk/brunch stuff is VERY confusing. Again: Fix for uniq (count). No more leading spaces
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Filename: uniq.py
|
||||
# Author: Ian N. Schenck
|
||||
# Version: 9/06/2005
|
||||
# Version: 19/12/2005
|
||||
#
|
||||
# This script accepts an input file, an output file, a column
|
||||
# delimiter, and a list of columns. The script then grabs unique
|
||||
@@ -122,8 +122,7 @@ def main():
|
||||
intcolumns = intcolumns[1:]
|
||||
commandline += str(intcolumns[0])
|
||||
|
||||
commandline += " " + inputfile + " | sort | uniq -c | tr \" \" \"\t\" > " + outputfile
|
||||
|
||||
commandline += " " + inputfile + " | sort | uniq -c | sed s/^\ *// | tr \" \" \"\t\" > " + outputfile
|
||||
errorcode, stdout = commands.getstatusoutput(commandline)
|
||||
|
||||
return errorcode
|
||||
|
||||
Reference in New Issue
Block a user