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