Mercurial > repos > devteam > tables_arithmetic_operations
view tables_arithmetic_operations.xml @ 1:3fde957695f6 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/gops/tables_arithmetic_operations commit cae3e05d02e60f595bb8b6d77a84f030e9bd1689
author | devteam |
---|---|
date | Thu, 22 Jun 2017 18:52:09 -0400 |
parents | 6ff325b36382 |
children |
line wrap: on
line source
<tool id="tables_arithmetic_operations" name="Arithmetic Operations" version="1.0.0"> <description>on tables</description> <requirements> <requirement type="package" version="5.22.2.1">perl</requirement> </requirements> <command><![CDATA[ perl '$__tool_directory__/tables_arithmetic_operations.pl' '$inputFile1' '$inputFile2' $inputArithmeticOperation3 '$outputFile1' ]]></command> <inputs> <param name="inputFile1" type="data" format="tabular" label="Select the first input tabular file"/> <param name="inputFile2" type="data" format="tabular" label="Select the second input tabular file"/> <param name="inputArithmeticOperation3" type="select" label="Choose the arithmetic operation:"> <option value="Addition">Addition</option> <option value="Subtraction">Subtraction</option> <option value="Multiplication">Multiplication</option> <option value="Division">Division</option> </param> </inputs> <outputs> <data name="outputFile1" format="tabular" /> </outputs> <tests> <test> <param name="inputFile1" value="numericalTable1.tabular" /> <param name="inputFile2" value="numericalTable1.tabular" /> <param name="inputArithmeticOperation3" value="Addition" /> <output name="outputFile1" file="table_addition_result.tabular" /> </test> <test> <param name="inputFile1" value="numericalTable1.tabular" /> <param name="inputFile2" value="numericalTable1.tabular" /> <param name="inputArithmeticOperation3" value="Subtraction" /> <output name="outputFile1" file="table_subtraction_result.tabular" /> </test> <test> <param name="inputFile1" value="numericalTable1.tabular" /> <param name="inputFile2" value="numericalTable1.tabular" /> <param name="inputArithmeticOperation3" value="Multiplication" /> <output name="outputFile1" file="table_multiplication_result.tabular" /> </test> <test> <param name="inputFile1" value="numericalTable1.tabular" /> <param name="inputFile2" value="numericalTable1.tabular" /> <param name="inputArithmeticOperation3" value="Division" /> <output name="outputFile1" file="table_division_result.tabular" /> </test> </tests> <help><![CDATA[ .. class:: infomark **What it does** This program implements arithmetic operations on tabular files data. The program takes three inputs: - The first input is a TABULAR format file containing numbers only. - The second input is a TABULAR format file containing numbers only. - The third input is an arithmetic operation: +, -, x, or / for addition, subtraction, multiplication, or division, respectively. - The output file is a TABULAR format file containing the result of implementing the arithmetic operation on both input files. Notes: - The two files must have the same number of columns and the same number of rows. - The output file has the same number of columns and the same number of rows as each of the two input files. - In case of division, none of the values in the second input file could be 0, otherwise the program will stop and report an error. **Example** Let us have the first input file as follows:: 5 4 0 10 11 12 1 3 1 1 2 1 2 0 4 And the second input file as follows:: 5 4 4 2 5 8 1 2 1 3 2 5 2 4 4 Running the program and choosing "Addition" as an arithmetic operation will give the following output:: 10 8 4 12 16 20 2 5 2 4 4 6 4 4 8 ]]></help> </tool>