view column_order_header_sort.xml @ 0:eeca95721b32 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/column_order_header_sort commit d562cc65926c8c95af21467177b253b6ac985cb4
author iuc
date Wed, 12 Apr 2017 17:16:52 -0400
parents
children
line wrap: on
line source

<tool id="column_order_header_sort" name="Sort Column Order" version="0.0.1">
    <description>
        by heading
    </description>
    <requirements>
        <requirement type="package" version="3.6.1">python</requirement>
        <requirement type="package" version="4.1.3">gawk</requirement>
    </requirements>
    <command detect_errors="exit_code"><![CDATA[
        python '$__tool_directory__/column_order_header_sort.py'
        '${input_tabular}'
        '${output_tabular}'
        '${ str($input_tabular.unsanitized.metadata.delimiter).replace( "'", "" ) }'
        '${key_column}'
    ]]>
    </command>
    <inputs>
        <param name="input_tabular" type="data" format="tabular" multiple="False" optional="False" label="Tabular file"/>
        <param name="key_column" type="data_column" data_ref="input_tabular" value="0" optional="True" label="Identifier column" help="This column will be made left-most."/>
    </inputs>
    <outputs>
        <data format="tabular" name="output_tabular"/>
    </outputs>
    <tests>
        <test>
            <param name="input_tabular" value="in_1.tabular" ftype="tabular"/>
            <param name="key_column" value="1"/>
            <output name="output_tabular" file="out_1.tabular" ftype="tabular"/>
        </test>
    </tests>
    <help>
        <![CDATA[
        Reorders a file's columns by sorted value of header fields.
        Specify the optional Identifier column parameter to make a column left-most; generally used for a Key column that should not be sorted within the other columns.
        ]]>
    </help>
    <citations>
    </citations>
</tool>