Mercurial > repos > iuc > calculate_numeric_param
annotate calculate_numeric_param.xml @ 0:0e586762f97b draft default tip
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
author | iuc |
---|---|
date | Wed, 05 May 2021 15:03:08 +0000 |
parents | |
children |
rev | line source |
---|---|
0
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
1 <tool name="Calculate numeric parameter value" id="calculate_numeric_param" version="0.1.0" profile="19.05" tool_type="expression"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
2 <description>from parameters</description> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
3 <expression type="ecma5.1"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
4 { |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
5 let s = ""; |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
6 for (const repeat of $job.components) { |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
7 s += repeat.param_type.component_value |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
8 s += repeat.arith |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
9 if (repeat.arith == "") { |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
10 break; |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
11 } |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
12 }; |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
13 let e; |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
14 if ($job.output_type == "integer") { |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
15 e = parseInt(eval(s)); |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
16 } else { |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
17 e = eval(s); |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
18 } |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
19 return {'output': e}; |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
20 } |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
21 </expression> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
22 <inputs> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
23 <repeat name="components" min="2"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
24 <conditional name="param_type"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
25 <param name="select_param_type" type="select" label="Choose the type of parameter for this field"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
26 <option value="integer">Integer Parameter</option> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
27 <option value="float">Float Parameter</option> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
28 </param> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
29 <when value="integer"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
30 <param name="component_value" value="" type="integer" label="Enter integer for calculating the parameter"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
31 </when> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
32 <when value="float"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
33 <param name="component_value" value="" type="float" label="Enter float for calculating the parameter"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
34 </when> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
35 </conditional> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
36 <param name='arith' type='select' label='Choose the arithmetic operator to apply'> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
37 <option value="+">Addition (+)</option> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
38 <option value="-">Subtraction (-)</option> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
39 <option value="*">Multiplication (*)</option> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
40 <option value="/">Division (/)</option> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
41 <option value="**">Exponentiation (**)</option> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
42 <option value="%">Modulus (%)</option> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
43 <option value="">None (expression should end here)</option> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
44 </param> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
45 </repeat> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
46 <param name='output_type' type='select' label='Choose whether the output should be an integer or a float.'> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
47 <option value="integer">Integer</option> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
48 <option value="float">Float</option> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
49 </param> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
50 </inputs> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
51 <outputs> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
52 <output type="float" name="float_param" from="output"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
53 <filter>output_type == 'float'</filter> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
54 </output> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
55 <output type="integer" name="integer_param" from="output"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
56 <filter>output_type == 'integer'</filter> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
57 </output> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
58 </outputs> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
59 <tests> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
60 <test> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
61 <repeat name="components"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
62 <conditional name="param_type"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
63 <param name="select_param_type" value="integer"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
64 <param name="component_value" value="1"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
65 </conditional> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
66 <param name="arith" value="+"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
67 </repeat> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
68 <repeat name="components"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
69 <conditional name="param_type"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
70 <param name="select_param_type" value="integer"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
71 <param name="component_value" value="1"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
72 </conditional> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
73 <param name="arith" value=""/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
74 </repeat> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
75 <param name="output_type" value="integer"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
76 <output name="output"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
77 <assert_contents> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
78 <has_line line="2"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
79 </assert_contents> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
80 </output> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
81 </test> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
82 <test> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
83 <repeat name="components"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
84 <conditional name="param_type"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
85 <param name="select_param_type" value="float"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
86 <param name="component_value" value="1.5"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
87 </conditional> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
88 <param name="arith" value="*"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
89 </repeat> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
90 <repeat name="components"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
91 <conditional name="param_type"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
92 <param name="select_param_type" value="float"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
93 <param name="component_value" value="1.5"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
94 </conditional> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
95 <param name="arith" value=""/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
96 </repeat> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
97 <param name="output_type" value="float"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
98 <output name="output"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
99 <assert_contents> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
100 <has_line line="2.25"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
101 </assert_contents> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
102 </output> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
103 </test> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
104 <test> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
105 <repeat name="components"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
106 <conditional name="param_type"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
107 <param name="select_param_type" value="float"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
108 <param name="component_value" value="1.5"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
109 </conditional> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
110 <param name="arith" value="*"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
111 </repeat> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
112 <repeat name="components"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
113 <conditional name="param_type"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
114 <param name="select_param_type" value="float"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
115 <param name="component_value" value="1.5"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
116 </conditional> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
117 <param name="arith" value=""/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
118 </repeat> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
119 <param name="output_type" value="integer"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
120 <output name="output"> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
121 <assert_contents> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
122 <not_has_text text="2.25"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
123 <has_line line="2"/> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
124 </assert_contents> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
125 </output> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
126 </test> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
127 </tests> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
128 <help><![CDATA[ |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
129 This tool calculates an output (integer or float) parameter |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
130 from integer and float input parameters and specified simple |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
131 arithmetic operations (addition, subtraction, multiplication, |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
132 division, exponentiation, and modulus). |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
133 ]]></help> |
0e586762f97b
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/calculate_numeric_param commit b8635afd6cef6704f21f08caf4ffa89e672a96f8"
iuc
parents:
diff
changeset
|
134 </tool> |