annotate hamronize_summarize.xml @ 5:88045b4d5597 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
author iuc
date Tue, 05 Mar 2024 19:47:21 +0000
parents f8bcc852f6b3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
1 <tool id="hamronize_summarize" name="hamronize summarize:" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@">
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
2 <description>Concatenate and summarize AMR detection reports</description>
0
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
3 <macros>
ef76d74a7171 "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>
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
5 </macros>
4
f8bcc852f6b3 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b4943555d76f7e352de3f396c51d3dfb90ed633d
iuc
parents: 3
diff changeset
6 <expand macro="bio_tools"/>
0
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
7 <expand macro="requirements" />
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
8 <expand macro="version_command" />
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
9 <command detect_errors="exit_code"><![CDATA[
5
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
10 #for $counter, $report in enumerate($reports):
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
11 #if $report.is_of_type('tsv', 'tabular'):
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
12 #set $ext = 'tsv'
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
13 #elif $report.is_of_type('json'):
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
14 #set $ext = 'json'
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
15 #end if
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
16 ln -s '$report' 'report_${counter}.${ext}' &&
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
17 #end for
0
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
18
5
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
19 hamronize
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
20 summarize
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
21 --summary_type '$summary_type'
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
22 --output '$output'
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
23 report_*
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
24 ]]></command>
0
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
25 <inputs>
1
a84e3131ae6a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b872ea086ebd98be64839e7bbb1ddf7a181943d0"
iuc
parents: 0
diff changeset
26 <param name="reports" type="data" multiple="true" format="tabular,json" label="Report files"/>
5
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
27 <param argument="--summary_type" type="select" label="Output format" multiple="false">
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
28 <option value="tsv">Tabular</option>
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
29 <option value="json">JSON</option>
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
30 <option value="interactive">Interactive HTML</option>
0
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
31 </param>
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
32 </inputs>
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
33 <outputs>
5
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
34 <data name="output" format="tabular" label="${tool.name} on ${on_string}: Concatenated and summarized reports" from_work_dir="output.tsv">
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
35 <change_format>
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
36 <when input="summary_type" value="json" format="json"/>
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
37 <when input="summary_type" value="interactive" format="html"/>
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
38 </change_format>
0
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
39 </data>
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
40 </outputs>
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
41 <tests>
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
42 <!-- tsv output -->
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
43 <test expect_num_outputs="1">
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
44 <param name="reports" value="hamronized_abricate.tsv,hamronized_abricate.json,hamronized_ariba.tsv,hamronized_ariba.json,hamronized_rgi.tsv,hamronized_rgi.json" />
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
45 <param name="summary_type" value="tsv" />
5
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
46 <output name="output" ftype="tabular">
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
47 <assert_contents>
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
48 <has_n_lines n="155"/>
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
49 <has_n_columns n="37"/>
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
50 <has_text text="GCF_010120755.1_ASM1012075v1_genomic" />
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
51 <has_text text="ariba_report" />
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
52 <has_text text="rgi_report" />
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
53 </assert_contents>
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
54 </output>
0
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
55 </test>
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
56 <!-- json output -->
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
57 <test expect_num_outputs="1">
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
58 <param name="reports" value="hamronized_abricate.tsv,hamronized_abricate.json,hamronized_ariba.tsv,hamronized_ariba.json,hamronized_rgi.tsv,hamronized_rgi.json" />
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
59 <param name="summary_type" value="json" />
5
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
60 <output name="output" ftype="json">
0
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
61 <assert_contents>
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
62 <has_text text="GCF_010120755.1_ASM1012075v1_genomic" />
5
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
63 <has_text text="ariba_report" />
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
64 <has_text text="rgi_report" />
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
65 </assert_contents>
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
66 </output>
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
67 </test>
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
68 <!-- html output -->
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
69 <test expect_num_outputs="1">
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
70 <param name="reports" value="hamronized_abricate.tsv,hamronized_abricate.json,hamronized_ariba.tsv,hamronized_ariba.json,hamronized_rgi.tsv,hamronized_rgi.json" />
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
71 <param name="summary_type" value="interactive" />
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
72 <output name="output" ftype="html">
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
73 <assert_contents>
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
74 <has_text text="GCF_010120755.1_ASM1012075v1_genomic" />
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
75 <has_text text="ariba_report" />
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
76 <has_text text="rgi_report" />
0
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
77 </assert_contents>
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
78 </output>
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
79 </test>
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
80 </tests>
5
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
81 <help><![CDATA[
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
82 **What it does**
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
83
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
84 This tool will take a list of report and create single sorted report in the specified format
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
85 just containing the unique entries across input reports. It can handle mixed json and tsv hamronized report formats
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
86
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
87 **Inputs**
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
88 A list of hamronize reports
88045b4d5597 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b49fc153425676a82e77dec090676403112bcbe6
iuc
parents: 4
diff changeset
89 ]]></help>
4
f8bcc852f6b3 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b4943555d76f7e352de3f396c51d3dfb90ed633d
iuc
parents: 3
diff changeset
90 <expand macro="citations"/>
0
ef76d74a7171 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff changeset
91 </tool>