Mercurial > repos > devteam > add_value
annotate fixedValueColumn.xml @ 0:787fa5c2c738 draft
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
author | devteam |
---|---|
date | Mon, 09 Nov 2015 11:15:22 -0500 |
parents | |
children | 4c6ec423baae |
rev | line source |
---|---|
0
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
1 <tool id="addValue" name="Add column" version="1.0.0"> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
2 <description>to an existing dataset</description> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
3 <command interpreter="perl">fixedValueColumn.pl "${input}" "${out_file1}" "${exp}" "${iterate}"</command> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
4 <inputs> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
5 <param name="exp" type="text" value="1" label="Add this value"/> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
6 <param format="tabular" name="input" type="data" label="to Dataset" help="Dataset missing? See TIP below" /> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
7 <param name="iterate" type="select" label="Iterate?"> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
8 <option value="no">NO</option> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
9 <option value="yes">YES</option> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
10 </param> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
11 </inputs> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
12 <outputs> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
13 <data format="input" name="out_file1" metadata_source="input"/> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
14 </outputs> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
15 <tests> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
16 <test> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
17 <param name="exp" value="1"/> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
18 <param name="input" value="1.bed"/> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
19 <param name="iterate" value="no"/> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
20 <output name="out_file1" file="eq-addvalue.dat"/> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
21 </test> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
22 </tests> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
23 <help> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
24 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
25 .. class:: infomark |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
26 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
27 **TIP:** If your data is not TAB delimited, use *Text Manipulation->Convert* |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
28 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
29 ----- |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
30 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
31 **What it does** |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
32 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
33 You can enter any value and it will be added as a new column to your dataset |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
34 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
35 ----- |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
36 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
37 **Example** |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
38 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
39 If you original data looks like this:: |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
40 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
41 chr1 10 100 geneA |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
42 chr2 200 300 geneB |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
43 chr2 400 500 geneC |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
44 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
45 Typing **+** in the text box will generate:: |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
46 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
47 chr1 10 100 geneA + |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
48 chr2 200 300 geneB + |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
49 chr2 400 500 geneC + |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
50 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
51 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
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:: |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
53 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
54 chr1 10 100 geneA 1 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
55 chr2 200 300 geneB 2 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
56 chr2 400 500 geneC 3 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
57 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
58 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
59 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
60 </help> |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
61 </tool> |