comparison sort_rows.xml @ 3:7068d1548234 draft

Uploaded
author bgruening
date Sun, 06 Oct 2013 08:22:36 -0400
parents ec66f9d90ef0
children 56e80527c482
comparison
equal deleted inserted replaced
2:fc862d5bccaf 3:7068d1548234
1 <tool id="sort_rows" name="Sort a row" version="0.0.1"> 1 <tool id="tp_sort_rows" name="Sort a row" version="0.0.1">
2 <description>according to their columns</description> 2 <description>according to their columns</description>
3 <command>python -c 'for line in ["\t".join(sorted(line.strip().split("\t"))) for line in open("$input").readlines() ]: print line' > $outfile</command> 3 <command>python -c 'for line in ["\t".join(sorted(line.strip().split("\t"))) for line in open("$input").readlines() ]: print line' > $outfile</command>
4 <inputs> 4 <inputs>
5 <param format="tabular" name="input" type="data" label="Tabular file that should be sorted"/> 5 <param format="tabular" name="input" type="data" label="Tabular file that should be sorted"/>
6 </inputs> 6 </inputs>