annotate tools/filters/fixedValueColumn.xml @ 1:cdcb0ce84a1b

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="addValue" name="Add column">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>to an existing dataset</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="perl">fixedValueColumn.pl $input $out_file1 "$exp" $iterate</command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <param name="exp" size="20" type="text" value="1" label="Add this value"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <param format="tabular" name="input" type="data" label="to Dataset" help="Dataset missing? See TIP below" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <param name="iterate" type="select" label="Iterate?">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <option value="no">NO</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <option value="yes">YES</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <data format="input" name="out_file1" metadata_source="input"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <param name="exp" value="1"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <param name="input" value="1.bed"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <param name="iterate" value="no"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <output name="out_file1" file="eq-addvalue.dat"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 **TIP:** If your data is not TAB delimited, use *Text Manipulation-&gt;Convert*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 You can enter any value and it will be added as a new column to your dataset
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 If you original data looks like this::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 chr1 10 100 geneA
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 chr2 200 300 geneB
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 chr2 400 500 geneC
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 Typing **+** in the text box will generate::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 chr1 10 100 geneA +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 chr2 200 300 geneB +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 chr2 400 500 geneC +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 You can also add line numbers by selecting **Iterate: YES**. In this case if you enter **1** in the text box you will get::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 chr1 10 100 geneA 1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 chr2 200 300 geneB 2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 chr2 400 500 geneC 3
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 </tool>