Mercurial > repos > hackdna > dummy_tool
comparison dummy_tool.xml @ 0:2a28ac9bf843 draft
Uploaded dummy tool
| author | hackdna |
|---|---|
| date | Wed, 27 Mar 2013 09:55:47 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:2a28ac9bf843 |
|---|---|
| 1 <tool id="dummy_tool" name="Dummy Tool"> | |
| 2 <description>Sleeps for the specified number of seconds.</description> | |
| 3 <inputs> | |
| 4 <param name="empty_file" type="data" format="txt, fastq" label="Random file to allow chaining" /> | |
| 5 <param name="num_seconds" type="select" label="Sleep for how long?"> | |
| 6 <option value="2">2 seconds</option> | |
| 7 <option value="3">3 seconds</option> | |
| 8 <option value="5">5 seconds</option> | |
| 9 <option value="10">10 seconds</option> | |
| 10 <option value="20">20 seconds</option> | |
| 11 <option value="30">30 seconds</option> | |
| 12 <option value="60">1 minute</option> | |
| 13 </param> | |
| 14 </inputs> | |
| 15 <command interpreter="bash">$script_file</command> | |
| 16 <configfiles> | |
| 17 <configfile name="script_file"> | |
| 18 #!/bin/bash | |
| 19 sleep $num_seconds | |
| 20 echo -n "hello genome" > ${output_file} | |
| 21 </configfile> | |
| 22 </configfiles> | |
| 23 <outputs> | |
| 24 <data name="output_file" format="txt"/> | |
| 25 </outputs> | |
| 26 </tool> |
