annotate tables_arithmetic_operations.xml @ 0:82fa5062d611 draft

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