annotate tools/filters/pasteWrapper.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="Paste1" name="Paste">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>two files side by side</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="perl">pasteWrapper.pl $input1 $input2 $delimiter $out_file1</command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <!-- <display>paste $input1 and $input2 using $delimiter as delimiter</display> -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <param format="txt" name="input1" type="data" label="Paste"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <param format="txt" name="input2" type="data" label="and"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <param name="delimiter" type="select" label="Delimit by">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <option value="T">Tab</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <option value="Dt">Dot</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <option value="C">Comma</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <option value="D">Dash</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <option value="U">Underscore</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <option value="P">Pipe</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 <option value="Sp">Space</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <data format="input" name="out_file1" metadata_source="input1">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <change_format>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <when input_dataset="input1" attribute="ext" value="bed" format="interval"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 </change_format>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 </data>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <param name="input1" value="1.bed"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <param name="input2" value="2.bed"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 <param name="delimiter" value="T"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <output name="out_file1" file="eq-paste.dat"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 Paste preserves column assignments of the first dataset.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 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.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 First dataset::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 a 1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 a 2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 a 3
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 Second dataset::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 20
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 30
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 40
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 Pasting them together will produce::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 a 1 20
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 a 2 30
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 a 3 40
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 </tool>