Mercurial > repos > iuc > map_param_value
annotate map_param_value.xml @ 1:a01f088d0e5e draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
author | iuc |
---|---|
date | Wed, 19 Oct 2022 11:37:19 +0000 |
parents | 43d7b3642a30 |
children | 5ac8a4bf7a8d |
rev | line source |
---|---|
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
1 <tool name="Map parameter value" id="map_param_value" version="0.1.1" tool_type="expression" profile="22.01"> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
2 <macros> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
3 <xml name="when_element" tokens="type_selection"> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
4 <param name="input_param" type="@TYPE_SELECTION@" optional="true" label="Value to map"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
5 <sanitizer sanitize="false"/> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
6 </param> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
7 <repeat name="mappings" label="Add value mapping"> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
8 <param name="from" type="@TYPE_SELECTION@" optional="true" label="Map from this value"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
9 <sanitizer sanitize="false"/> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
10 </param> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
11 <param name="to" type="text" optional="true" label="to this value" help="This value must be coercable to the selected output parameter type"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
12 <sanitizer sanitize="false"/> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
13 </param> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
14 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
15 </xml> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
16 </macros> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
17 <expression type="ecma5.1"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
18 <![CDATA[{ |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
19 const source = $job.input_param_type.input_param; |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
20 const mappings = $job.input_param_type.mappings; |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
21 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
22 const coerceToOutput = function(value) { |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
23 switch($job.output_param_type) { |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
24 case "integer": |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
25 return parseInt(value) |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
26 case "float": |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
27 return parseFloat(value) |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
28 case "boolean": |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
29 if (value == "false" || value == "False") { |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
30 return false |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
31 } |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
32 return !!value |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
33 case "text": |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
34 return value |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
35 } |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
36 } |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
37 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
38 for ( var i = 0; i < mappings.length; i++ ) { |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
39 if ( String(mappings[i].from) == String(source) ) { |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
40 return { output: coerceToOutput(mappings[i].to) }; |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
41 } |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
42 } |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
43 if ( $job.unmapped.on_unmapped == "fail" ) { |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
44 return { __error_message: `input_param ${source} not found in mapping values.` }; |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
45 } else if ( $job.unmapped.on_unmapped == "default" ) { |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
46 return { output: coerceToOutput($job.unmapped.default_value) }; |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
47 } |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
48 return { output: coerceToOutput(source) }; |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
49 }]]> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
50 </expression> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
51 <inputs> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
52 <conditional name="input_param_type"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
53 <param name="type" type="select" label="Select type of input parameter to match"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
54 <option value="text" selected="true">Text</option> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
55 <option value="integer">Integer</option> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
56 <option value="float">Float</option> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
57 <option value="boolean">Boolean</option> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
58 </param> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
59 <when value="text"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
60 <expand macro="when_element" type_selection="text"/> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
61 </when> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
62 <when value="integer"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
63 <expand macro="when_element" type_selection="integer"/> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
64 </when> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
65 <when value="float"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
66 <expand macro="when_element" type_selection="float"/> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
67 </when> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
68 <when value="boolean"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
69 <expand macro="when_element" type_selection="boolean"/> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
70 </when> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
71 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
72 <conditional name="unmapped"> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
73 <param name="on_unmapped" type="select" label="Select how to handle unmapped values"> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
74 <option value="input">Use unmodified input parameter value if input parameter value not found in mappings</option> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
75 <option value="fail">Fail if input parameter value not found in mappings</option> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
76 <option value="default">Provide a default value to use if input parameter value not found in mappings</option> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
77 </param> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
78 <when value="input" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
79 <when value="fail" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
80 <when value="default"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
81 <param name="default_value" type="text" label="Use this value if the input parameter value was not found in mappings"/> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
82 </when> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
83 </conditional> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
84 <param name="output_param_type" type="select" label="Select type of parameter to output"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
85 <option value="text">Text</option> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
86 <option value="integer">Integer</option> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
87 <option value="float">Float</option> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
88 <option value="boolean">Boolean</option> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
89 </param> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
90 </inputs> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
91 <outputs> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
92 <output type="text" name="output_param_text" from="output"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
93 <filter>output_param_type == 'text'</filter> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
94 </output> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
95 <output type="integer" name="output_param_integer" from="output"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
96 <filter>output_param_type == 'integer'</filter> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
97 </output> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
98 <output type="float" name="output_param_float" from="output"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
99 <filter>output_param_type == 'float'</filter> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
100 </output> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
101 <output type="boolean" name="output_param_boolean" from="output"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
102 <filter>output_param_type == 'boolean'</filter> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
103 </output> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
104 </outputs> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
105 <tests> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
106 <test expect_num_outputs="1"> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
107 <!-- map string A to string B --> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
108 <conditional name="input_param_type"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
109 <param name="type" value="text"/> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
110 <param name="input_param" value="A" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
111 <repeat name="mappings"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
112 <param name="from" value="A" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
113 <param name="to" value="B" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
114 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
115 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
116 <output name="output_param_text" value_json=""B"" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
117 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
118 <test expect_num_outputs="1"> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
119 <!-- test that mapping works in the presence of usually sanitized characters --> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
120 <conditional name="input_param_type"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
121 <param name="type" value="text"/> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
122 <param name="input_param" value="echo $abc > 1" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
123 <repeat name="mappings"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
124 <param name="from" value="echo $abc > 1" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
125 <param name="to" value="echo $abc > 2" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
126 </repeat> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
127 </conditional> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
128 <output name="output_param_text" value_json=""echo $abc > 2"" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
129 </test> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
130 <test expect_num_outputs="1"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
131 <!-- keep unmodified input if no match in mapping values --> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
132 <conditional name="input_param_type"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
133 <param name="input_param" value="C" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
134 <repeat name="mappings"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
135 <param name="from" value="A" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
136 <param name="to" value="B" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
137 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
138 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
139 <output name="output_param_text" value_json=""C"" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
140 </test> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
141 <test expect_failure="true"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
142 <!-- fail job if no mapping found and on_unmapped is set to fail --> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
143 <conditional name="input_param_type"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
144 <param name="input_param" value="C" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
145 <repeat name="mappings"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
146 <param name="from" value="A" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
147 <param name="to" value="B" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
148 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
149 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
150 <conditional name="unmapped"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
151 <param name="on_unmapped" value="fail"/> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
152 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
153 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
154 <test expect_num_outputs="1"> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
155 <!-- map unspecified option text to string default via unmapped default value --> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
156 <conditional name="input_param_type"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
157 <repeat name="mappings"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
158 <param name="from" value="A" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
159 <param name="to" value="B" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
160 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
161 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
162 <conditional name="unmapped"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
163 <param name="on_unmapped" value="default"/> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
164 <param name="default_value" value="default"/> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
165 </conditional> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
166 <output name="output_param_text" value_json=""default"" /> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
167 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
168 <test expect_num_outputs="1"> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
169 <!-- map string C to string X via default value --> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
170 <conditional name="input_param_type"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
171 <param name="input_param" value="C" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
172 <repeat name="mappings"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
173 <param name="from" value="A" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
174 <param name="to" value="B" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
175 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
176 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
177 <conditional name="unmapped"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
178 <param name="on_unmapped" value="default"/> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
179 <param name="default_value" value="X"/> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
180 </conditional> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
181 <output name="output_param_text" value_json=""X"" /> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
182 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
183 <test expect_num_outputs="1"> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
184 <!-- map string C to string D in presence of multiple mappings --> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
185 <conditional name="input_param_type"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
186 <param name="input_param" value="C" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
187 <repeat name="mappings"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
188 <param name="from" value="A" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
189 <param name="to" value="B" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
190 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
191 <repeat name="mappings"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
192 <param name="from" value="C" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
193 <param name="to" value="D" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
194 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
195 </conditional> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
196 <output name="output_param_text" value_json=""D"" /> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
197 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
198 <test expect_num_outputs="1"> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
199 <!-- map integer 42 to integer true value --> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
200 <conditional name="input_param_type"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
201 <param name="type" value="integer" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
202 <param name="input_param" value="42" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
203 <repeat name="mappings"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
204 <param name="from" value="42" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
205 <param name="to" value="true" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
206 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
207 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
208 <param name="output_param_type" value="boolean"/> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
209 <output name="output_param_boolean" value_json="true" /> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
210 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
211 <test expect_num_outputs="1"> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
212 <!-- map float 1.2 to boolean false via unmapped default value --> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
213 <conditional name="input_param_type"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
214 <param name="type" value="float" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
215 <param name="input_param" value="1.2" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
216 <repeat name="mappings"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
217 <param name="from" value="42" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
218 <param name="to" value="true" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
219 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
220 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
221 <conditional name="unmapped"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
222 <param name="on_unmapped" value="default"/> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
223 <param name="default_value" value="False"/> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
224 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
225 <param name="output_param_type" value="boolean"/> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
226 <output name="output_param_boolean" value_json="false" /> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
227 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
228 <test expect_num_outputs="1"> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
229 <!-- map integer 1 to float 1.1 --> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
230 <conditional name="input_param_type"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
231 <param name="type" value="integer" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
232 <param name="input_param" value="1" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
233 <repeat name="mappings"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
234 <param name="from" value="1" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
235 <param name="to" value="1.1" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
236 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
237 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
238 <param name="output_param_type" value="float"/> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
239 <output name="output_param_float" value_json="1.1" /> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
240 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
241 <test expect_num_outputs="1"> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
242 <!-- map string A to integer 2 --> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
243 <conditional name="input_param_type"> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
244 <param name="type" value="text" /> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
245 <param name="input_param" value="A" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
246 <repeat name="mappings"> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
247 <param name="from" value="A" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
248 <param name="to" value="2" /> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
249 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
250 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
251 <param name="output_param_type" value="integer"/> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
252 <output name="output_param_integer" value_json="2" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
253 </test> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
254 <test expect_num_outputs="1">A |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
255 <!-- map string False to boolean false --> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
256 <conditional name="input_param_type"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
257 <param name="type" value="text" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
258 <param name="input_param" value="False" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
259 <repeat name="mappings"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
260 <param name="from" value="False" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
261 <param name="to" value="false" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
262 </repeat> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
263 </conditional> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
264 <conditional name="unmapped"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
265 <param name="on_unmapped" value="fail"/> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
266 </conditional> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
267 <param name="output_param_type" value="boolean"/> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
268 <output name="output_param_boolean" value_json="false" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
269 </test> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
270 <test expect_num_outputs="1"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
271 <!-- map boolean false to boolean true --> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
272 <conditional name="input_param_type"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
273 <param name="type" value="boolean" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
274 <param name="input_param" value="false" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
275 <repeat name="mappings"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
276 <param name="from" value="false" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
277 <param name="to" value="true" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
278 </repeat> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
279 </conditional> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
280 <conditional name="unmapped"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
281 <param name="on_unmapped" value="fail"/> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
282 </conditional> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
283 <param name="output_param_type" value="boolean"/> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
284 <output name="output_param_boolean" value_json="true" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
285 </test> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
286 <test expect_num_outputs="1"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
287 <!-- map integer 0 to boolean false via default value coercion --> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
288 <conditional name="input_param_type"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
289 <param name="type" value="integer" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
290 <param name="input_param" value="0" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
291 </conditional> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
292 <param name="output_param_type" value="boolean"/> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
293 <output name="output_param_boolean" value_json="false" /> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
294 </test> |
1
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
295 <test expect_num_outputs="1"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
296 <!-- map null text value to boolean true --> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
297 <conditional name="input_param_type"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
298 <param name="type" value="text" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
299 <param name="input_param" value_json="null" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
300 <repeat name="mappings"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
301 <param name="from" value_json="null" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
302 <param name="to" value="true" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
303 </repeat> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
304 </conditional> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
305 <param name="output_param_type" value="boolean"/> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
306 <output name="output_param_boolean" value_json="true" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
307 </test> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
308 <test expect_num_outputs="1" doc="map null integer value to boolean true"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
309 <!-- map null integer value to boolean true --> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
310 <conditional name="input_param_type"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
311 <param name="type" value="integer" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
312 <param name="input_param" value_json="null" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
313 <repeat name="mappings"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
314 <param name="from" value_json="null" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
315 <param name="to" value="true" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
316 </repeat> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
317 </conditional> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
318 <param name="output_param_type" value="boolean"/> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
319 <output name="output_param_boolean" value_json="true" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
320 </test> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
321 <test expect_num_outputs="1"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
322 <!-- map integer value to null text --> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
323 <conditional name="input_param_type"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
324 <param name="type" value="integer" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
325 <param name="input_param" value="1" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
326 <repeat name="mappings"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
327 <param name="from" value="1" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
328 <param name="to" value_json="null" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
329 </repeat> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
330 </conditional> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
331 <param name="output_param_type" value="text"/> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
332 <output name="output_param_text" value_json="null" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
333 </test> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
334 <!-- Old Galaxy issue, optional unset text input still recorded as "" |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
335 We could work around this with a conditional, but no usecase yet |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
336 and we should better fix this in Galaxy |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
337 <test expect_num_outputs="1"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
338 <conditional name="input_param_type"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
339 <param name="input_param" value="A" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
340 <repeat name="mappings"> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
341 <param name="from" value="A" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
342 </repeat> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
343 </conditional> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
344 <output name="output_param_text" value_json="null" /> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
345 </test> |
a01f088d0e5e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 49eab9a9d601cccd50401e5a0221264b5681b64d
iuc
parents:
0
diff
changeset
|
346 --> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
347 </tests> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
348 <help><![CDATA[ |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
349 **What it does** |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
350 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
351 Maps a parameter value to another value. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
352 This can be used to transform any non-data value (text, integer, float and boolean) to a different value of a different type. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
353 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
354 **Settings** |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
355 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
356 If the value is not found in the mapping the unmodified value is returned by default. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
357 Select ``Fail if input parameter value not found in mappings`` if you wish the job to fail if an input could not be mapped. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
358 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
359 Select ``Provide a default value to use if input parameter value not found in mappings`` to provide a default value to use in case the input parameter value could not be mapped. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
360 Select the proper input and output parameter types based on your workflow input and output connections. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
361 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
362 **Examples** |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
363 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
364 You want a user to select from 3 simple options in a workflow, e.g. ``low``, ``medium``, ``high``, which correspond to distinct integer values. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
365 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
366 Turn ``Map this parameter value to a different value`` into a a connectable workflow input by clicking on "Add connection to module". |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
367 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
368 Set the input parameter type to ``Text``, and add 3 mappings: |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
369 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
370 .. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
371 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
372 #. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
373 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
374 * Map from this value: ``low`` |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
375 * to this value: ``1`` |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
376 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
377 #. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
378 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
379 * Map from this value: ``medium`` |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
380 * to this value: ``2`` |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
381 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
382 #. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
383 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
384 * Map from this value: ``high`` |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
385 * to this value: ``3`` |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
386 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
387 Set ``Select type of parameter to output`` to ``Integer``. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
388 You can now connect the output to any connectable Integer input in your workflow. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
389 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
390 ]]></help> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
391 </tool> |