root/galaxy-central/tools/filters/pasteWrapper.xml

リビジョン 2, 1.8 KB (コミッタ: hatakeyama, 14 年 前)

import galaxy-central

行番号 
1<tool id="Paste1" name="Paste">
2  <description>two files side by side</description>
3  <command interpreter="perl">pasteWrapper.pl $input1 $input2 $delimiter $out_file1</command>
4  <inputs>
5<!--    <display>paste $input1 and $input2 using $delimiter as delimiter</display> -->
6    <param format="txt" name="input1" type="data" label="Paste"/>
7    <param format="txt" name="input2" type="data" label="and"/>
8    <param name="delimiter" type="select" label="Delimit by">
9      <option value="T">Tab</option>
10      <option value="Dt">Dot</option>
11      <option value="C">Comma</option>
12      <option value="D">Dash</option>
13      <option value="U">Underscore</option>
14      <option value="P">Pipe</option>
15      <option value="Sp">Space</option>
16    </param>
17  </inputs>
18  <outputs>
19    <data format="input" name="out_file1" metadata_source="input1">
20      <change_format>
21        <when input_dataset="input1" attribute="ext" value="bed" format="interval"/>
22      </change_format>
23    </data>
24  </outputs>
25  <tests>
26    <test>
27      <param name="input1" value="1.bed"/>
28      <param name="input2" value="2.bed"/>
29      <param name="delimiter" value="T"/>
30      <output name="out_file1" file="eq-paste.dat"/>
31    </test>
32  </tests>
33  <help>
34
35.. class:: infomark
36
37Paste preserves column assignments of the first dataset.
38
39-----
40
41**What it does**
42
43This tool merges two datasets side by side. If the first (left) query 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.
44
45-----
46
47**Example**
48
49First dataset::
50 
51    a 1
52    a 2
53    a 3
54
55Second dataset::
56
57    20
58    30
59    40
60
61Pasting them together will produce::
62
63    a 1 20
64    a 2 30
65    a 3 40
66
67</help>
68</tool>
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。