annotate kreport2krona.xml @ 0:d491c23394f9 draft default tip

"planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
author jvolkening
date Thu, 30 Sep 2021 17:54:31 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
1 <tool id="krakentools_kreport2krona" name="Kraken To Krona" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="17.09">
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
2 <description>Convert a Kraken/Kraken2 report to a Krona-compatible text file</description>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
3 <macros>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
4 <import>macros.xml</import>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
5 </macros>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
6 <expand macro="requirements" />
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
7 <expand macro="stdio" />
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
8 <version_command>echo -n @TOOL_VERSION@</version_command>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
9
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
10 <command detect_errors="exit_code"><![CDATA[
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
11
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
12 kreport2krona.py
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
13 --report '$report'
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
14 -o '$output'
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
15 $intermediate_ranks
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
16
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
17 ]]></command>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
18
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
19 <inputs>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
20 <param name="report" argument="--report" format="tabular" type="data" label="Report" help="Report (classification) file from Kraken/Kraken2" />
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
21 <param name="intermediate_ranks" argument="--intermediate-ranks" type="boolean" value="False" truevalue="--intermediate-ranks" falsevalue="--no-intermediate-ranks" label="Intermediate ranks" help="Include non-standard taxonomic levels" />
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
22
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
23 </inputs>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
24
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
25 <outputs>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
26 <data name="output" format="tabular" label="${tool.name} on ${on_string}: table" />
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
27 </outputs>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
28
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
29 <tests>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
30
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
31 <!-- test Kraken2 input, no intermediate ranks -->
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
32 <test>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
33 <param name="report" value="kraken2.report" ftype="tabular"/>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
34 <param name="intermediate_ranks" value="False"/>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
35 <output name="output" file="krona.k2.noint.tsv"/>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
36 </test>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
37 <!-- test KrakenUniq input, intermediate ranks -->
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
38 <test>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
39 <param name="report" value="kraken2.report" ftype="tabular"/>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
40 <param name="intermediate_ranks" value="True"/>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
41 <output name="output" file="krona.k2.int.tsv"/>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
42 </test>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
43
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
44 </tests>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
45
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
46 <help><![CDATA[
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
47
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
48 .. class:: infomark
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
49
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
50 **What it does**
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
51
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
52 -------------------
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
53
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
54 After running Kraken, Kraken2, or KrakenUniq, users may use the
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
55 `kreport2krona.py` program to convert the report file to a tabular format
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
56 suitable for input into Krona.
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
57
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
58 **Example usage**
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
59
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
60 -------------------
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
61
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
62 .. code-block:: bash
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
63
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
64 kraken2 --db KRAKEN2DB --threads THREADNUM --report MYSAMPLE.KREPORT \
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
65 --paired SAMPLE_1.FASTA SAMPLE_2.FASTA > MYSAMPLE.KRAKEN2
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
66 kreport2krona.py --report MYSAMPLE.KREPORT --output MYSAMPLE.krona
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
67 ktImportText MYSAMPLE.krona -o MYSAMPLE.krona.html
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
68
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
69 -------------------
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
70
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
71 **Command-line arguments**
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
72
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
73 -------------------
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
74
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
75 The following command-line usage corresponds with the Galaxy wrapper
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
76 parameters::
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
77
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
78 usage: kreport2krona.py [-h] -r R_FILE -o O_FILE [--intermediate-ranks] [--no-intermediate-ranks]
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
79
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
80 optional arguments:
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
81 -h, --help show this help message and exit
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
82 -r R_FILE, --report-file R_FILE, --report R_FILE
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
83 Input kraken report file for converting
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
84 -o O_FILE, --output O_FILE
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
85 Output krona-report file name
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
86 --intermediate-ranks Include non-traditional taxonomic ranks in output
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
87 --no-intermediate-ranks
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
88 Do not include non-traditional taxonomic ranks in output [default: no intermediate ranks]
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
89
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
90 --------------------
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
91
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
92 **More Information**
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
93
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
94 --------------------
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
95
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
96 Author: Jennifer Lu
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
97
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
98 See the `online documentation`_
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
99
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
100 .. _`online documentation`: https://github.com/jenniferlu717/KrakenTools#kreport2kronapy
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
101
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
102 --------------------
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
103
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
104 **Galaxy Wrapper Development**
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
105
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
106 --------------------
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
107
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
108 Author: Jeremy Volkening
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
109
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
110 ]]></help>
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
111
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
112 <expand macro="citations" />
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
113
d491c23394f9 "planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/krakentools"
jvolkening
parents:
diff changeset
114 </tool>