annotate fixedValueColumn.xml @ 0:181dd378275c

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