PageRenderTime 12ms CodeModel.GetById 6ms app.highlight 5ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/filters/pasteWrapper.xml

https://bitbucket.org/ialbert/galaxy-genetrack
XML | 67 lines | 52 code | 14 blank | 1 comment | 0 complexity | 48a090aa1882a59d72e0151d30ec66db MD5 | raw file
 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    </param>
16  </inputs>
17  <outputs>
18    <data format="input" name="out_file1" metadata_source="input1">
19      <change_format>
20        <when input_dataset="input1" attribute="ext" value="bed" format="interval"/>
21      </change_format>
22    </data>
23  </outputs>
24  <tests>
25    <test>
26      <param name="input1" value="1.bed"/>
27      <param name="input2" value="2.bed"/>
28      <param name="delimiter" value="T"/>
29      <output name="out_file1" file="eq-paste.dat"/>
30    </test>
31  </tests>
32  <help>
33
34.. class:: infomark
35
36Paste preserves column assignments of the first dataset
37
38-----
39
40**What it does**
41
42This 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.
43
44-----
45
46**Example**
47
48First dataset::
49  
50    a 1
51    a 2
52    a 3
53
54Second dataset::
55
56    20
57    30
58    40
59
60Pasting them together will produce::
61
62    a 1 20
63    a 2 30
64    a 3 40
65
66</help>
67</tool>