view datamash-transpose.xml @ 11:687db8c37dcf default tip

remove leftover datamash.xml from merge
author Assaf Gordon <>
date Sat, 22 Nov 2014 21:17:57 -0500
parents b8e69214bfc6
line wrap: on
line source

<tool id="DatamashTranspose" name="Transpose" version="1.0.6">
  <description>rows/columns in a tabular file</description>

    <requirement type="package" version="1.0.6">datamash</requirement>

    datamash -W transpose &lt; $in_file &gt; $out_file
    <param format="tabular" name="in_file" type="data" label="Select Input Data" help=""/>
    <data format="tabular" name="out_file" />
          <param name="in_file" value="datamash_transpose_input.txt" />
          <output name="out_file" file="datamash_transpose_output.txt" />

.. 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.



This tools transposes (swaps) rows/columns in a tabular input file.



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 .

For more details about supported statistical operations, see Datamash_ website.

.. _Datamash: