Files
galaxy/tools/filters/pasteWrapper.xml
T

71 lines
1.9 KiB
XML

<tool id="Paste1" name="Paste" version="1.0.0">
<description>two files side by side</description>
<requirements>
<requirement type="package" version="5.26">perl</requirement>
<requirement type="package" version="8.31">coreutils</requirement>
</requirements>
<command>perl '$__tool_directory__/pasteWrapper.pl' '$input1' '$input2' $delimiter '$out_file1'</command>
<inputs>
<!-- <display>paste $input1 and $input2 using $delimiter as delimiter</display> -->
<param format="txt" name="input1" type="data" label="Paste"/>
<param format="txt" name="input2" type="data" label="and"/>
<param name="delimiter" type="select" label="Delimit by">
<option value="T">Tab</option>
<option value="Dt">Dot</option>
<option value="C">Comma</option>
<option value="D">Dash</option>
<option value="U">Underscore</option>
<option value="P">Pipe</option>
<option value="Sp">Space</option>
</param>
</inputs>
<outputs>
<data format_source="input1" name="out_file1" metadata_source="input1">
<change_format>
<when input="input1" value="bed" format="interval"/>
</change_format>
</data>
</outputs>
<tests>
<test>
<param name="input1" value="1.bed"/>
<param name="input2" value="2.bed"/>
<param name="delimiter" value="T"/>
<output name="out_file1" file="eq-paste.dat"/>
</test>
</tests>
<help>
.. class:: infomark
Paste preserves column assignments of the first dataset.
-----
**What it does**
This tool merges two datasets side by side. If the first (left) dataset contains column assignments such as chromosome, start, end and strand, these will be preserved. However, if you would like to change column assignments, click the pencil icon in the history item.
-----
**Example**
First dataset::
a 1
a 2
a 3
Second dataset::
20
30
40
Pasting them together will produce::
a 1 20
a 2 30
a 3 40
</help>
</tool>