comparison unfold_column.xml @ 0:5314e5d6f040 draft

Imported from capsule None
author bgruening
date Thu, 29 Jan 2015 07:53:17 -0500
parents
children 37e1eb05b1b4
comparison
equal deleted inserted replaced
-1:000000000000 0:5314e5d6f040
1 <tool id="tp_unfold_column_tool" name="Unfold" version="@BASE_VERSION@.0">
2 <description>columns from a table</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <command interpreter="python">
8 <![CDATA[
9 unfold_column.py
10 '${infile}'
11 $column
12 "$delimiter"
13 '${outfile}'
14 ]]>
15 </command>
16 <inputs>
17 <param name="infile" format="tabular" type="data" label="File to unfold" />
18 <param name="column" type="data_column" data_ref="infile" accept_default="true" label="Column to use for unfolding" />
19 <param name="delimiter" type="select" label="Values in column are delimited by">
20 <option value=" ">Whitespace</option>
21 <option value=".">Dot</option>
22 <option value=",">Comma</option>
23 <option value="-">Dash</option>
24 <option value="_">Underscore</option>
25 <option value="|">Pipe</option>
26 </param>
27 </inputs>
28 <outputs>
29 <data name="outfile" format_source="infile" metadata_source="infile" />
30 </outputs>
31 <tests>
32 <test>
33 <param name="infile" value="unfold_column1.tabular" ftype="tabular"/>
34 <param name="delimiter" value=" "/>
35 <param name="column" value="3"/>
36 <output name="outfile" file="unfold_column_result1.tabular" ftype="tabular"/>
37 </test>
38 </tests>
39 <help>
40 <![CDATA[
41 **What it does**
42
43 This tool will unfold one column of your input dataset.
44
45 -----
46
47 Input Example::
48
49 a b 1,2,3,4,5 c
50
51
52 Output Example::
53
54 a b 1 c
55 a b 2 c
56 a b 3 c
57 a b 4 c
58 a b 5 c
59
60 @REFERENCES@
61 ]]>
62 </help>
63 </tool>