Mercurial > repos > iuc > hamronize_summarize
annotate hamronize_summarize.xml @ 4:f8bcc852f6b3 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b4943555d76f7e352de3f396c51d3dfb90ed633d
author | iuc |
---|---|
date | Fri, 09 Feb 2024 21:27:25 +0000 |
parents | 243c87f34f39 |
children | 88045b4d5597 |
rev | line source |
---|---|
3
243c87f34f39
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
ef76d74a7171
"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> |
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[ |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
10 #for $counter, $report in enumerate($reports): |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
11 #if $report.is_of_type('tsv', 'tabular'): |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
12 #set $ext = 'tsv' |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
13 #elif $report.is_of_type('json'): |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
14 #set $ext = 'json' |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
15 #end if |
3
243c87f34f39
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents:
2
diff
changeset
|
16 ln -s '$report' ./report_${counter}.${ext} && |
0
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
17 #end for |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
18 |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
19 hamronize summarize |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
20 --summary_type $summary_type |
3
243c87f34f39
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents:
2
diff
changeset
|
21 #if $summary_type == "tsv" |
0
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
22 --output output.tsv |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
23 #elif $summary_type == "json" |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
24 --output output.json |
3
243c87f34f39
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents:
2
diff
changeset
|
25 #else |
0
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
26 --output output.html |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
27 #end if |
3
243c87f34f39
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents:
2
diff
changeset
|
28 ./report_* |
0
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
29 ]]> </command> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
30 |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
31 <inputs> |
1
a84e3131ae6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b872ea086ebd98be64839e7bbb1ddf7a181943d0"
iuc
parents:
0
diff
changeset
|
32 <param name="reports" type="data" multiple="true" format="tabular,json" label="Report files"/> |
0
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
33 <param name="summary_type" type="select" label="Output format" multiple="false"> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
34 <option value="tsv">tsv</option> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
35 <option value="json">json</option> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
36 <option value="interactive">interactive</option> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
37 </param> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
38 </inputs> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
39 |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
40 <outputs> |
4
f8bcc852f6b3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b4943555d76f7e352de3f396c51d3dfb90ed633d
iuc
parents:
3
diff
changeset
|
41 <data format="tabular" name="output_tsv" label="${tool.name} on ${on_string}: Table" from_work_dir="output.tsv"> |
0
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
42 <filter>summary_type == "tsv"</filter> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
43 </data> |
4
f8bcc852f6b3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b4943555d76f7e352de3f396c51d3dfb90ed633d
iuc
parents:
3
diff
changeset
|
44 <data format="json" name="output_json" label="${tool.name} on ${on_string}: JSON" from_work_dir="output.json"> |
0
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
45 <filter>summary_type == "json"</filter> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
46 </data> |
4
f8bcc852f6b3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b4943555d76f7e352de3f396c51d3dfb90ed633d
iuc
parents:
3
diff
changeset
|
47 <data format="html" name="output_html" label="${tool.name} on ${on_string}: Interactive" from_work_dir="output.html"> |
0
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
48 <filter>summary_type == "interactive"</filter> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
49 </data> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
50 </outputs> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
51 <tests> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
52 <!-- tsv output --> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
53 <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
|
54 <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
|
55 <param name="summary_type" value="tsv" /> |
1
a84e3131ae6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b872ea086ebd98be64839e7bbb1ddf7a181943d0"
iuc
parents:
0
diff
changeset
|
56 <output name="output_tsv" ftype="tabular" file="summary.tsv" /> |
0
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
57 </test> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
58 <!-- json output --> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
59 <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
|
60 <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
|
61 <param name="summary_type" value="json" /> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
62 <output name="output_json" ftype="json"> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
63 <assert_contents> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
64 <has_text text="GCF_010120755.1_ASM1012075v1_genomic" /> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
65 <has_text text="H_NS.3000676.BA000007.3.1737690_1738104.5476" /> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
66 <has_text text="NODE_9_length_203843_cov_42.4911_20" /> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
67 </assert_contents> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
68 </output> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
69 </test> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
70 </tests> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
71 <help> |
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
72 <![CDATA[ |
3
243c87f34f39
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents:
2
diff
changeset
|
73 **What it does** |
243c87f34f39
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents:
2
diff
changeset
|
74 This tool will take a list of report and create single sorted report in the specified format |
243c87f34f39
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents:
2
diff
changeset
|
75 just containing the unique entries across input reports. It can handle mixed json and tsv hamronized report formats |
243c87f34f39
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents:
2
diff
changeset
|
76 **Inputs** |
243c87f34f39
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents:
2
diff
changeset
|
77 A list of hamronize reports |
243c87f34f39
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents:
2
diff
changeset
|
78 |
243c87f34f39
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit f09c6b7e45ccd61956942b5aab76c0c8ccc0fe03
iuc
parents:
2
diff
changeset
|
79 ]]> |
0
ef76d74a7171
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit 17562209ea2b5b8b28f229a5c305e468b04be58e"
iuc
parents:
diff
changeset
|
80 </help> |
4
f8bcc852f6b3
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hamronization commit b4943555d76f7e352de3f396c51d3dfb90ed633d
iuc
parents:
3
diff
changeset
|
81 <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
|
82 </tool> |