Mercurial > repos > xuebing > sharplabtool
view tools/filters/pasteWrapper.xml @ 2:c2a356708570
Uploaded
author | xuebing |
---|---|
date | Fri, 09 Mar 2012 19:45:42 -0500 |
parents | 9071e359b9a3 |
children |
line wrap: on
line source
<tool id="Paste1" name="Paste"> <description>two files side by side</description> <command interpreter="perl">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="input" name="out_file1" metadata_source="input1"> <change_format> <when input_dataset="input1" attribute="ext" 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>