view tools/mytools/collapseTab.xml @ 1:cdcb0ce84a1b

author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
line wrap: on
line source

<tool id="collapseTab" name="collapse tabular">
  <command interpreter="python"> $input $key $max > $outfile </command>
    <param name="input" format="tabular" type="data" label="Original file"/>
    <param name="key" size="10" type="text" value="1,2,3" label="key column(s)" help="columns to define unique rows" />
    <param name="max" size="10" type="text" value="5" label="for lines with identical key, keep the one with max value in this column" help="need to be numeric" />
    <data format="input" name="outfile" />

**What it does**

Similar to 'Group' but returns the entire line.