changeset 0:2a28ac9bf843 draft

Uploaded dummy tool
author hackdna
date Wed, 27 Mar 2013 09:55:47 -0400
parents
children 082b292005bb
files dummy_tool.xml
diffstat 1 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dummy_tool.xml	Wed Mar 27 09:55:47 2013 -0400
@@ -0,0 +1,26 @@
+<tool id="dummy_tool" name="Dummy Tool">
+    <description>Sleeps for the specified number of seconds.</description>
+    <inputs>
+        <param name="empty_file" type="data" format="txt, fastq" label="Random file to allow chaining" />
+        <param name="num_seconds" type="select" label="Sleep for how long?">
+			<option value="2">2 seconds</option>
+			<option value="3">3 seconds</option>
+			<option value="5">5 seconds</option>
+			<option value="10">10 seconds</option>
+			<option value="20">20 seconds</option>
+			<option value="30">30 seconds</option>
+			<option value="60">1 minute</option>
+	</param>
+    </inputs>
+    <command interpreter="bash">$script_file</command>
+    <configfiles>
+        <configfile name="script_file">
+			#!/bin/bash
+			sleep $num_seconds
+			echo -n "hello genome" > ${output_file}
+        </configfile>
+    </configfiles>
+    <outputs>
+        <data name="output_file" format="txt"/>
+    </outputs>
+</tool>