comparison tables_arithmetic_operations.xml @ 1:2e9f3b6ebfbc 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:53:29 -0400
parents 82fa5062d611
children
comparison
equal deleted inserted replaced
0:82fa5062d611 1:2e9f3b6ebfbc
1 <tool id="tables_arithmetic_operations" name="Arithmetic Operations " version="1.0.0"> 1 <tool id="tables_arithmetic_operations" name="Arithmetic Operations" version="1.0.0">
2 <description>on tables</description> 2 <description>on tables</description>
3 3 <requirements>
4 <command interpreter="perl"> 4 <requirement type="package" version="5.22.2.1">perl</requirement>
5 tables_arithmetic_operations.pl $inputFile1 $inputFile2 $inputArithmeticOperation3 $outputFile1 5 </requirements>
6 </command> 6 <command><![CDATA[
7 7 perl '$__tool_directory__/tables_arithmetic_operations.pl'
8 <inputs> 8 '$inputFile1'
9 <param format="tabular" name="inputFile1" type="data" label="Select the first input tabular file"/> 9 '$inputFile2'
10 <param format="tabular" name="inputFile2" type="data" label="Select the second input tabular file"/> 10 $inputArithmeticOperation3
11 11 '$outputFile1'
12 <param name="inputArithmeticOperation3" type="select" label="Choose the arithmetic operation:"> 12 ]]></command>
13 <option value="Addition">Addition</option> 13 <inputs>
14 <option value="Subtraction">Subtraction</option> 14 <param name="inputFile1" type="data" format="tabular" label="Select the first input tabular file"/>
15 <option value="Multiplication">Multiplication</option> 15 <param name="inputFile2" type="data" format="tabular" label="Select the second input tabular file"/>
16 <option value="Division">Division</option> 16 <param name="inputArithmeticOperation3" type="select" label="Choose the arithmetic operation:">
17 </param> 17 <option value="Addition">Addition</option>
18 </inputs> 18 <option value="Subtraction">Subtraction</option>
19 19 <option value="Multiplication">Multiplication</option>
20 <outputs> 20 <option value="Division">Division</option>
21 <data format="tabular" name="outputFile1"/> 21 </param>
22 </outputs> 22 </inputs>
23 23 <outputs>
24 <tests> 24 <data name="outputFile1" format="tabular" />
25 <test> 25 </outputs>
26 <param name="inputFile1" value="numericalTable1.tabular" /> 26 <tests>
27 <param name="inputFile2" value="numericalTable1.tabular" /> 27 <test>
28 <param name="inputArithmeticOperation3" value="Addition" /> 28 <param name="inputFile1" value="numericalTable1.tabular" />
29 <output name="outputFile1" file="table_addition_result.tabular" /> 29 <param name="inputFile2" value="numericalTable1.tabular" />
30 </test> 30 <param name="inputArithmeticOperation3" value="Addition" />
31 31 <output name="outputFile1" file="table_addition_result.tabular" />
32 <test> 32 </test>
33 <param name="inputFile1" value="numericalTable1.tabular" /> 33 <test>
34 <param name="inputFile2" value="numericalTable1.tabular" /> 34 <param name="inputFile1" value="numericalTable1.tabular" />
35 <param name="inputArithmeticOperation3" value="Subtraction" /> 35 <param name="inputFile2" value="numericalTable1.tabular" />
36 <output name="outputFile1" file="table_subtraction_result.tabular" /> 36 <param name="inputArithmeticOperation3" value="Subtraction" />
37 </test> 37 <output name="outputFile1" file="table_subtraction_result.tabular" />
38 38 </test>
39 <test> 39 <test>
40 <param name="inputFile1" value="numericalTable1.tabular" /> 40 <param name="inputFile1" value="numericalTable1.tabular" />
41 <param name="inputFile2" value="numericalTable1.tabular" /> 41 <param name="inputFile2" value="numericalTable1.tabular" />
42 <param name="inputArithmeticOperation3" value="Multiplication" /> 42 <param name="inputArithmeticOperation3" value="Multiplication" />
43 <output name="outputFile1" file="table_multiplication_result.tabular" /> 43 <output name="outputFile1" file="table_multiplication_result.tabular" />
44 </test> 44 </test>
45 45 <test>
46 <test> 46 <param name="inputFile1" value="numericalTable1.tabular" />
47 <param name="inputFile1" value="numericalTable1.tabular" /> 47 <param name="inputFile2" value="numericalTable1.tabular" />
48 <param name="inputFile2" value="numericalTable1.tabular" /> 48 <param name="inputArithmeticOperation3" value="Division" />
49 <param name="inputArithmeticOperation3" value="Division" /> 49 <output name="outputFile1" file="table_division_result.tabular" />
50 <output name="outputFile1" file="table_division_result.tabular" /> 50 </test>
51 </test> 51 </tests>
52 52 <help><![CDATA[
53 </tests>
54
55
56 <help>
57
58 .. class:: infomark 53 .. class:: infomark
59 54
60 **What it does** 55 **What it does**
61 56
62 This program implements arithmetic operations on tabular files data. The program takes three inputs: 57 This program implements arithmetic operations on tabular files data. The program takes three inputs:
63 58
64 - The first input is a TABULAR format file containing numbers only. 59 - The first input is a TABULAR format file containing numbers only.
65 - The second input is a TABULAR format file containing numbers only. 60 - The second input is a TABULAR format file containing numbers only.
66 - The third input is an arithmetic operation: +, -, x, or / for addition, subtraction, multiplication, or division, respectively. 61 - The third input is an arithmetic operation: +, -, x, or / for addition, subtraction, multiplication, or division, respectively.
67 - The output file is a TABULAR format file containing the result of implementing the arithmetic operation on both input files. 62 - The output file is a TABULAR format file containing the result of implementing the arithmetic operation on both input files.
68 63
69 64
70 Notes: 65 Notes:
71 66
72 - The two files must have the same number of columns and the same number of rows. 67 - The two files must have the same number of columns and the same number of rows.
73 - The output file has the same number of columns and the same number of rows as each of the two input files. 68 - The output file has the same number of columns and the same number of rows as each of the two input files.
74 - 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. 69 - 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.
75 70
76 **Example** 71 **Example**
77 72
78 Let us have the first input file as follows:: 73 Let us have the first input file as follows::
79 74
80 5 4 0 75 5 4 0
81 10 11 12 76 10 11 12
82 1 3 1 77 1 3 1
83 1 2 1 78 1 2 1
84 2 0 4 79 2 0 4
85 80
86 And the second input file as follows:: 81 And the second input file as follows::
87 82
88 5 4 4 83 5 4 4
89 2 5 8 84 2 5 8
90 1 2 1 85 1 2 1
91 3 2 5 86 3 2 5
92 2 4 4 87 2 4 4
93 88
94 Running the program and choosing "Addition" as an arithmetic operation will give the following output:: 89 Running the program and choosing "Addition" as an arithmetic operation will give the following output::
95 90
96 10 8 4 91 10 8 4
97 12 16 20 92 12 16 20
98 2 5 2 93 2 5 2
99 4 4 6 94 4 4 6
100 4 4 8 95 4 4 8
101 96 ]]></help>
102
103 </help>
104
105 </tool> 97 </tool>