view addTwoNumbers.xml @ 3:3d7aaffea9f8 default tip

commit test2
author ana0gramg+galaxytd@gmail.com
date Wed, 19 Nov 2014 13:14:01 +0900
parents
children
line wrap: on
line source

<tool id="addTwoNumbers" name="Add Two Numbers" version="1.10.0">
  <description>Add two numbers</description>
  <command interpreter="Rscript --vanilla">addTwoNumbers.R
       #if str($number1).strip() != "":
          --number1="$number1"
       #end if
       #if str($number2).strip() != "":
          --number2="$number2"
       #end if
       #if str($sum).strip() != "":
          --sum="$sum"
       #end if

2&gt;&amp;1</command>
  <inputs>
    <param optional="false" name="number1" type="float" value="" help="The first number to add." label="[required] Number1">
      <validator type="empty_field" message="This field is required."/>
    </param>
    <param optional="false" name="number2" type="float" value="" help="The second number to add." label="[required] Number2">
      <validator type="empty_field" message="This field is required."/>
    </param>
  </inputs>
  <outputs>
    <data format="txt" name="sum" label="sum.txt"/>
  </outputs>
  <help>
**Description**

An example function that can be made into a Galaxy tool.  Takes
two numbers, adds them, and returns a file containing the result.
</help>
</tool>