Mercurial > repos > bgruening > deeptools_plot_heatmap
comparison plotHeatmap.xml @ 0:e1bb51933e7f draft
planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit 0a9265a12a303b54cdaa974e82e87c2ac60962ee-dirty
author | bgruening |
---|---|
date | Mon, 25 Jan 2016 20:16:56 -0500 |
parents | |
children | 6a247ae015cc |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e1bb51933e7f |
---|---|
1 <tool id="deeptools_plot_heatmap" name="plotHeatmap" version="@WRAPPER_VERSION@.0"> | |
2 <description>creates a heatmap for a score associated to genomic regions</description> | |
3 <macros> | |
4 <token name="@BINARY@">plotHeatmap</token> | |
5 <import>deepTools_macros.xml</import> | |
6 </macros> | |
7 <expand macro="requirements"/> | |
8 <command> | |
9 <![CDATA[ | |
10 @BINARY@ | |
11 --matrixFile "$matrixFile" | |
12 --outFileName "$outFileName" | |
13 | |
14 #if $output.showOutputSettings == "yes" | |
15 --plotFileFormat "$output.outFileFormat" | |
16 | |
17 #if $outFileNameMatrix: | |
18 --outFileNameMatrix "$outFileNameMatrix" | |
19 #end if | |
20 | |
21 #if $outFileSortedRegions: | |
22 --outFileSortedRegions "$outFileSortedRegions" | |
23 #end if | |
24 #else | |
25 --plotFileFormat 'png' | |
26 #end if | |
27 | |
28 #if $advancedOpt.showAdvancedOpt == "yes" | |
29 #if $advancedOpt.sortRegions: | |
30 --sortRegions '$advancedOpt.sortRegions' | |
31 #end if | |
32 | |
33 #if $advancedOpt.sortUsing: | |
34 --sortUsing '$advancedOpt.sortUsing' | |
35 #end if | |
36 | |
37 #if $advancedOpt.averageTypeSummaryPlot: | |
38 --averageTypeSummaryPlot '$advancedOpt.averageTypeSummaryPlot' | |
39 #end if | |
40 | |
41 #if str($advancedOpt.missingDataColor.value) != "None": | |
42 --missingDataColor '$advancedOpt.missingDataColor' | |
43 #end if | |
44 | |
45 --colorMap '$advancedOpt.colorMap' | |
46 | |
47 #if str($advancedOpt.zMin).strip() != "": | |
48 --zMin $advancedOpt.zMin | |
49 #end if | |
50 #if $advancedOpt.zMax: | |
51 --zMax $advancedOpt.zMax | |
52 #end if | |
53 | |
54 #if str($advancedOpt.yMin).strip() != "": | |
55 --yMin $advancedOpt.yMin | |
56 #end if | |
57 #if $advancedOpt.yMax: | |
58 --yMax $advancedOpt.yMax | |
59 #end if | |
60 | |
61 --xAxisLabel '$advancedOpt.xAxisLabel' | |
62 --yAxisLabel '$advancedOpt.yAxisLabel' | |
63 | |
64 --heatmapWidth $advancedOpt.heatmapWidth | |
65 --heatmapHeight $advancedOpt.heatmapHeight | |
66 | |
67 --whatToShow '$advancedOpt.whatToShow' | |
68 | |
69 --startLabel '$advancedOpt.startLabel' | |
70 --endLabel '$advancedOpt.endLabel' | |
71 --refPointLabel '$advancedOpt.referencePointLabel' | |
72 --regionsLabel '$advancedOpt.regionsLabel' | |
73 | |
74 #if $advancedOpt.plotTitle and str($advancedOpt.plotTitle.value) != "": | |
75 --plotTitle '$advancedOpt.plotTitle' | |
76 #end if | |
77 | |
78 $advancedOpt.perGroup | |
79 | |
80 @KMEANS_CLUSTERING@ | |
81 | |
82 #end if | |
83 ]]> | |
84 </command> | |
85 <inputs> | |
86 <param argument="matrixFile" format="deeptools_compute_matrix_archive" type="data" label="Matrix file from the computeMatrix tool" help=""/> | |
87 | |
88 <expand macro="input_graphic_output_settings"> | |
89 <expand macro="input_image_file_format" /> | |
90 <expand macro="input_save_matrix_values" /> | |
91 </expand> | |
92 | |
93 <conditional name="advancedOpt" > | |
94 <param name="showAdvancedOpt" type="select" label="Show advanced options" > | |
95 <option value="no" selected="true">no</option> | |
96 <option value="yes">yes</option> | |
97 </param> | |
98 <when value="no" /> | |
99 <when value="yes"> | |
100 <expand macro="sortRegions" /> | |
101 <expand macro="sortUsing" /> | |
102 <param argument="--averageTypeSummaryPlot" type="select" | |
103 label="Type of statistic that should be plotted in the summary image above the heatmap" | |
104 help=""> | |
105 <option value="mean" selected="true">mean</option> | |
106 <option value="median">median</option> | |
107 <option value="min">min</option> | |
108 <option value="max">max</option> | |
109 <option value="sum">sum</option> | |
110 <option value="std">std</option> | |
111 </param> | |
112 | |
113 <param argument="--missingDataColor" type="text" value="black" optional="true" label="Missing data color" | |
114 help="If 'Represent missing data as zero' is not set, such cases will be colored in black by default. | |
115 By using this parameter a different color can be set. A value between 0 and 1 will be used for a gray scale (black is 0). | |
116 Also color names can be used, see a list here: http://packages.python.org/ete2/reference/reference_svgcolors.html. | |
117 Alternatively colors can be specified using the #rrggbb notation." /> | |
118 | |
119 <expand macro="colorMap" /> | |
120 | |
121 <param argument="--zMin" type="float" value="" size="3" optional="True" | |
122 label="Minimum value for the heatmap intensities. Leave empty for automatic values" help=""/> | |
123 <param argument="--zMax" type="float" value="" size="3" optional="True" | |
124 label="Maximum value for the heatmap intensities. Leave empty for automatic values" help=""/> | |
125 <param argument="--yMin" type="float" value="" size="3" optional="True" | |
126 label="Minimum value for the Y-axis of the summary plot. Leave empty for automatic values" help=""/> | |
127 <param argument="--yMax" type="float" value="" size="3" optional="True" | |
128 label="Maximum value for Y-axis of the summary plot. Leave empty for automatic values" help=""/> | |
129 <param argument="--xAxisLabel" type="text" value="distance from TSS (bp)" size="200" | |
130 label="The x-axis label" help="" /> | |
131 <param argument="--yAxisLabel" type="text" value="genes" size="30" | |
132 label="The y-axis label for the top panel" help="" /> | |
133 | |
134 <param argument="--heatmapWidth" type="float" value="7.5" min="1" max="100" | |
135 label="Heatmap width in cm" help="The minimum value is 1 and the maximum is 100."/> | |
136 <param argument="--heatmapHeight" type="float" value="25" min="3" max="100" | |
137 label="Heatmap height in cm" help="The minimum value is 3 and the maximum is 100."/> | |
138 | |
139 <param argument="--whatToShow" type="select" label="What to show" | |
140 help ="The default is to include a summary or profile plot on top of the heatmap and a heatmap colorbar."> | |
141 <option value="plot, heatmap and colorbar" selected="true">summary plot, heatmap and colorbar</option> | |
142 <option value="plot and heatmap">summary plot and heatmap (no colorbar)</option> | |
143 <option value="heatmap and colorbar">heatmap and colorbar</option> | |
144 </param> | |
145 | |
146 <param argument="--startLabel" type="text" value="TSS" size="10" | |
147 label="Label for the region start" | |
148 help ="Only for scale-regions mode. Label shown in the plot for the start of the region. Default is TSS (transcription start site), but could be changed to anything, e.g. "peak start"." /> | |
149 <param argument="--endLabel" type="text" value="TES" size="10" | |
150 label="Label for the region end" | |
151 help="Only for scale-regions mode. Label shown in the plot for the region end. Default is TES (transcription end site)."/> | |
152 | |
153 <param argument="--referencePointLabel" type="text" value="TSS" size="10" | |
154 label="Reference point label" | |
155 help ="Label shown in the plot for the reference-point. Default is the same as the reference point selected (e.g. TSS), but could be anything, e.g. "peak start" etc." /> | |
156 <param argument="--regionsLabel" type="text" value="genes" size="30" | |
157 label="Labels for the regions plotted in the heatmap" | |
158 help="If more than one region is being plotted then a list of labels separated by comma is required. For example, label1, label2."> | |
159 <sanitizer> | |
160 <valid initial="string.printable"> | |
161 </valid> | |
162 </sanitizer> | |
163 </param> | |
164 <expand macro="plotTitle" /> | |
165 <param argument="--perGroup" type="boolean" truevalue="--perGroup" falsevalue="" | |
166 label="Do one plot per group" | |
167 help="When clustering is applied to the data, or the computematrix was performed on multiple BED files, | |
168 plot the groups next to each other. The default is to plot | |
169 the samples next to each other. If this option is set, each group (or cluster) will get its own plot, | |
170 with different samples stacked on top of each other."/> | |
171 | |
172 <expand macro="kmeans_clustering" /> | |
173 </when> | |
174 </conditional> | |
175 </inputs> | |
176 <outputs> | |
177 <expand macro="output_image_file_format" /> | |
178 <expand macro="output_graphic_outputs" /> | |
179 <expand macro="output_save_matrix_values" /> | |
180 </outputs> | |
181 <tests> | |
182 <test> | |
183 <param name="matrixFile" value="computeMatrix_result1.gz" ftype="deeptools_compute_matrix_archive" /> | |
184 <output name="outFileName" file="heatmapper_result1.png" ftype="png" compare="sim_size" delta="4000" /> | |
185 </test> | |
186 <test> | |
187 <param name="matrixFile" value="computeMatrix_result1.gz" ftype="deeptools_compute_matrix_archive" /> | |
188 <param name="showAdvancedOpt" value="yes" /> | |
189 <param name="whatToShow" value="heatmap and colorbar" /> | |
190 <output name="outFileName" file="heatmapper_result2.png" ftype="png" compare="sim_size" delta="4000" /> | |
191 </test> | |
192 </tests> | |
193 <help> | |
194 <![CDATA[ | |
195 **What it does** | |
196 | |
197 The heatmapper visualizes scores associated with genomic regions, for example ChIP enrichment values around the TSS of genes. | |
198 Like profiler, it requires that computeMatrix was run first to calculate the values. | |
199 | |
200 We have implemented number of optional parameters to optimize the visual output and we encourage you to play around with the min/max values | |
201 displayed in the heatmap as well as with the different coloring options. The most powerful option is the k-means/hierarchical clustering, | |
202 where you simply need to indicate the number of groups with similar read distributions that you expect and the algorithm will do the sorting for you. | |
203 | |
204 | |
205 .. image:: $PATH_TO_IMAGES/visual_hm_DmelPolII.png | |
206 :alt: Heatmap of RNA Polymerase II ChIP-seq | |
207 | |
208 | |
209 You can find more details on the tool on the plotHeatmap doc page: https://deeptools.readthedocs.org/en/master/content/tools/plotHeatmap.html | |
210 | |
211 | |
212 ----- | |
213 | |
214 @REFERENCES@ | |
215 ]]> | |
216 </help> | |
217 <expand macro="citations" /> | |
218 </tool> |