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