comparison make_otu_heatmap.xml @ 0:a3d1104d090c draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit c9bf747b23b4a9d6adc20c7740b9247c22654862
author iuc
date Thu, 18 May 2017 09:28:39 -0400
parents
children 06cb29d26718
comparison
equal deleted inserted replaced
-1:000000000000 0:a3d1104d090c
1 <tool id="qiime_make_otu_heatmap" name="Plot heatmap of OTU table" version="@WRAPPER_VERSION@.0">
2 <description></description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <version_command>make_otu_heatmap.py --version</version_command>
8 <command detect_errors="exit_code"><![CDATA[
9 make_otu_heatmap.py
10 --otu_table_fp '$otu_table_fp'
11
12 #if $imagetype == "pdf"
13 --output_fp '$pdf_output_fp'
14 #else if $imagetype == "png"
15 --output_fp '$png_output_fp'
16 #else if $imagetype == "svg"
17 --output_fp '$svg_output_fp'
18 #end if
19
20 #if $otu_tree
21 --otu_tree '$otu_tree'
22 #end if
23 #if $map_fname
24 --map_fname '$map_fname'
25 #end if
26 #if str($category) != ''
27 --category '$category'
28 #end if
29 #if $sample_tree
30 --sample_tree '$sample_tree'
31 #end if
32 --imagetype '$imagetype'
33 $no_log_transform
34 $suppress_row_clustering
35 $suppress_column_clustering
36 $absolute_abundance
37
38 #if str($ad.select) == "yes":
39 --color_scheme '$ad.color_scheme'
40 --width '$ad.width'
41 --height '$ad.height'
42 --dpi '$ad.dpi'
43 --obs_md_category '$ad.obs_md_category'
44 #if str($ad.obs_md_level) != ''
45 --obs_md_level '$ad.obs_md_level'
46 #end if
47 #end if
48 ]]></command>
49 <inputs>
50 <param argument="--otu_table_fp" type="data" format="biom1" label="Input OTU table"/>
51 <param argument="--otu_tree" type="data" format="txt" label="Tree file to be used for sorting OTUs in the heatmap" name="otu_tree" optional="True"/>
52 <param argument="--map_fname" type="data" format="txt" label="Metadata mapping file to be used for sorting" optional="True"/>
53 <param argument="--category" type="text" label="Metadata category for sorting samples" help=" Samples will be clustered within each category level using euclidean UPGMA" optional="True"/>
54 <param argument="--sample_tree" type="data" format="txt" label="Tree file to be used for sorting samples" help="If both this and the sample mapping file are provided, the mapping file is ignored." optional="True"/>
55 <param argument="--imagetype" type="select" label="Type of image to produce">
56 <option value="pdf" selected="True">PDF</option>
57 <option value="png">PNG</option>
58 <option value="svg">SVG</option>
59 </param>
60 <param argument="--no_log_transform" type="boolean" truevalue="--no_log_transform" falsevalue="" checked="False" label="Data will not be log-transformed the data?" help="Without this option, all zeros will be set to a small value (default is 1/2 the smallest non-zero entry). Data will be translated to be non-negative after log transform, and num_otu_hits will be set to 0."/>
61 <param argument="--suppress_row_clustering" type="boolean" truevalue="--suppress_row_clustering" falsevalue="" checked="False" label="Perform no UPGMA clustering of OTUs (rows)?" help="If --otu_tree is provided, this flag is ignored."/>
62 <param argument="--suppress_column_clustering" type="boolean" truevalue="--suppress_column_clustering" falsevalue="" checked="False" label="Perform no UPGMA clustering of Samples (columns)?" help="If --map_fname is provided, this flag is ignored."/>
63 <param argument="--absolute_abundance" type="boolean" truevalue="--absolute_abundance" falsevalue="" checked="False" label="Do not normalize samples to sum to 1?"/>
64 <conditional name="ad">
65 <param name="select" type="select" label="Show advanced options">
66 <option value="no" selected="True">No</option>
67 <option value="yes">Yes</option>
68 </param>
69 <when value="no"/>
70 <when value="yes">
71 <param argument="--color_scheme" type="select" label="Color scheme for figure" help="More details in http://matplotlib.org/examples/color/colormaps_reference.html">
72 <option value="viridis">viridis (Perceptually Uniform Sequential)</option>
73 <option value="inferno">inferno (Perceptually Uniform Sequential)</option>
74 <option value="plasma">plasma (Perceptually Uniform Sequential)</option>
75 <option value="magma">magma (Perceptually Uniform Sequential)</option>
76 <option value="Blues">Blues (Sequential)</option>
77 <option value="BuGn">BuGn (Sequential)</option>
78 <option value="BuPu">BuPu (Sequential)</option>
79 <option value="GnBu">GnBu (Sequential)</option>
80 <option value="Greens">Greens (Sequential)</option>
81 <option value="Greys">Greys (Sequential)</option>
82 <option value="Oranges">Oranges (Sequential)</option>
83 <option value="OrRd">OrRd (Sequential)</option>
84 <option value="PuBu">PuBu (Sequential)</option>
85 <option value="PuBuGn">PuBuGn (Sequential)</option>
86 <option value="PuRd">PuRd (Sequential)</option>
87 <option value="Purples">Purples (Sequential)</option>
88 <option value="RdPu">RdPu (Sequential)</option>
89 <option value="Reds">Reds (Sequential)</option>
90 <option value="YlGn" selected="true">YlGn (Sequential)</option>
91 <option value="YlGnBu">YlGnBu (Sequential)</option>
92 <option value="YlOrBr">YlOrBr (Sequential)</option>
93 <option value="YlOrRd">YlOrRd (Sequential)</option>
94 <option value="afmhot">afmhot (Sequential (2))</option>
95 <option value="autumn">autumn (Sequential (2))</option>
96 <option value="bone">bone (Sequential (2))</option>
97 <option value="cool">cool (Sequential (2))</option>
98 <option value="copper">copper (Sequential (2))</option>
99 <option value="gist_heat">gist_heat (Sequential (2))</option>
100 <option value="gray">gray (Sequential (2))</option>
101 <option value="hot">hot (Sequential (2))</option>
102 <option value="pink">pink (Sequential (2))</option>
103 <option value="spring">spring (Sequential (2))</option>
104 <option value="summer">summer (Sequential (2))</option>
105 <option value="winter">winter (Sequential (2))</option>
106 <option value="BrBG">BrBG (Diverging)</option>
107 <option value="bwr">bwr (Diverging)</option>
108 <option value="coolwarm">coolwarm (Diverging)</option>
109 <option value="PiYG">PiYG (Diverging)</option>
110 <option value="PRGn">PRGn (Diverging)</option>
111 <option value="PuOr">PuOr (Diverging)</option>
112 <option value="RdBu">RdBu (Diverging)</option>
113 <option value="RdGy">RdGy (Diverging)</option>
114 <option value="RdYlBu">RdYlBu (Diverging)</option>
115 <option value="RdYlGn">RdYlGn (Diverging)</option>
116 <option value="Spectral">Spectral (Diverging)</option>
117 <option value="seismic">seismic (Diverging)</option>
118 <option value="Accent">Accent (Qualitative)</option>
119 <option value="Dark2">Dark2 (Qualitative)</option>
120 <option value="Paired">Paired (Qualitative)</option>
121 <option value="Pastel1">Pastel1 (Qualitative)</option>
122 <option value="Pastel2">Pastel2 (Qualitative)</option>
123 <option value="Set1">Set1 (Qualitative)</option>
124 <option value="Set2">Set2 (Qualitative)</option>
125 <option value="Set3">Set3 (Qualitative)</option>
126 <option value="Vega10">Vega10 (Qualitative)</option>
127 <option value="Vega20">Vega20 (Qualitative)</option>
128 <option value="Vega20b">Vega20b (Qualitative)</option>
129 <option value="Vega20c">Vega20c (Qualitative)</option>
130 <option value="gist_earth">gist_earth (Miscellaneous)</option>
131 <option value="terrain">terrain (Miscellaneous)</option>
132 <option value="ocean">ocean (Miscellaneous)</option>
133 <option value="gist_stern">gist_stern (Miscellaneous)</option>
134 <option value="brg">brg (Miscellaneous)</option>
135 <option value="CMRmap">CMRmap (Miscellaneous)</option>
136 <option value="cubehelix">cubehelix (Miscellaneous)</option>
137 <option value="gnuplot">gnuplot (Miscellaneous)</option>
138 <option value="gnuplot2">gnuplot2 (Miscellaneous)</option>
139 <option value="gist_ncar">gist_ncar (Miscellaneous)</option>
140 <option value="nipy_spectral">nipy_spectral (Miscellaneous)</option>
141 <option value="jet">jet (Miscellaneous)</option>
142 <option value="rainbow">rainbow (Miscellaneous)</option>
143 <option value="gist_rainbow">gist_rainbow (Miscellaneous)</option>
144 <option value="hsv">hsv (Miscellaneous)</option>
145 <option value="flag">flag (Miscellaneous)</option>
146 <option value="prism">prism (Miscellaneous)</option>
147 </param>
148 <param argument="--width" type="float" value="5" label="Width of the figure in inches"/>
149 <param argument="--height" type="float" value="5" label="Height of the figure in inches"/>
150 <param argument="--dpi" type="integer" value="" label="Resolution of the figure in dots per inch"/>
151 <param argument="--obs_md_category" type="text" value="taxonomy" label="Observation metadata category to plot"/>
152 <param argument="--obs_md_level" type="text" value="" label="The level of observation metadata to plot for hierarchical metadata" optional="true"/>
153 </when>
154 </conditional>
155 </inputs>
156 <outputs>
157 <data name="pdf_output_fp" format="pdf" label="${tool.name} on ${on_string}: OTU Heatmap">
158 <filter>imagetype == 'pdf'</filter>
159 </data>
160 <data name="png_output_fp" format="png" label="${tool.name} on ${on_string}: OTU Heatmap">
161 <filter>imagetype == 'png'</filter>
162 </data>
163 <data name="svg_output_fp" format="svg" label="${tool.name} on ${on_string}: OTU Heatmap">
164 <filter>imagetype == 'svg'</filter>
165 </data>
166 </outputs>
167 <tests>
168 <test>
169 <param name="otu_table_fp" value="make_otu_heatmap/otu_table.biom"/>
170 <param name="imagetype" value="pdf"/>
171 <param name="no_log_transform" value=""/>
172 <param name="suppress_row_clustering" value=""/>
173 <param name="suppress_column_clustering" value=""/>
174 <param name="absolute_abundance" value=""/>
175 <param name="select" value="yes"/>
176 <param name="color_scheme" value="YlGn"/>
177 <param name="width" value="5"/>
178 <param name="height" value="5"/>
179 <param name="dpi" value="200"/>
180 <param name="obs_md_category" value="taxonomy"/>
181 <output name="pdf_output_fp" file="make_otu_heatmap/basic_heatmap.pdf" compare="sim_size" />
182 </test>
183 <test>
184 <param name="otu_table_fp" value="make_otu_heatmap/otu_table.biom"/>
185 <param name="imagetype" value="png"/>
186 <param name="no_log_transform" value=""/>
187 <param name="suppress_row_clustering" value=""/>
188 <param name="suppress_column_clustering" value=""/>
189 <param name="absolute_abundance" value=""/>
190 <param name="select" value="yes"/>
191 <param name="color_scheme" value="YlGn"/>
192 <param name="width" value="5"/>
193 <param name="height" value="5"/>
194 <param name="dpi" value="200"/>
195 <param name="obs_md_category" value="taxonomy"/>
196 <output name="png_output_fp" file="make_otu_heatmap/basic_heatmap.png" compare="sim_size" />
197 </test>
198 <test>
199 <param name="otu_table_fp" value="make_otu_heatmap/otu_table.biom"/>
200 <param name="imagetype" value="svg"/>
201 <param name="no_log_transform" value=""/>
202 <param name="suppress_row_clustering" value=""/>
203 <param name="suppress_column_clustering" value=""/>
204 <param name="absolute_abundance" value=""/>
205 <param name="select" value="yes"/>
206 <param name="color_scheme" value="YlGn"/>
207 <param name="width" value="5"/>
208 <param name="height" value="5"/>
209 <param name="dpi" value="200"/>
210 <param name="obs_md_category" value="taxonomy"/>
211 <output name="svg_output_fp" file="make_otu_heatmap/basic_heatmap.svg" compare="sim_size" />
212 </test>
213 <test>
214 <param name="otu_table_fp" value="make_otu_heatmap/otu_table.biom"/>
215 <param name="map_fname" value="make_otu_heatmap/mapping_file.txt"/>
216 <param name="imagetype" value="pdf"/>
217 <param name="no_log_transform" value=""/>
218 <param name="suppress_row_clustering" value=""/>
219 <param name="suppress_column_clustering" value=""/>
220 <param name="absolute_abundance" value=""/>
221 <param name="select" value="yes"/>
222 <param name="color_scheme" value="YlGn"/>
223 <param name="width" value="5"/>
224 <param name="height" value="5"/>
225 <param name="dpi" value="200"/>
226 <param name="obs_md_category" value="taxonomy"/>
227 <output name="pdf_output_fp" value="make_otu_heatmap/sample_sorted_heatmap.pdf" compare="sim_size" />
228 </test>
229 <test>
230 <param name="otu_table_fp" value="make_otu_heatmap/otu_table.biom"/>
231 <param name="map_fname" value="make_otu_heatmap/mapping_file.txt"/>
232 <param name="otu_tree" value="make_otu_heatmap/rep_set.tre"/>
233 <param name="imagetype" value="pdf"/>
234 <param name="no_log_transform" value=""/>
235 <param name="suppress_row_clustering" value=""/>
236 <param name="suppress_column_clustering" value=""/>
237 <param name="absolute_abundance" value=""/>
238 <param name="select" value="yes"/>
239 <param name="color_scheme" value="YlGn"/>
240 <param name="width" value="5"/>
241 <param name="height" value="5"/>
242 <param name="dpi" value="200"/>
243 <param name="obs_md_category" value="taxonomy"/>
244 <output name="pdf_output_fp" value="make_otu_heatmap/sample_otu_sorted_heatmap.pdf" compare="sim_size" />
245 </test>
246 <test>
247 <param name="otu_table_fp" value="make_otu_heatmap/otu_table.biom"/>
248 <param name="map_fname" value="make_otu_heatmap/mapping_file.txt"/>
249 <param name="category" value="Treatment"/>
250 <param name="imagetype" value="pdf"/>
251 <param name="no_log_transform" value=""/>
252 <param name="suppress_row_clustering" value=""/>
253 <param name="suppress_column_clustering" value=""/>
254 <param name="absolute_abundance" value=""/>
255 <param name="select" value="yes"/>
256 <param name="color_scheme" value="YlGn"/>
257 <param name="width" value="5"/>
258 <param name="height" value="5"/>
259 <param name="dpi" value="200"/>
260 <param name="obs_md_category" value="taxonomy"/>
261 <output name="pdf_output_fp" value="make_otu_heatmap/treatment_sample_sorted_heatmap.pdf" compare="sim_size" />
262 </test>
263 </tests>
264 <help><![CDATA[
265 **What it does**
266
267 This script visualizes an OTU table as a heatmap where each row corresponds to an OTU and each column corresponds to a sample. The higher the relative abundance of an OTU in a sample, the more intense the color at the corresponsing position in the heatmap. By default, the OTUs (rows) will be clustered by UPGMA hierarchical clustering, and the samples (columns) will be presented in the order in which they appear in the OTU table. Alternatively, the user may supply a tree to sort the OTUs (rows) or samples (columns), or both. The user may also pass in a mapping file for sorting samples. If the user passes in a mapping file and a metadata category, samples (columns) will be grouped by category value and subsequently clustered within each group.
268
269 A single output file is created containing the heatmap of the OTU table (a PDF file by default).
270 ]]></help>
271 <citations>
272 <expand macro="citations"/>
273 </citations>
274 </tool>