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