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