annotate hamronize_summarize.xml @ 3:144e435c6483 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
author iuc
date Fri, 05 Aug 2022 12:57:14 +0000
parents 150ffb616b02
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
144e435c6483 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents: 2
diff changeset
1 <tool id="hamronize_summarize" name="hamronize: summarize" version="@TOOL_VERSION@+galaxy2" profile="@PROFILE@">
0
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
2 <description> harmorization reports</description>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
3 <macros>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
4 <import>macros.xml</import>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
5 </macros>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
6 <expand macro="requirements" />
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
7 <expand macro="version_command" />
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
8 <command detect_errors="exit_code"><![CDATA[
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
9 #for $counter, $report in enumerate($reports):
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
10 #if $report.is_of_type('tsv', 'tabular'):
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
11 #set $ext = 'tsv'
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
12 #elif $report.is_of_type('json'):
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
13 #set $ext = 'json'
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
14 #end if
3
144e435c6483 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents: 2
diff changeset
15 ln -s '$report' ./report_${counter}.${ext} &&
0
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
16 #end for
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
17
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
18 hamronize summarize
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
19 --summary_type $summary_type
3
144e435c6483 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents: 2
diff changeset
20 #if $summary_type == "tsv"
0
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
21 --output output.tsv
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
22 #elif $summary_type == "json"
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
23 --output output.json
3
144e435c6483 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents: 2
diff changeset
24 #else
0
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
25 --output output.html
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
26 #end if
3
144e435c6483 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents: 2
diff changeset
27 ./report_*
0
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
28 ]]> </command>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
29
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
30 <inputs>
1
810c308784b2 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b872ea086ebd98be64839e7bbb1ddf7a181943d0"
iuc
parents: 0
diff changeset
31 <param name="reports" type="data" multiple="true" format="tabular,json" label="Report files"/>
0
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
32 <param name="summary_type" type="select" label="Output format" multiple="false">
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
33 <option value="tsv">tsv</option>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
34 <option value="json">json</option>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
35 <option value="interactive">interactive</option>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
36 </param>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
37 </inputs>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
38
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
39 <outputs>
1
810c308784b2 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b872ea086ebd98be64839e7bbb1ddf7a181943d0"
iuc
parents: 0
diff changeset
40 <data format="tabular" name="output_tsv" label="${tool.name} on ${on_string}: Output" from_work_dir="output.tsv">
0
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
41 <filter>summary_type == "tsv"</filter>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
42 </data>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
43 <data format="json" name="output_json" label="${tool.name} on ${on_string}: Output" from_work_dir="output.json">
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
44 <filter>summary_type == "json"</filter>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
45 </data>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
46 <data format="html" name="output_html" label="${tool.name} on ${on_string}: Output" from_work_dir="output.html">
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
47 <filter>summary_type == "interactive"</filter>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
48 </data>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
49 </outputs>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
50 <tests>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
51 <!-- tsv output -->
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
52 <test expect_num_outputs="1">
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
53 <param name="reports" value="hamronized_abricate.tsv,hamronized_abricate.json,hamronized_ariba.tsv,hamronized_ariba.json,hamronized_rgi.tsv,hamronized_rgi.json" />
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
54 <param name="summary_type" value="tsv" />
1
810c308784b2 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b872ea086ebd98be64839e7bbb1ddf7a181943d0"
iuc
parents: 0
diff changeset
55 <output name="output_tsv" ftype="tabular" file="summary.tsv" />
0
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
56 </test>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
57 <!-- json output -->
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
58 <test expect_num_outputs="1">
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
59 <param name="reports" value="hamronized_abricate.tsv,hamronized_abricate.json,hamronized_ariba.tsv,hamronized_ariba.json,hamronized_rgi.tsv,hamronized_rgi.json" />
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
60 <param name="summary_type" value="json" />
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
61 <output name="output_json" ftype="json">
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
62 <assert_contents>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
63 <has_text text="GCF_010120755.1_ASM1012075v1_genomic" />
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
64 <has_text text="H_NS.3000676.BA000007.3.1737690_1738104.5476" />
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
65 <has_text text="NODE_9_length_203843_cov_42.4911_20" />
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
66 </assert_contents>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
67 </output>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
68 </test>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
69 </tests>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
70 <help>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
71 <![CDATA[
3
144e435c6483 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents: 2
diff changeset
72 **What it does**
144e435c6483 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents: 2
diff changeset
73 This tool will take a list of report and create single sorted report in the specified format
144e435c6483 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents: 2
diff changeset
74 just containing the unique entries across input reports. It can handle mixed json and tsv hamronized report formats
144e435c6483 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents: 2
diff changeset
75 **Inputs**
144e435c6483 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents: 2
diff changeset
76 A list of hamronize reports
144e435c6483 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents: 2
diff changeset
77
144e435c6483 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents: 2
diff changeset
78 ]]>
0
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
79 </help>
269955c859d3 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
80 </tool>