Repository 'tables_arithmetic_operations'
hg clone https://toolshed.g2.bx.psu.edu/repos/devteam/tables_arithmetic_operations

Changeset 1:2e9f3b6ebfbc (2017-06-22)
Previous changeset 0:82fa5062d611 (2014-04-01)
Commit message:
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/gops/tables_arithmetic_operations commit cae3e05d02e60f595bb8b6d77a84f030e9bd1689
modified:
tables_arithmetic_operations.xml
b
diff -r 82fa5062d611 -r 2e9f3b6ebfbc tables_arithmetic_operations.xml
--- a/tables_arithmetic_operations.xml Tue Apr 01 10:48:45 2014 -0400
+++ b/tables_arithmetic_operations.xml Thu Jun 22 18:53:29 2017 -0400
[
@@ -1,60 +1,55 @@
-<tool id="tables_arithmetic_operations" name="Arithmetic Operations " version="1.0.0">
-  <description>on tables</description>
-  
-  <command interpreter="perl">
-   tables_arithmetic_operations.pl $inputFile1 $inputFile2 $inputArithmeticOperation3 $outputFile1
-  </command>
-
-  <inputs>
-   <param format="tabular" name="inputFile1" type="data" label="Select the first input tabular file"/>
-   <param format="tabular" name="inputFile2" type="data" 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 format="tabular" name="outputFile1"/>
-  </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> 
-
+<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**
@@ -63,11 +58,11 @@
 
 - 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 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: 
+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.
@@ -77,29 +72,26 @@
 
 Let us have the first input file as follows::
 
- 5 4 0
- 10 11 12
- 1 3 1
- 1 2 1
- 2 0 4
-
+   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
+   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>  
-  
+  10   8   4
+  12  16  20
+   2   5   2
+   4   4   6
+   4   4   8
+    ]]></help>
 </tool>