Mercurial > repos > devteam > add_value
annotate fixedValueColumn.xml @ 1:4c6ec423baae draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
author | devteam |
---|---|
date | Fri, 29 Sep 2023 15:06:25 +0000 |
parents | 787fa5c2c738 |
children |
rev | line source |
---|---|
1
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
1 <tool id="addValue" name="Add column" version="1.0.1" profile="16.04"> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
2 <description>to an existing dataset</description> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
3 <requirements> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
4 <requirement type="package" version="5.26">perl</requirement> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
5 </requirements> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
6 <command> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
7 perl $__tool_directory__/fixedValueColumn.pl |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
8 "${input}" |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
9 "${out_file1}" |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
10 "${exp}" |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
11 "${iterate}" |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
12 </command> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
13 <inputs> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
14 <param name="exp" type="text" value="1" label="Add this value"/> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
15 <param format="tabular" name="input" type="data" label="to Dataset" help="Dataset missing? See TIP below" /> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
16 <param name="iterate" type="select" label="Iterate?"> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
17 <option value="no">NO</option> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
18 <option value="yes">YES</option> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
19 </param> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
20 </inputs> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
21 <outputs> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
22 <data name="out_file1" format_source="input"/> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
23 </outputs> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
24 <tests> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
25 <test> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
26 <param name="exp" value="1"/> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
27 <param name="input" value="1.bed"/> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
28 <param name="iterate" value="no"/> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
29 <output name="out_file1" file="eq-addvalue.dat"/> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
30 </test> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
31 </tests> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
32 <help> |
0
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
33 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
34 .. class:: infomark |
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 **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
|
37 |
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 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
40 **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
|
41 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
42 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
|
43 |
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 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
46 **Example** |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
47 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
48 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
|
49 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
50 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
|
51 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
|
52 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
|
53 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
54 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
|
55 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
56 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
|
57 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
|
58 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
|
59 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
60 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
61 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
|
62 |
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
63 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
|
64 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
|
65 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
|
66 |
1
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
67 </help> |
4c6ec423baae
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents:
0
diff
changeset
|
68 </tool> |
0
787fa5c2c738
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents:
diff
changeset
|
69 |