annotate refinery_test_2-2.xml @ 10:ca9a5aa3a59a draft default tip

Update sample workflows to provide empty output file option.
author hackdna
date Mon, 13 May 2013 18:27:37 -0400
parents ee221004e3b4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
1 <tool id="refinery_test_2-2" name="Refinery test tool 2-2" version="0.1">
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
2 <description>for testing Galaxy workflow execution from Refinery</description>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
3
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
4 <command interpreter="python">
8
ee221004e3b4 Add an option to produce empty files.
hackdna
parents: 4
diff changeset
5 refinery_test_tool.py -i $input_file1 $input_file2 -o $output_file1 $output_file2 -e $exit_code -p $p_fail -s $sleep_time $stdout $stderr $empty_outfile
3
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
6 </command>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
7
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
8 <inputs>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
9 <param name="input_file1" format="txt" type="data" label="Input file A"/>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
10 <param name="input_file2" format="txt" type="data" label="Input file B"/>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
11 <param name="sleep_time" type="integer" label="Sleep (seconds)" value="0" min="0"/>
8
ee221004e3b4 Add an option to produce empty files.
hackdna
parents: 4
diff changeset
12 <param name="empty_outfile" type="boolean" label="Produce empty output files" truevalue="--empty_outfile" falsevalue=""/>
3
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
13 <param name="p_fail" type="float" label="Probability of failure [0.0, 1.0]" value="0.0" min="0.0" max="1.0"/>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
14 <param name="stdout" type="boolean" label="Write to standard out" truevalue="--stdout" falsevalue=""/>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
15 <param name="stderr" type="boolean" label="Write to standard error" truevalue="--stderr" falsevalue=""/>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
16 <param name="exit_code" type="integer" label="Exit code [0, 255]" value="0" min="0" max="255"/>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
17 </inputs>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
18
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
19 <outputs>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
20 <data format="txt" name="output_file1" label="Output file A"/>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
21 <data format="txt" name="output_file2" label="Output file B"/>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
22 </outputs>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
23
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
24 <stdio>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
25 <exit_code range="1:" level="fatal" />
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
26 <regex match=".+" source="stdout" level="fatal" description="Tool produced output to standard out" />
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
27 <regex match=".+" source="stderr" level="fatal" description="Tool produced output to standard error" />
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
28 </stdio>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
29
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
30 <help>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
31
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
32 .. class:: infomark
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
33
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
34 **Purpose**
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
35
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
36 To test Galaxy workflow execution and monitoring from Refinery.
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
37
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
38 -----
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
39
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
40 .. class:: infomark
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
41
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
42 **Inputs and outputs**
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
43
4
ccf0e1ca6fe9 Add 2-6 test tool.
hackdna
parents: 3
diff changeset
44 This wrapper will accept two text files as input and produce two output files
3
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
45 with concatenated content from input files.
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
46
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
47 *Note:* You must set the "Probability of failure" parameter to a non-zero value
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
48 for "Write to standard out", "Write to standard error" or "Exit code" to take effect.
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
49
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
50 </help>
f725e3820fb4 Add 2-1 and 2-2 tools. Code cleanup.
hackdna
parents:
diff changeset
51 </tool>