3
|
1 <tool id="addTwoNumbers" name="Add Two Numbers" version="1.10.0">
|
|
2 <description>Add two numbers</description>
|
|
3 <command interpreter="Rscript --vanilla">addTwoNumbers.R
|
|
4 #if str($number1).strip() != "":
|
|
5 --number1="$number1"
|
|
6 #end if
|
|
7 #if str($number2).strip() != "":
|
|
8 --number2="$number2"
|
|
9 #end if
|
|
10 #if str($sum).strip() != "":
|
|
11 --sum="$sum"
|
|
12 #end if
|
|
13
|
|
14 2>&1</command>
|
|
15 <inputs>
|
|
16 <param optional="false" name="number1" type="float" value="" help="The first number to add." label="[required] Number1">
|
|
17 <validator type="empty_field" message="This field is required."/>
|
|
18 </param>
|
|
19 <param optional="false" name="number2" type="float" value="" help="The second number to add." label="[required] Number2">
|
|
20 <validator type="empty_field" message="This field is required."/>
|
|
21 </param>
|
|
22 </inputs>
|
|
23 <outputs>
|
|
24 <data format="txt" name="sum" label="sum.txt"/>
|
|
25 </outputs>
|
|
26 <help>
|
|
27 **Description**
|
|
28
|
|
29 An example function that can be made into a Galaxy tool. Takes
|
|
30 two numbers, adds them, and returns a file containing the result.
|
|
31 </help>
|
|
32 </tool> |