Mercurial > repos > iuc > kraken_taxonomy_report
comparison kraken_taxonomy_report.xml @ 0:3f1a0d47ea8d draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tools/kraken_taxonomy_report/ commit 1c0a7aff7c5f6578a11e6e8e9bface8d02e7f8a1
author | iuc |
---|---|
date | Wed, 01 Jun 2016 17:25:40 -0400 |
parents | |
children | b97694b21bc3 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3f1a0d47ea8d |
---|---|
1 <?xml version="1.0"?> | |
2 <tool id="kraken_taxonomy_report" name="Kraken taxonomic report" version="0.0.1"> | |
3 <description>view report of classification for multiple samples</description> | |
4 <requirements> | |
5 <requirement type="package" version="1.66">biopython</requirement> | |
6 </requirements> | |
7 <stdio> | |
8 <exit_code range="1:" /> | |
9 <exit_code range=":-1" /> | |
10 </stdio> | |
11 <version_command>python ${__tool_directory__}/kraken_taxonomy_report.py --version</version_command> | |
12 <command> | |
13 <![CDATA[ | |
14 | |
15 #for $input_classification in $classification: | |
16 ln -s "${input_classification}" "${input_classification.element_identifier}" && | |
17 #end for | |
18 | |
19 export KRAKEN_DB_PATH="${kraken_database.fields.path}" && | |
20 python ${__tool_directory__}/kraken_taxonomy_report.py | |
21 | |
22 --db "${kraken_database.fields.name}" | |
23 ${show_zeros} | |
24 ${header_line} | |
25 ${otu_name} | |
26 ${taxonomy} | |
27 ${show_rank} | |
28 ${intermediate} | |
29 ${sanitize_names} | |
30 #if str( $cluster.cluster ): | |
31 --cluster "${cluster.cluster}" | |
32 #else: | |
33 ${cluster.summation} | |
34 #end if | |
35 | |
36 --output "${output_report}" | |
37 | |
38 #if $output_tree: | |
39 --output-tree "${output_tree}" | |
40 #end if | |
41 | |
42 #for $input_classification in $classification: | |
43 "${input_classification.element_identifier}" | |
44 #end for | |
45 | |
46 ]]> | |
47 </command> | |
48 <inputs> | |
49 <param format="tabular" label="Kraken output" multiple="True" name="classification" type="data" /> | |
50 <param checked="False" falsevalue="" argument="--show-zeros" label="Display taxa even if they lack a read in any sample" name="show_zeros" truevalue="--show-zeros" type="boolean" /> | |
51 <param checked="True" falsevalue="" argument="--header-line" label="Display a header line indicating sample IDs" name="header_line" truevalue="--header-line" type="boolean" /> | |
52 <param label="Select a Kraken database" name="kraken_database" type="select" help="Select the same database used to classify reads"> | |
53 <options from_data_table="kraken_databases"> | |
54 <validator message="No Kraken databases are available" type="no_options" /> | |
55 </options> | |
56 </param> | |
57 <param label="How to name OTUs" name="otu_name" type="select" multiple="False"> | |
58 <option value="" selected="True">Node name only</option> | |
59 <option value="--name-long">Taxonified Name</option> | |
60 <option value="--name-id">Node ID</option> | |
61 </param> | |
62 <param checked="True" falsevalue="" argument="--sanitize-names" label="Sanitize Names" name="sanitize_names" truevalue="--sanitize-names" type="boolean" help="Replace special chars (\t| |\||\.;) with underscore (_)" /> | |
63 <param checked="False" falsevalue="" argument="--show-rank" label="Output Rank Name in (second to) last column" name="show_rank" truevalue="--show-rank" type="boolean" /> | |
64 <param checked="False" falsevalue="" argument="--taxonomy" label="Output taxonomy in last column" name="taxonomy" truevalue="--taxonomy" type="boolean" /> | |
65 <param checked="False" falsevalue="" argument="--intermediate" label="Display intermediate ranks" name="intermediate" truevalue="--intermediate" type="boolean" /> | |
66 <conditional name="cluster"> | |
67 <param argument="--cluster" help="Combines rows under the selected taxon and reports only selected rank." label="Cluster by taxonomic rank" name="cluster" type="select"> | |
68 <option value="Superkingdom">Superkingdom</option> | |
69 <option value="Kingdom">Kingdom</option> | |
70 <option value="Subkingdom">Subkingdom</option> | |
71 <option value="Superphylum">Superphylum</option> | |
72 <option value="Phylum">Phylum</option> | |
73 <option value="Subphylum">Subphylum</option> | |
74 <option value="Superclass">Superclass</option> | |
75 <option value="Class">Class</option> | |
76 <option value="Subclass">Subclass</option> | |
77 <option value="Infraclass">Infraclass</option> | |
78 <option value="Superorder">Superorder</option> | |
79 <option value="Order">Order</option> | |
80 <option value="Suborder">Suborder</option> | |
81 <option value="Infraorder">infraorder</option> | |
82 <option value="Parvorder">Parvorder</option> | |
83 <option value="Superfamily">Superfamily</option> | |
84 <option value="Family">Family</option> | |
85 <option value="Subfamily">Subfamily</option> | |
86 <option value="Tribe">Tribe</option> | |
87 <option value="Subtribe">Subtribe</option> | |
88 <option value="Genus">Genus</option> | |
89 <option value="Subgenus">Subgenus</option> | |
90 <option value="Species Group">Species Group</option> | |
91 <option value="Species Subgroup">Species Subgroup</option> | |
92 <option value="Species">Species</option> | |
93 <option value="Subspecies">Subspecies</option> | |
94 <option value="Varietas">Varietas</option> | |
95 <option value="Forma">Forma</option> | |
96 <option value="" selected="True">No Clustering</option> | |
97 </param> | |
98 <when value=""> | |
99 <param checked="False" falsevalue="" argument="--summation" label="Summation of lower ranks into higher ranks" name="summation" truevalue="--summation" type="boolean" /> | |
100 </when> | |
101 <when value="Superkingdom"/> | |
102 <when value="Kingdom"/> | |
103 <when value="Subkingdom"/> | |
104 <when value="Superphylum"/> | |
105 <when value="Phylum"/> | |
106 <when value="Subphylum"/> | |
107 <when value="Superclass"/> | |
108 <when value="Class"/> | |
109 <when value="Subclass"/> | |
110 <when value="Infraclass"/> | |
111 <when value="Superorder"/> | |
112 <when value="Order"/> | |
113 <when value="Suborder"/> | |
114 <when value="Infraorder"/> | |
115 <when value="Parvorder"/> | |
116 <when value="Superfamily"/> | |
117 <when value="Family"/> | |
118 <when value="Subfamily"/> | |
119 <when value="Tribe"/> | |
120 <when value="Subtribe"/> | |
121 <when value="Genus"/> | |
122 <when value="Subgenus"/> | |
123 <when value="Species Group"/> | |
124 <when value="Species Subgroup"/> | |
125 <when value="Species"/> | |
126 <when value="Subspecies"/> | |
127 <when value="Varietas"/> | |
128 <when value="Forma"/> | |
129 </conditional> | |
130 <param checked="False" falsevalue="" label="Output a newick tree" name="tree" truevalue="true" type="boolean" help="Trees are pruned at specified rank when clustering"/> | |
131 </inputs> | |
132 <outputs> | |
133 <data format="tabular" name="output_report" label="${tool.name} on ${on_string} (Abundances)"/> | |
134 <data format="txt" name="output_tree" label="${tool.name} on ${on_string} (Newick Tree)"> | |
135 <filter>tree</filter> | |
136 </data> | |
137 </outputs> | |
138 <tests> | |
139 <test> | |
140 <param name="classification" value="input_kraken_1.tabular" ftype="tabular"/> | |
141 <param name="show_zeros" value="True"/> | |
142 <param name="header_line" value="True"/> | |
143 <param name="kraken_database" value="test_db"/> | |
144 <param name="otu_name" value=""/> | |
145 <param name="sanitize_names" value="True"/> | |
146 <param name="show_rank" value="True"/> | |
147 <param name="taxonomy" value="True"/> | |
148 <param name="intermediate" value="True"/> | |
149 <conditional name="cluster"> | |
150 <param name="cluster" value=""/> | |
151 <param name="summation" value="True"/> | |
152 </conditional> | |
153 <param name="tree" value="True"/> | |
154 <output name="output_report" file="output_abundance_1.tabular" ftype="tabular"/> | |
155 <output name="output_tree" file="output_tree_1.newick" /> | |
156 </test> | |
157 <test> | |
158 <param name="classification" value="input_kraken_1.tabular" ftype="tabular"/> | |
159 <param name="show_zeros" value="True"/> | |
160 <param name="header_line" value="True"/> | |
161 <param name="kraken_database" value="test_db"/> | |
162 <param name="otu_name" value=""/> | |
163 <param name="sanitize_names" value="True"/> | |
164 <param name="show_rank" value="True"/> | |
165 <param name="taxonomy" value="True"/> | |
166 <param name="intermediate" value="True"/> | |
167 <conditional name="cluster"> | |
168 <param name="cluster" value=""/> | |
169 <param name="summation" value="False"/> | |
170 </conditional> | |
171 <param name="tree" value="True"/> | |
172 <output name="output_report" file="output_abundance_2.tabular" ftype="tabular"/> | |
173 <output name="output_tree" file="output_tree_1.newick" /> | |
174 </test> | |
175 <test> | |
176 <param name="classification" value="input_kraken_1.tabular" ftype="tabular"/> | |
177 <param name="show_zeros" value="True"/> | |
178 <param name="header_line" value="True"/> | |
179 <param name="kraken_database" value="test_db"/> | |
180 <param name="otu_name" value=""/> | |
181 <param name="sanitize_names" value="True"/> | |
182 <param name="show_rank" value="True"/> | |
183 <param name="taxonomy" value="True"/> | |
184 <param name="intermediate" value="False"/> | |
185 <conditional name="cluster"> | |
186 <param name="cluster" value="Species"/> | |
187 </conditional> | |
188 <param name="tree" value="True"/> | |
189 <output name="output_report" file="output_abundance_3.tabular" ftype="tabular"/> | |
190 <output name="output_tree" file="output_tree_3.newick" /> | |
191 </test> | |
192 <test> | |
193 <param name="classification" value="input_kraken_1.tabular,input_kraken_2.tabular" ftype="tabular"/> | |
194 <param name="show_zeros" value="True"/> | |
195 <param name="header_line" value="True"/> | |
196 <param name="kraken_database" value="test_db"/> | |
197 <param name="otu_name" value=""/> | |
198 <param name="sanitize_names" value="True"/> | |
199 <param name="show_rank" value="True"/> | |
200 <param name="taxonomy" value="True"/> | |
201 <param name="intermediate" value="False"/> | |
202 <conditional name="cluster"> | |
203 <param name="cluster" value="Species"/> | |
204 </conditional> | |
205 <param name="tree" value="True"/> | |
206 <output name="output_report" file="output_abundance_4.tabular" ftype="tabular"/> | |
207 <output name="output_tree" file="output_tree_3.newick" /> | |
208 </test> | |
209 </tests> | |
210 <help> | |
211 <![CDATA[ | |
212 | |
213 .. class:: warningmark | |
214 | |
215 **Note**: the database used must be the same as the one used in the original Kraken run | |
216 | |
217 ----- | |
218 | |
219 **What is Does** | |
220 | |
221 Summarizes read counts across taxonomic ranks for multiple samples. This is convenient for comparing results across multiple experiments, conditions, locations, etc. | |
222 | |
223 ----- | |
224 | |
225 **Output** | |
226 | |
227 The output is tab-delimited, with one line per taxon. | |
228 | |
229 Will optionally output a newick tree built from the kraken database taxonomy using the specified options. Tree branch lengths will be set to "1.00000". | |
230 | |
231 | |
232 ]]> | |
233 </help> | |
234 <citations> | |
235 <citation type="bibtex">@unpublished{Kraken-Taxonomy-Report:2016, | |
236 title = "Kraken Taxonomy Report", | |
237 author = "Daniel Blankenberg", | |
238 url = "https://github.com/blankenberg/Kraken-Taxonomy-Report", | |
239 year = "2016 (accessed June 1, 2016)" | |
240 }</citation> | |
241 </citations> | |
242 </tool> |