Mercurial > repos > agordon > datamash_wrapper
comparison datamash-transpose.xml @ 8:b8e69214bfc6
add 'datamash-transpose' tool
author | Assaf Gordon <agordon@wi.mit.edu> |
---|---|
date | Sat, 22 Nov 2014 20:40:03 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
7:48bbe512639e | 8:b8e69214bfc6 |
---|---|
1 <tool id="DatamashTranspose" name="Transpose" version="1.0.6"> | |
2 <description>rows/columns in a tabular file</description> | |
3 | |
4 <requirements> | |
5 <requirement type="package" version="1.0.6">datamash</requirement> | |
6 </requirements> | |
7 | |
8 <command> | |
9 datamash -W transpose < $in_file > $out_file | |
10 </command> | |
11 <inputs> | |
12 <param format="tabular" name="in_file" type="data" label="Select Input Data" help=""/> | |
13 </inputs> | |
14 <outputs> | |
15 <data format="tabular" name="out_file" /> | |
16 </outputs> | |
17 <tests> | |
18 <test> | |
19 <param name="in_file" value="datamash_transpose_input.txt" /> | |
20 <output name="out_file" file="datamash_transpose_output.txt" /> | |
21 </test> | |
22 </tests> | |
23 <help> | |
24 | |
25 .. class:: infomark | |
26 | |
27 **TIP:** Input data must be TAB delimited. If the desired dataset does not appear in the input list, use *Text Manipulation->Convert* to convert it to **Tabular** type. | |
28 | |
29 ----- | |
30 | |
31 **Syntax** | |
32 | |
33 This tools transposes (swaps) rows/columns in a tabular input file. | |
34 | |
35 ----- | |
36 | |
37 **Example** | |
38 | |
39 Input file:: | |
40 | |
41 Genes NOX1 DcP HH | |
42 Sample A1 A2 B3 | |
43 Counts 514 542 490 | |
44 | |
45 Output file:: | |
46 | |
47 Genes Sample Counts | |
48 NOX1 A1 514 | |
49 DcP A2 542 | |
50 HH B3 490 | |
51 | |
52 | |
53 ----- | |
54 | |
55 **GNU Datamash** is a Free and Open Source Software, see more details on the Datamash_ Website. | |
56 | |
57 **GNU Datamash** is also available as a command-line program, see http://www.gnu.org/software/datamash/download/ . | |
58 | |
59 For more details about supported statistical operations, see Datamash_ website. | |
60 | |
61 .. _Datamash: http://www.gnu.org/software/datamash/ | |
62 | |
63 </help> | |
64 </tool> |