Mercurial > repos > iuc > pick_value
comparison pick_value.xml @ 1:b19e21af9c52 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/pick_value commit 2d21c3bffadee4551f1a3c71d475a1468dd7e6e2
| author | iuc |
|---|---|
| date | Mon, 15 Jan 2024 14:09:58 +0000 |
| parents | bf793b71559a |
| children |
comparison
equal
deleted
inserted
replaced
| 0:bf793b71559a | 1:b19e21af9c52 |
|---|---|
| 1 <tool name="Pick parameter value" id="pick_value" version="0.1.0" profile="21.01" tool_type="expression"> | 1 <tool name="Pick parameter value" id="pick_value" version="0.2.0" profile="21.01" tool_type="expression"> |
| 2 <macros> | 2 <macros> |
| 3 <xml name="booleans"> | 3 <xml name="booleans"> |
| 4 <repeat name="pick_from" title="Pick from"> | 4 <repeat name="pick_from" title="Pick from"> |
| 5 <param name="value" type="boolean" optional="true" label="Value" /> | 5 <param name="value" type="boolean" optional="true" label="Value" /> |
| 6 </repeat> | 6 </repeat> |
| 144 <filter>style_cond['type_cond']['param_type'] == 'float'</filter> | 144 <filter>style_cond['type_cond']['param_type'] == 'float'</filter> |
| 145 </output> | 145 </output> |
| 146 <output type="boolean" name="boolean_param" from="output"> | 146 <output type="boolean" name="boolean_param" from="output"> |
| 147 <filter>style_cond['type_cond']['param_type'] == 'boolean'</filter> | 147 <filter>style_cond['type_cond']['param_type'] == 'boolean'</filter> |
| 148 </output> | 148 </output> |
| 149 <output type="data" name="data_param" from="output"> | 149 <!-- Galaxy already copies the dataset with all its properties (including format) |
| 150 in exec_after_process. setting the format_source here is in this sense | |
| 151 redundant, but helps the workflow editor to infer the data type | |
| 152 (from the dataset in the first repeat element) --> | |
| 153 <output type="data" name="data_param" from="output" format_source="style_cond|type_cond|pick_from_0|value"> | |
| 150 <filter>style_cond['type_cond']['param_type'] == 'data'</filter> | 154 <filter>style_cond['type_cond']['param_type'] == 'data'</filter> |
| 151 </output> | 155 </output> |
| 152 </outputs> | 156 </outputs> |
| 153 <help> | 157 <help> |
| 154 A "null" value is an empty value, it means some input wasn't specified or some tool produced | 158 A "null" value is an empty value, it means some input wasn't specified or some tool produced |
| 183 </repeat> | 187 </repeat> |
| 184 <repeat name="pick_from"> | 188 <repeat name="pick_from"> |
| 185 <param name="value" value_json="null" /> | 189 <param name="value" value_json="null" /> |
| 186 </repeat> | 190 </repeat> |
| 187 <repeat name="pick_from"> | 191 <repeat name="pick_from"> |
| 188 <param name="value" value="simple_line.txt" /> | 192 <param name="value" value="simple_line.txt" ftype="tsv"/> |
| 189 </repeat> | 193 </repeat> |
| 190 <repeat name="pick_from"> | 194 <repeat name="pick_from"> |
| 191 <param name="value" value="simple_line_alternative.txt" /> | 195 <param name="value" value="simple_line_alternative.txt" ftype="csv" /> |
| 192 </repeat> | 196 </repeat> |
| 193 </conditional> | 197 </conditional> |
| 194 </conditional> | 198 </conditional> |
| 195 <output name="data_param" value="simple_line.txt" /> | 199 <output name="data_param" value="simple_line.txt" ftype="tsv" /> |
| 196 </test> | 200 </test> |
| 197 <test expect_num_outputs="1"> | 201 <test expect_num_outputs="1"> |
| 198 <conditional name="style_cond"> | 202 <conditional name="style_cond"> |
| 199 <param name="pick_style" value="first" /> | 203 <param name="pick_style" value="first" /> |
| 200 <conditional name="type_cond"> | 204 <conditional name="type_cond"> |
| 361 <param name="value" value_json="null" /> | 365 <param name="value" value_json="null" /> |
| 362 </repeat> | 366 </repeat> |
| 363 <repeat name="pick_from"> | 367 <repeat name="pick_from"> |
| 364 <param name="value" value_json="null" /> | 368 <param name="value" value_json="null" /> |
| 365 </repeat> | 369 </repeat> |
| 366 <param name="default_value" value="simple_line.txt" /> | 370 <param name="default_value" value="simple_line.txt" ftype="tsv" /> |
| 367 </conditional> | 371 </conditional> |
| 368 </conditional> | 372 </conditional> |
| 369 <output name="data_param" value="simple_line.txt" /> | 373 <output name="data_param" value="simple_line.txt" ftype="tsv" /> |
| 370 </test> | 374 </test> |
| 375 | |
| 376 <!-- with first_or_default that the default is used if given --> | |
| 377 <test expect_num_outputs="1"> | |
| 378 <conditional name="style_cond"> | |
| 379 <param name="pick_style" value="first_or_default" /> | |
| 380 <conditional name="type_cond"> | |
| 381 <param name="param_type" value="data" /> | |
| 382 <repeat name="pick_from"> | |
| 383 <param name="value" value_json="null" /> | |
| 384 </repeat> | |
| 385 <repeat name="pick_from"> | |
| 386 <param name="value" value="simple_line.txt" ftype="csv" /> | |
| 387 </repeat> | |
| 388 <param name="default_value" value="simple_line_alternative.txt" ftype="tabular" /> | |
| 389 </conditional> | |
| 390 </conditional> | |
| 391 <output name="data_param" value="simple_line.txt" ftype="csv"/> | |
| 392 </test> | |
| 393 | |
| 371 </tests> | 394 </tests> |
| 372 </tool> | 395 </tool> |
| 373 | 396 |
