view table-union.xml @ 12:15230438f7f5

planemo upload
author jpayne
date Mon, 12 Feb 2018 10:22:47 -0500
parents 3f74684fb2a8
children 1af2524f48b7
line wrap: on
line source
<tool id="table-union" name="Merge tabular datasets" version="0.1.0">
    <description>by combining their rows and unionizing columns</description>
    <requirements>
        <!-- <requirement type="package" version="3.4">python</requirement> -->
    </requirements>
    <command detect_errors="exit_code"><![CDATA[
        python $__tool_directory__/table-union.py 
        #for $table in $tables
            $table
        #end for
        > $combined_table
    ]]></command>
    <inputs>
        <param name="tables" type="data_collection" format="tsv" collection_type="list" />
    </inputs>
    <outputs>
        <data name="combined_table" format="tsv" label="Combined table" />
    </outputs>

    <tests>
        <test>
            <param name="tables">
                <collection type="list">
                    <element name="1" value="dingbat.tsv" />
                    <element name="2" value="loki.tsv" />
                </collection>
            </param>
            <output name="combined_table" value="combined.tsv" />
        </test>
    </tests>
    <help><![CDATA[
        Concatenate a collection of TSV files wile preserving and unionizing headers.
    ]]></help>

    <citations>
    </citations>
</tool>