annotate fixedValueColumn.xml @ 4:023f0a3760b3 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:32 +0000
parents 745871c0b055
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
1 <tool id="addValue" name="Add column" version="1.0.1" profile="16.04">
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
2 <description>to an existing dataset</description>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
3 <requirements>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
4 <requirement type="package" version="5.26">perl</requirement>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
5 </requirements>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
6 <command>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
7 perl $__tool_directory__/fixedValueColumn.pl
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
8 "${input}"
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
9 "${out_file1}"
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
10 "${exp}"
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
11 "${iterate}"
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
12 </command>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
13 <inputs>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
14 <param name="exp" type="text" value="1" label="Add this value"/>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
15 <param format="tabular" name="input" type="data" label="to Dataset" help="Dataset missing? See TIP below" />
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
16 <param name="iterate" type="select" label="Iterate?">
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
17 <option value="no">NO</option>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
18 <option value="yes">YES</option>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
19 </param>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
20 </inputs>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
21 <outputs>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
22 <data name="out_file1" format_source="input"/>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
23 </outputs>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
24 <tests>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
25 <test>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
26 <param name="exp" value="1"/>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
27 <param name="input" value="1.bed"/>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
28 <param name="iterate" value="no"/>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
29 <output name="out_file1" file="eq-addvalue.dat"/>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
30 </test>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
31 </tests>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
32 <help>
0
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
33
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
34 .. class:: infomark
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
35
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
36 **TIP:** If your data is not TAB delimited, use *Text Manipulation-&gt;Convert*
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
37
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
38 -----
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
39
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
40 **What it does**
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
41
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
42 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
43
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
44 -----
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
45
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
46 **Example**
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
47
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
48 If you original data looks like this::
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
49
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
50 chr1 10 100 geneA
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
51 chr2 200 300 geneB
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
52 chr2 400 500 geneC
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
53
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
54 Typing **+** in the text box will generate::
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
55
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
56 chr1 10 100 geneA +
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
57 chr2 200 300 geneB +
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
58 chr2 400 500 geneC +
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
59
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
60
181dd378275c Uploaded add_value tarball.
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::
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
62
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
63 chr1 10 100 geneA 1
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
64 chr2 200 300 geneB 2
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
65 chr2 400 500 geneC 3
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
66
4
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
67 </help>
023f0a3760b3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/add_value commit 4066016ffafd7918ba9826db4f3c6fb41315e942
devteam
parents: 3
diff changeset
68 </tool>
0
181dd378275c Uploaded add_value tarball.
devteam
parents:
diff changeset
69