Mercurial > repos > iuc > map_param_value
annotate map_param_value.xml @ 2:5ac8a4bf7a8d draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
author | iuc |
---|---|
date | Wed, 10 Jan 2024 18:19:21 +0000 |
parents | a01f088d0e5e |
children |
rev | line source |
---|---|
2
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
1 <tool name="Map parameter value" id="map_param_value" version="0.2.0" 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> |
2
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
7 <repeat name="mappings" title="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> |
2
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
58 <option value="data">Dataset</option> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
59 </param> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
60 <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
|
61 <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
|
62 </when> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
63 <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
|
64 <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
|
65 </when> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
66 <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
|
67 <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
|
68 </when> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
69 <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
|
70 <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
|
71 </when> |
2
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
72 <when value="data"> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
73 <expand macro="when_element" type_selection="data"/> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
74 </when> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
75 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
76 <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
|
77 <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
|
78 <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
|
79 <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
|
80 <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
|
81 </param> |
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 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
|
83 <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
|
84 <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
|
85 <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
|
86 </when> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
87 </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
|
88 <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
|
89 <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
|
90 <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
|
91 <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
|
92 <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
|
93 </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
|
94 </inputs> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
95 <outputs> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
96 <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
|
97 <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
|
98 </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 <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
|
100 <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
|
101 </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 <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
|
103 <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
|
104 </output> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
105 <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
|
106 <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
|
107 </output> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
108 </outputs> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
109 <tests> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
110 <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
|
111 <!-- 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
|
112 <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
|
113 <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
|
114 <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
|
115 <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
|
116 <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
|
117 <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
|
118 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
119 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
120 <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
|
121 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
122 <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
|
123 <!-- 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
|
124 <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
|
125 <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
|
126 <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
|
127 <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
|
128 <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
|
129 <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
|
130 </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
|
131 </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
|
132 <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
|
133 </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
|
134 <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
|
135 <!-- 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
|
136 <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
|
137 <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
|
138 <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
|
139 <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
|
140 <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
|
141 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
142 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
143 <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
|
144 </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
|
145 <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
|
146 <!-- 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
|
147 <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
|
148 <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
|
149 <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
|
150 <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
|
151 <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
|
152 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
153 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
154 <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
|
155 <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
|
156 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
157 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
158 <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
|
159 <!-- 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
|
160 <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
|
161 <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
|
162 <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
|
163 <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
|
164 </repeat> |
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> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
166 <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
|
167 <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
|
168 <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
|
169 </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
|
170 <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
|
171 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
172 <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
|
173 <!-- 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
|
174 <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
|
175 <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
|
176 <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
|
177 <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
|
178 <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
|
179 </repeat> |
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> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
181 <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
|
182 <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
|
183 <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
|
184 </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
|
185 <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
|
186 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
187 <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
|
188 <!-- 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
|
189 <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
|
190 <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
|
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="A" /> |
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="B" /> |
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 <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
|
196 <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
|
197 <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
|
198 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
199 </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
|
200 <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
|
201 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
202 <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
|
203 <!-- 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
|
204 <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
|
205 <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
|
206 <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
|
207 <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
|
208 <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
|
209 <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
|
210 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
211 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
212 <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
|
213 <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
|
214 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
215 <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
|
216 <!-- 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
|
217 <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
|
218 <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
|
219 <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
|
220 <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
|
221 <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
|
222 <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
|
223 </repeat> |
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 <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
|
226 <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
|
227 <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
|
228 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
229 <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
|
230 <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
|
231 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
232 <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
|
233 <!-- 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
|
234 <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
|
235 <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
|
236 <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
|
237 <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
|
238 <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
|
239 <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
|
240 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
241 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
242 <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
|
243 <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
|
244 </test> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
245 <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
|
246 <!-- 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
|
247 <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
|
248 <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
|
249 <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
|
250 <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
|
251 <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
|
252 <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
|
253 </repeat> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
254 </conditional> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
255 <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
|
256 <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
|
257 </test> |
2
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
258 <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
|
259 <!-- 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
|
260 <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
|
261 <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
|
262 <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
|
263 <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
|
264 <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
|
265 <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
|
266 </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
|
267 </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
|
268 <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
|
269 <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
|
270 </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
|
271 <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
|
272 <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
|
273 </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
|
274 <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
|
275 <!-- 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
|
276 <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
|
277 <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
|
278 <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
|
279 <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
|
280 <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
|
281 <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
|
282 </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
|
283 </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
|
284 <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
|
285 <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
|
286 </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
|
287 <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
|
288 <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
|
289 </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
|
290 <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
|
291 <!-- 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
|
292 <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
|
293 <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
|
294 <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
|
295 </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
|
296 <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
|
297 <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
|
298 </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
|
299 <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
|
300 <!-- 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
|
301 <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
|
302 <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
|
303 <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
|
304 <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
|
305 <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
|
306 <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
|
307 </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
|
308 </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
|
309 <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
|
310 <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
|
311 </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
|
312 <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
|
313 <!-- 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
|
314 <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
|
315 <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
|
316 <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
|
317 <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
|
318 <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
|
319 <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
|
320 </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
|
321 </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
|
322 <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
|
323 <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
|
324 </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
|
325 <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
|
326 <!-- 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
|
327 <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
|
328 <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
|
329 <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
|
330 <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
|
331 <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
|
332 <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
|
333 </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
|
334 </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
|
335 <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
|
336 <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
|
337 </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
|
338 <!-- 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
|
339 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
|
340 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
|
341 <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
|
342 <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
|
343 <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
|
344 <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
|
345 <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
|
346 </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
|
347 </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
|
348 <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
|
349 </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
|
350 --> |
2
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
351 <!-- two tests (1 wo the optional input and one with the optional input) showing |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
352 how to map a optional input to True/False depending on if the dataset is |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
353 given/not --> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
354 <test expect_num_outputs="1"> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
355 <conditional name="input_param_type"> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
356 <param name="type" value="data" /> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
357 <repeat name="mappings"> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
358 <param name="to" value_json="false" /> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
359 </repeat> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
360 </conditional> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
361 <conditional name="unmapped"> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
362 <param name="on_unmapped" value="default"/> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
363 <param name="default_value" value="true"/> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
364 </conditional> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
365 <param name="output_param_type" value="boolean"/> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
366 <output name="output_param_text" value_json="false" /> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
367 </test> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
368 <test expect_num_outputs="1"> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
369 <conditional name="input_param_type"> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
370 <param name="input_param" value="test.txt" ftype="txt" /> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
371 <param name="type" value="data" /> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
372 <repeat name="mappings"> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
373 <param name="to" value_json="false" /> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
374 </repeat> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
375 </conditional> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
376 <conditional name="unmapped"> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
377 <param name="on_unmapped" value="default"/> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
378 <param name="default_value" value="true"/> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
379 </conditional> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
380 <param name="output_param_type" value="boolean"/> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
381 <output name="output_param_text" value_json="true" /> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
382 </test> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
383 <!-- another test checking of two datasets are the same --> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
384 <test expect_num_outputs="1"> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
385 <conditional name="input_param_type"> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
386 <param name="input_param" value="test.txt" ftype="txt" /> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
387 <param name="type" value="data" /> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
388 <repeat name="mappings"> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
389 <param name="from" value="test.txt" ftype="txt" /> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
390 <param name="to" value_json="true" /> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
391 </repeat> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
392 </conditional> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
393 <param name="output_param_type" value="boolean"/> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
394 <output name="output_param_text" value_json="true" /> |
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
395 </test> |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
396 </tests> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
397 <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
|
398 **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
|
399 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
400 Maps a parameter value to another value. |
2
5ac8a4bf7a8d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 709b05fd21b4adba511917aa49adcb99eabed3e5
iuc
parents:
1
diff
changeset
|
401 This can be used to transform any value (text, integer, float and boolean, dataset) to a different non-dataset value of a different type. |
0
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
402 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
403 **Settings** |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
404 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
405 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
|
406 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
|
407 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
408 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
|
409 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
|
410 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
411 **Examples** |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
412 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
413 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
|
414 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
415 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
|
416 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
417 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
|
418 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
419 .. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
420 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
421 #. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
422 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
423 * 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
|
424 * 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
|
425 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
426 #. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
427 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
428 * 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
|
429 * 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
|
430 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
431 #. |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
432 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
433 * 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
|
434 * 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
|
435 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
436 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
|
437 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
|
438 |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
439 ]]></help> |
43d7b3642a30
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/map_param_value commit 9cbf1d6cb6a59b8b4172d09449aac695ba10687d
iuc
parents:
diff
changeset
|
440 </tool> |