Files
galaxy/test/functional/tools/expression_log_line_count.xml
T
John Chilton ee078d315c Fix expression tool type parsing and docs.
Thanks to @martenson for the catch.
2019-03-20 16:57:38 -04:00

15 lines
538 B
XML

<tool name="expression_log_line_count" id="expression_log_line_count"
version="0.1.0" tool_type="expression">
<description>Log Lines</description>
<expression type="ecma5.1">
{return {'output': Math.max(Math.round(Math.log(parseInt($job.input1.metadata.data_lines))), 1)};}
</expression>
<inputs>
<param type="data" label="Input file to count lines of." name="input1" />
</inputs>
<outputs>
<output type="integer" name="out1" from="output" />
</outputs>
<help></help>
</tool>