comparison column_maker.xml @ 11:61f9ddbc63ca draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/column_maker commit bbe4c5db82c91ea04ca98a7bae1f62a49961d109
author iuc
date Thu, 19 Mar 2026 17:32:18 +0000
parents aff5135563c6
children
comparison
equal deleted inserted replaced
10:aff5135563c6 11:61f9ddbc63ca
1 <tool id="Add_a_column1" name="Compute" version="2.1" profile="23.0"> 1 <tool id="Add_a_column1" name="Compute" version="2.1+galaxy0" profile="23.0">
2 <description>on rows</description> 2 <description>on rows</description>
3 <macros> 3 <macros>
4 <xml name="compute_repeat"> 4 <xml name="compute_repeat">
5 <repeat name="expressions" title="Expressions" min="1" default="1"> 5 <repeat name="expressions" title="Expressions" min="1" default="1">
6 <param name="cond" type="text" value="c3-c2" label="Add expression"> 6 <param name="cond" type="text" value="c3-c2" label="Add expression">
40 <command detect_errors="aggressive"><![CDATA[ 40 <command detect_errors="aggressive"><![CDATA[
41 python '$__tool_directory__/column_maker.py' 41 python '$__tool_directory__/column_maker.py'
42 #if str($error_handling.auto_col_types) == 'on': 42 #if str($error_handling.auto_col_types) == 'on':
43 #set $col_types = $input.metadata.column_types 43 #set $col_types = $input.metadata.column_types
44 #else: 44 #else:
45 #set $col_types = ','.join(['str' for t in $input.metadata.column_types.split(',')]) 45 #set $col_types = ','.join(['str' for t in str($input.metadata.column_types).split(',')])
46 #end if 46 #end if
47 --column-types $col_types 47 --column-types $col_types
48 $avoid_scientific_notation 48 $avoid_scientific_notation
49 #if str($ops.header_lines_select) == 'yes': 49 #if str($ops.header_lines_select) == 'yes':
50 --header 50 --header
312 312
313 **Expression rules** 313 **Expression rules**
314 314
315 - Columns are referenced with **c** and a **number**. For example, **c1** refers to the first column of a tab-delimited file 315 - Columns are referenced with **c** and a **number**. For example, **c1** refers to the first column of a tab-delimited file
316 316
317 - Basic arithmetic operations are supported: addition (``+``), subtraction (``-``), multiplication (``*``), division (``/``), modulo (``%``), exponentiation (``**``), floor division (``//``)
318
317 - The following built-in Python functions are available for use in expressions:: 319 - The following built-in Python functions are available for use in expressions::
318 320
319 abs | all | any | ascii | bin | bool | chr | complex | divmod | float | format | hex | int | len | list 321 abs | all | any | ascii | bin | bool | chr | complex | divmod | float | format | hex | int | len | list
320 map | max | min | oct | ord | pow | range | reversed | round | set | sorted | str | sum | type 322 map | max | min | oct | ord | pow | range | reversed | round | set | sorted | str | sum | type
321 323
322 acos | acosh | asin | asinh | atan | atan2 | atanh | cbrt | ceil | comb | copysign | cos | cosh | degrees 324 acos | acosh | asin | asinh | atan | atan2 | atanh | cbrt | ceil | comb | copysign | cos | cosh | degrees
323 dist | erf | erfc | exp | exp2 | expm1 | fabs | factorial | floor | fmod | frexp | fsum | gamma | gcd 325 dist | erf | erfc | exp | exp2 | expm1 | fabs | factorial | floor | fmod | frexp | fsum | gamma | gcd
324 hypot | inf | isclose | isfinite | isinf | isnan | isqrt | ldexp | lgamma | log | log10 | log1p | log2 326 hypot | inf | isclose | isfinite | isinf | isnan | isqrt | ldexp | lgamma | log | log10 | log1p | log2
325 modf | nextafter | perm | pow | prod | remainder | sin | sqrt | tan | tanh | tau | trunc | ulp 327 modf | nextafter | perm | pow | prod | remainder | sin | sqrt | tan | tanh | tau | trunc | ulp
326 328
327 - In addition the numpy function ``format_float_positional`` is available to 329 - In addition the numpy function ``format_float_positional`` is available to