Repository 'tab_collapse'
hg clone https://toolshed.g2.bx.psu.edu/repos/xuebing/tab_collapse

Changeset 0:8c992303067a (2012-03-31)
Next changeset 1:7ae45c21ef71 (2012-03-31)
Commit message:
Uploaded
added:
tab_collapse.xml
b
diff -r 000000000000 -r 8c992303067a tab_collapse.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tab_collapse.xml Sat Mar 31 14:11:12 2012 -0400
b
@@ -0,0 +1,19 @@
+<tool id="tab_collapse" name="tab_collapse">
+  <description>collapse tabular files</description>
+  <command interpreter="python">tab_collapse.py $input $key $max > $outfile </command>
+  <inputs>
+    <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" />
+    </inputs>
+  <outputs>
+    <data format="input" name="outfile" />
+  </outputs>
+  <help>
+
+**What it does**
+
+Similar to 'Group' but returns the entire line.  
+
+  </help>
+</tool>