annotate refinery_test_N-1.xml @ 1:b87749d7a24c draft default tip

planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
author refinery-platform
date Thu, 22 Feb 2018 14:14:03 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
1 <?xml version='1.0' encoding='utf-8'?>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
2
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
3 <tool id="refinery_test_N-1" name="Refinery test tool N-1" version="0.1">
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
4 <description>for testing Galaxy workflow execution from Refinery</description>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
5 <command>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
6 <![CDATA[
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
7 ## Argparse expects many values for a single arg to be in the form of: -i INUPT INPUT1 INPUT2 ...
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
8 #set $inputs = " ".join([$input_file.__str__ for $input_file in $input_col])
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
9
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
10 ## Run the test tool with the N inputs from our Dataset Collection
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
11 $__tool_directory__/refinery_test_tool.py -i $inputs -o $output_file -e $exit_code -p $p_fail -s $sleep_time $stdout $stderr $empty_outfile
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
12 ]]>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
13 </command>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
14 <inputs>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
15 <param name="input_col" type="data_collection" collection_type="list" label="Input file"/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
16 <param name="sleep_time" type="integer" label="Sleep (seconds)" value="0" min="0"/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
17 <param name="empty_outfile" type="boolean" label="Produce empty output file" truevalue="--empty_outfile" falsevalue=""/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
18 <param name="p_fail" type="float" label="Probability of failure [0.0, 1.0]" value="0.0" min="0.0" max="1.0"/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
19 <param name="stdout" type="boolean" label="Write to standard out" truevalue="--stdout" falsevalue=""/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
20 <param name="stderr" type="boolean" label="Write to standard error" truevalue="--stderr" falsevalue=""/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
21 <param name="exit_code" type="integer" label="Exit code [0, 255]" value="0" min="0" max="255"/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
22 </inputs>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
23 <outputs>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
24 <data format="txt" name="output_file" label="Refinery Test Tool N-1 Output" />
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
25 </outputs>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
26 <stdio>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
27 <exit_code range="1:" level="fatal" />
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
28 <regex match=".+" source="stdout" level="fatal" description="Tool produced output to standard out" />
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
29 <regex match=".+" source="stderr" level="fatal" description="Tool produced output to standard error" />
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
30 </stdio>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
31 <tests>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
32 <test>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
33 <param name="input_col">
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
34 <collection type="list">
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
35 <element name="1" value="file1.txt"/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
36 <element name="2" value="file2.txt"/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
37 <element name="3" value="file3.txt"/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
38 </collection>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
39 </param>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
40 <param name="sleep_time" type="integer" label="Sleep (seconds)" value="0" min="0"/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
41 <param name="empty_outfile" type="boolean" label="Produce empty output file" truevalue="--empty_outfile" falsevalue=""/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
42 <param name="p_fail" type="float" label="Probability of failure [0.0, 1.0]" value="0.0" min="0.0" max="1.0"/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
43 <param name="stdout" type="boolean" label="Write to standard out" truevalue="--stdout" falsevalue=""/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
44 <param name="stderr" type="boolean" label="Write to standard error" truevalue="--stderr" falsevalue=""/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
45 <param name="exit_code" type="integer" label="Exit code [0, 255]" value="0" min="0" max="255"/>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
46 <output name="output_file">
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
47 <assert_contents>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
48 <has_text text="Contents of File 1" />
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
49 <has_text text="Contents of File 2" />
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
50 <has_text text="Contents of File 3" />
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
51 </assert_contents>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
52 </output>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
53 </test>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
54 </tests>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
55 <help>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
56 .. class:: infomark
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
57
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
58 **Purpose**
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
59
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
60 To test Galaxy workflow execution and monitoring from Refinery.
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
61
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
62 -----
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
63
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
64 .. class:: infomark
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
65
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
66 **Inputs and outputs**
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
67
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
68 This wrapper will accept A Dataset collection list as input and produce a single output file with the concatenated, annotated content of each element in the Dataset Collection.
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
69
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
70 *Note:* You must set the "Probability of failure" parameter to a non-zero value
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
71 for "Write to standard out", "Write to standard error" or "Exit code" to take effect.
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
72 </help>
b87749d7a24c planemo upload commit 4fb0a789956149e5a58f4e370d7fe14f4e8bcf79
refinery-platform
parents:
diff changeset
73 </tool>