annotate abricate_summary.xml @ 10:c2ef298da409 draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
author iuc
date Thu, 15 Apr 2021 18:21:41 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
1 <tool id="abricate_summary" name="ABRicate Summary" version="@VERSION@" profile="@PROFILE@">
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
2 <description>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
3 Combine ABRicate results into a simple matrix of gene presence/absence
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
4 </description>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
5 <macros>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
6 <import>macros.xml</import>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
7 </macros>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
8 <expand macro='xrefs'/>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
9 <expand macro='edam_ontology'/>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
10 <expand macro="requirements" />
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
11 <expand macro="version_command" />
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
12
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
13 <command detect_errors="exit_code"><![CDATA[
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
14 mkdir reports &&
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
15 #import re
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
16 #for report in $abricate_reports
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
17 #set $safename = re.sub('[^\w\-_\.]', '_', $report.element_identifier)
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
18 ln -s '$report' 'reports/$safename' &&
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
19 #end for
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
20 cd reports/ &&
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
21 abricate --summary *
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
22 > '$summary'
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
23 ]]></command>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
24
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
25 <inputs>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
26 <param name="abricate_reports" type="data" multiple="true" format="tabular" label="Abricate output reports to summarize"/>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
27 </inputs>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
28
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
29 <outputs>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
30 <data name="summary" format="tabular"/>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
31 </outputs>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
32
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
33 <tests>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
34 <test>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
35 <param name="abricate_reports" value="output_db-card.txt,output_db-megares.txt"/>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
36 <output name="summary" ftype="tabular" file="output_summary.txt" />
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
37 </test>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
38 </tests>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
39
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
40 <help><![CDATA[
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
41 **What it does**
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
42
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
43 ABRicate can combine results into a simple matrix of gene presence/absence. An absent gene is denoted by '.' and a present gene is represented by its '%COVERAGE`. This can be individual abricate reports, or a combined one.
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
44
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
45 **Example Output**
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
46
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
47 ::
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
48
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
49 #FILE NUM_FOUND AAC3 ANT(4')-Ib ANT3-DPRIME ANT4-PRIME APH3-PRIME ARLR ARLS BLAI BLAR BLAZ BLE DHAP ERMA ErmA FOSB LMRS MECA MECI MEPA MEPB MEPR MGRA NORA NORB PC1_beta-lactamase_(blaZ) RLMH Staphylococcus_aureus_FosB Staphylococcus_aureus_norA Staphylococcys_aureus_LmrS TET38 arlR arlS mecA mecI mecR1 mepA mepR mgrA tet(38)
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
50 sample1 15 . 100.00 . . . . . . . . . . . 100.00;100.00 . . . . . . . . . . 100.00 . 100.00 99.91 100.00 . 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
51 sample2 24 100.00 . 100.00;100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00;100.00 . 100.00 100.00 100.00;100.00 100.00 100.00 100.00 100.00 100.00 100.00 100.00 . 100.00 . . . 100.00 . . . . . . . . .
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
52
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
53 ]]></help>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
54
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
55 <expand macro="citations"/>
c2ef298da409 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/abricate/ commit 6285862fce2b3e298ef0333489392335091b5b0d"
iuc
parents:
diff changeset
56 </tool>