view unfold_column.xml @ 1:43b1f073b693 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 369e40078146d00608d52205bb8cee66ae735b76-dirty
author bgruening
date Tue, 30 Jun 2015 16:23:23 -0400
parents 5314e5d6f040
children 37e1eb05b1b4
line wrap: on
line source

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