Mercurial > repos > bgruening > text_processing
diff unfold_column.xml @ 0:5314e5d6f040 draft
Imported from capsule None
author | bgruening |
---|---|
date | Thu, 29 Jan 2015 07:53:17 -0500 |
parents | |
children | 37e1eb05b1b4 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/unfold_column.xml Thu Jan 29 07:53:17 2015 -0500 @@ -0,0 +1,63 @@ +<tool id="tp_unfold_column_tool" name="Unfold" version="@BASE_VERSION@.0"> + <description>columns from a table</description> + <macros> + <import>macros.xml</import> + </macros> + <expand macro="requirements" /> + <command interpreter="python"> +<![CDATA[ + unfold_column.py + '${infile}' + $column + "$delimiter" + '${outfile}' +]]> + </command> + <inputs> + <param name="infile" format="tabular" type="data" label="File to unfold" /> + <param name="column" type="data_column" data_ref="infile" accept_default="true" label="Column to use for unfolding" /> + <param name="delimiter" type="select" label="Values in column are delimited by"> + <option value=" ">Whitespace</option> + <option value=".">Dot</option> + <option value=",">Comma</option> + <option value="-">Dash</option> + <option value="_">Underscore</option> + <option value="|">Pipe</option> + </param> + </inputs> + <outputs> + <data name="outfile" format_source="infile" metadata_source="infile" /> + </outputs> + <tests> + <test> + <param name="infile" value="unfold_column1.tabular" ftype="tabular"/> + <param name="delimiter" value=" "/> + <param name="column" value="3"/> + <output name="outfile" file="unfold_column_result1.tabular" ftype="tabular"/> + </test> + </tests> + <help> +<![CDATA[ +**What it does** + +This tool will unfold one column of your input dataset. + +----- + +Input Example:: + + a b 1,2,3,4,5 c + + +Output Example:: + + a b 1 c + a b 2 c + a b 3 c + a b 4 c + a b 5 c + +@REFERENCES@ +]]> + </help> +</tool>