view cat.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
children 616efa22d193
line wrap: on
line source

<tool id="tp_cat" name="Concatenate datasets" version="0.1.0">
    <description>tail-to-head (cat)</description>
    <requirements>
        <requirement type="package" version="8.22">gnu_coreutils</requirement>
    </requirements>
    <version_command>
    <![CDATA[
        cat --version | head -n 1
    ]]>
    </version_command>
    <command>
    <![CDATA[
        cat
            #for $file in $inputs:
                "${file}"
            #end for
        > $out_file1
    ]]></command>
    <inputs>
        <param name="inputs" multiple="true" type="data" format="txt" label="datasets to concatenate"/>
    </inputs>
    <outputs>
        <data name="out_file1" format_source="inputs" metadata_source="inputs"/>
    </outputs>
    <tests>
        <test>
            <param name="inputs" value="sort_result1.bed,sort_result2.bed,sort_result3.bed"/>
            <output name="out_file1" file="cat_result1.txt"/>
        </test>
    </tests>
    <help>
<![CDATA[

.. class:: warningmark

**WARNING:** Be careful not to concatenate datasets of different kinds (e.g., sequences with intervals). This tool does not check if the datasets being concatenated are in the same format.

-----

**What it does**

Concatenates datasets

-----

**Example**

Concatenating Dataset::

    chrX  151087187  151087355  A  0  -
    chrX  151572400  151572481  B  0  +

with Dataset1::

    chr1  151242630  151242955  X  0  +
    chr1  151271715  151271999  Y  0  +
    chr1  151278832  151279227  Z  0  -

and with Dataset2::

    chr2  100000030  200000955  P  0  +
    chr2  100000015  200000999  Q  0  +

will result in the following::

    chrX  151087187  151087355  A  0  -
    chrX  151572400  151572481  B  0  +
    chr1  151242630  151242955  X  0  +
    chr1  151271715  151271999  Y  0  +
    chr1  151278832  151279227  Z  0  -
    chr2  100000030  200000955  P  0  +
    chr2  100000015  200000999  Q  0  +
]]></help>
</tool>