Repository 'datamash_wrapper'
hg clone https://toolshed.g2.bx.psu.edu/repos/agordon/datamash_wrapper

Changeset 8:b8e69214bfc6 (2014-11-22)
Previous changeset 7:48bbe512639e (2014-11-22) Next changeset 9:fecc95defba2 (2014-11-22)
Commit message:
add 'datamash-transpose' tool
added:
datamash-transpose.xml
test-data/datamash_transpose_input.txt
test-data/datamash_transpose_output.txt
b
diff -r 48bbe512639e -r b8e69214bfc6 datamash-transpose.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/datamash-transpose.xml Sat Nov 22 20:40:03 2014 -0500
b
@@ -0,0 +1,64 @@
+<tool id="DatamashTranspose" name="Transpose" version="1.0.6">
+  <description>rows/columns in a tabular file</description>
+
+  <requirements>
+    <requirement type="package" version="1.0.6">datamash</requirement>
+  </requirements>
+
+  <command>
+    datamash -W transpose &lt; $in_file &gt; $out_file
+  </command>
+  <inputs>
+    <param format="tabular" name="in_file" type="data" label="Select Input Data" help=""/>
+  </inputs>
+  <outputs>
+    <data format="tabular" name="out_file" />
+  </outputs>
+  <tests>
+      <test>
+          <param name="in_file" value="datamash_transpose_input.txt" />
+          <output name="out_file" file="datamash_transpose_output.txt" />
+      </test>
+  </tests>
+<help>
+
+.. class:: infomark
+
+**TIP:** Input data must be TAB delimited. If the desired dataset does not appear in the input list, use *Text Manipulation-&gt;Convert* to convert it to **Tabular** type.
+
+-----
+
+**Syntax**
+
+This tools transposes (swaps) rows/columns in a tabular input file.
+
+-----
+
+**Example**
+
+Input file::
+
+    Genes   NOX1  DcP  HH
+    Sample  A1    A2   B3
+    Counts  514   542  490
+
+Output file::
+
+    Genes  Sample  Counts
+    NOX1   A1      514
+    DcP    A2      542
+    HH     B3      490
+
+
+-----
+
+**GNU Datamash** is a Free and Open Source Software, see more details on the Datamash_ Website.
+
+**GNU Datamash** is also available as a command-line program, see http://www.gnu.org/software/datamash/download/ .
+
+For more details about supported statistical operations, see Datamash_ website.
+
+.. _Datamash: http://www.gnu.org/software/datamash/
+
+</help>
+</tool>
b
diff -r 48bbe512639e -r b8e69214bfc6 test-data/datamash_transpose_input.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/datamash_transpose_input.txt Sat Nov 22 20:40:03 2014 -0500
b
@@ -0,0 +1,3 @@
+Genes NOX1 DcP HH
+Sample A1 A2 B3
+Counts 514 542 490
b
diff -r 48bbe512639e -r b8e69214bfc6 test-data/datamash_transpose_output.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/datamash_transpose_output.txt Sat Nov 22 20:40:03 2014 -0500
b
@@ -0,0 +1,4 @@
+Genes Sample Counts
+NOX1 A1 514
+DcP A2 542
+HH B3 490