annotate heatmapper.xml @ 11:baf4283e2d7f draft

Uploaded
author bgruening
date Sat, 14 Dec 2013 07:00:55 -0500
parents 135f3bae5c56
children aea72b24dea0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
1 <tool id="deeptools_heatmapper" name="heatmapper" version="1.0.2">
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
2 <description>creates a heatmap for a score associated to genomic regions</description>
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
3 <expand macro="requirements"/>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
4 <expand macro="stdio" />
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
5 <macros>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
6 <import>deepTools_macros.xml</import>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
7 </macros>
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
8 <command>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
9 heatmapper
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
11 --matrixFile $matrixFile
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
12 --outFileName $outFileName
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
13
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
14 #if $output.showOutputSettings == "yes"
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
15 --plotFileFormat $output.outFileFormat
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
16 #if $outFileNameData:
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
17 --outFileNameData '$outFileNameData'
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
18 #end if
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
19
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
20 #if $outFileNameMatrix:
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
21 --outFileNameMatrix '$outFileNameMatrix'
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
22 #end if
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
23
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
24 #if $outFileSortedRegions:
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
25 --outFileSortedRegions '$outFileSortedRegions'
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
26 #end if
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
27 #else
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
28 --plotFileFormat 'png'
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
29 #end if
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
30
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
31 #if $advancedOpt.showAdvancedOpt == "yes"
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
32 #if $advancedOpt.sortRegions:
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
33 --sortRegions '$advancedOpt.sortRegions'
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
34 #end if
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
35
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
36 #if $advancedOpt.sortUsing:
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
37 --sortUsing '$advancedOpt.sortUsing'
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
38 #end if
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
39
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
40 #if $advancedOpt.averageTypeSummaryPlot:
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
41 --averageTypeSummaryPlot '$advancedOpt.averageTypeSummaryPlot'
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
42 #end if
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
43
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
44 #if str($advancedOpt.missingDataColor.value) != "None":
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
45 --missingDataColor '$advancedOpt.missingDataColor'
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
46 #end if
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
47
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
48 --colorMap '$advancedOpt.colorMap'
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
49
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
50 #if $advancedOpt.zMin:
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
51 --zMin $advancedOpt.zMin
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
52 #end if
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
53 #if $advancedOpt.zMax:
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
54 --zMax $advancedOpt.zMax
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
55 #end if
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
56
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
57 #if $advancedOpt.yMin:
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
58 --yMin $advancedOpt.yMin
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
59 #end if
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
60 #if $advancedOpt.yMax:
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
61 --yMax $advancedOpt.yMax
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
62 #end if
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
63
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
64 --xAxisLabel '$advancedOpt.xAxisLabel'
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
65 --yAxisLabel '$advancedOpt.yAxisLabel'
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
66
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
67 --heatmapWidth $advancedOpt.heatmapWidth
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
68 --heatmapHeight $advancedOpt.heatmapHeight
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
69
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
70 --whatToShow '$advancedOpt.whatToShow'
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
71
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
72 --startLabel '$advancedOpt.startLabel'
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
73 --endLabel '$advancedOpt.endLabel'
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
74 --refPointLabel '$advancedOpt.referencePointLabel'
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
75 --regionsLabel '$advancedOpt.regionsLabel'
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
76
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
77 #if str($advancedOpt.plotTitle.value) != "None":
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
78 --plotTitle '$advancedOpt.plotTitle'
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
79 #end if
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
80
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
81 $advancedOpt.onePlotPerGroup
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
82 #end if
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
83 </command>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
84 <inputs>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
85 <param name="matrixFile" format="bgzip" type="data" label="Matrix file from the computeMatrix tool"/>
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
86
11
baf4283e2d7f Uploaded
bgruening
parents: 10
diff changeset
87 <expand macro="graphic_output_settings">
baf4283e2d7f Uploaded
bgruening
parents: 10
diff changeset
88 <expand macro="input_image_file_format" />
baf4283e2d7f Uploaded
bgruening
parents: 10
diff changeset
89 </expand>
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
90
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
91 <conditional name="advancedOpt" >
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
92 <param name="showAdvancedOpt" type="select" label="Show advanced options" >
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
93 <option value="no" selected="true">no</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
94 <option value="yes">yes</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
95 </param>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
96 <when value="no" />
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
97 <when value="yes">
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
98 <param name="sortRegions" type="select" label="Sort regions"
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
99 help="Whether the heatmap should present the regions sorted. The default is to sort in descending order based on the mean value per region.">
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
100 <option value="no">no ordering</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
101 <option value="descend" selected="true">descending order</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
102 <option value="ascend">ascending order</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
103 </param>
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
104
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
105 <param name="sortUsing" type="select" label="Method used for sorting" help="For each row the method is computed." >
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
106 <option value="mean" selected="true">mean</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
107 <option value="median">median</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
108 <option value="min">min</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
109 <option value="max">max</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
110 <option value="sum">sum</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
111 <option value="region_length">region length</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
112 </param>
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
113
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
114 <param name="averageTypeSummaryPlot" type="select" label="Type of statistic that should be plotted in the summary image above the heatmap">
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
115 <option value="mean" selected="true">mean</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
116 <option value="median">median</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
117 <option value="min">min</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
118 <option value="max">max</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
119 <option value="sum">sum</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
120 <option value="std">std</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
121 </param>
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
122
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
123 <param name="missingDataColor" type="text" label="Missing data color" value="black" optional="true" help="If 'Represent missing data as zero' is not set, such cases will be colored in black by default. 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). Also color names can be used, see a list here: http://packages.python.org/ete2/reference/reference_svgcolors.html. Alternatively colors can be specified using the #rrggbb notation." />
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
124
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
125 <expand macro="colormap" />
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
126
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
127 <param name="zMin" type="float" value="" size="3" label="Minimum value for the heatmap intensities. Leave empty for automatic values" optional="true"/>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
128 <param name="zMax" type="float" value="" size="3" label="Maximum value for the heatmap intensities. Leave empty for automatic values" optional="true"/>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
129 <param name="yMin" type="float" value="" size="3" label="Minimum value for the Y-axis of the summary plot. Leave empty for automatic values" optional="true"/>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
130 <param name="yMax" type="float" value="" size="3" label="Maximum value for Y-axis of the summary plot. Leave empty for automatic values" optional="true"/>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
131
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
132 <param name="xAxisLabel" type="text" value="distance from TSS (bp)" size="200" label="Description for the x-axis label" />
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
133 <param name="yAxisLabel" type="text" value="genes" size="30" label="Description for the y-axis label for the top panel" />
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
134
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
135 <param name="heatmapWidth" type="float" value="7.5" min="1" max="100" label="Heatmap width in cm" help="The minimum value is 1 and the maximum is 100."/>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
136 <param name="heatmapHeight" type="float" value="25" min="3" max="100" label="Heatmap height in cm" help="The minimum value is 3 and the maximum is 100."/>
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
137
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
138 <param name="whatToShow" type="select" label="What to show" help ="The default is to include a summary or profile plot on top of the heatmap and a heatmap colorbar.">
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
139 <option value="plot, heatmap and colorbar" selected="true">summary plot, heatmap and colorbar</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
140 <option value="plot only">summary plot only</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
141 <option value="plot and heatmap">summary plot and heatmap (no colorbar)</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
142 <option value="heatmap only">heatmap only</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
143 <option value="heatmap and colorbar">heatmap and colorbar</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
144 <option value="colorbar only">colorbar only</option>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
145 </param>
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
146
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
147 <param name="startLabel" type="text" value="TSS" size="10" label="Label for the region start" 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. &quot;peak start&quot;." />
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
148 <param name="endLabel" type="text" value="TES" size="10" label="Label for the region end" help="[only for scale-regions mode] Label shown in the plot for the region end. Default is TES (transcription end site)."/>
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
149
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
150 <param name="referencePointLabel" type="text" value="TSS" size="10" label="Reference point label" help ="[only for scale-regions mode] 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. &quot;peak start&quot; etc." />
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
151 <param name="regionsLabel" type="text" value="genes" size="30" label="Labels for the regions plotted in the heatmap" help="If more than one region is being plotted a list of labels separated by comma and limited by quotes, is required. For example, &quot;label1, label2&quot;."/>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
152 <param name="plotTitle" type="text" value="" size="30" label="Title of the plot" help="Title of the plot, to be printed on top of the generated image. Leave blank for no title." />
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
153 <param name="onePlotPerGroup" type="boolean" truevalue="--onePlotPerGroup" falsevalue="" label="Do one plot per group" help="When the region file contains groups separated by &quot;#&quot;, the default is to plot the averages for the distinct plots in one plot. If this option is set, each group will get its own plot, stacked on top of each other."/>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
154 </when>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
155 </conditional>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
156 </inputs>
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
157 <outputs>
11
baf4283e2d7f Uploaded
bgruening
parents: 10
diff changeset
158 <expand macro="output_graphic_outputs">
baf4283e2d7f Uploaded
bgruening
parents: 10
diff changeset
159 <expand macro="output_image_file_format" />
baf4283e2d7f Uploaded
bgruening
parents: 10
diff changeset
160 </expand>
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
161 </outputs>
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
162 <tests>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
163 <test>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
164 <param name="matrixFile" value="master.mat.gz" ftype="bgzip" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
165 <output name="outFileName" file="master.png" ftype="png" compare="sim_size" delta="100" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
166 </test>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
167 </tests>
10
135f3bae5c56 Uploaded
bgruening
parents: 0
diff changeset
168 <help>
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
169
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
170 **What it does**
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
171
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
172 The heatmapper visualizes scores associated with genomic regions, for example ChIP enrichment values around the TSS of genes.
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
173 Those values can be visualized individually along each of the regions provided by the user in INTERVAL or BED format.
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
174 In addition to the heatmap, an average profile plot is plotted on top of the heatmap (can be turned off by the user;
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
175 it can also be generated separately by the tool profiler).
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
176 We implemented vast optional parameters and we encourage you to play around with the min/max values displayed in the heatmap as well as
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
177 with the different coloring options. If you would like to plot heatmaps for different groups of genomic regions individually,
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
178 e.g. one plot per chromosome, simply supply each group as an individual BED file.
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
179
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
180
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
181 .. image:: $PATH_TO_IMAGES/visual_hm_DmelPolII.png
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
182 :alt: Heatmap of RNA Polymerase II ChIP-seq
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
183
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
184
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
185 -----
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
186
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
187 .. class:: infomark
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
188
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
189 @REFERENCES@
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
190
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
191 </help>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
192 </tool>