comparison profiler.xml @ 0:b2886915ce68 draft default tip

Uploaded
author bgruening
date Tue, 10 Feb 2015 03:21:34 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b2886915ce68
1 <tool id="deeptools_profiler" name="profiler" version="@WRAPPER_VERSION@.0">
2 <description>
3 creates a profile plot for a score associated to genomic regions
4 </description>
5 <expand macro="requirements" />
6 <expand macro="stdio" />
7 <macros>
8 <token name="@BINARY@">profiler</token>
9 <import>deepTools_macros.xml</import>
10 </macros>
11 <command>
12 <![CDATA[
13 profiler
14
15 --matrixFile $matrixFile
16 --outFileName $outFileName
17
18 #if $output.showOutputSettings == "yes"
19 --plotFileFormat $output.outFileFormat
20
21 #if $output.saveData:
22 --outFileNameData '$outFileNameData'
23 #end if
24
25 #if $output.saveSortedRegions:
26 --outFileSortedRegions '$outFileSortedRegions'
27 #end if
28 #else
29 --plotFileFormat 'png'
30 #end if
31
32 #if $scaleRegions.showScaleRegionsOpt == "yes":
33 --startLabel '$scaleRegions.startLabel'
34 --endLabel '$scaleRegions.endLabel'
35 #end if
36
37 #if $advancedOpt.showAdvancedOpt == "yes":
38 #if $advancedOpt.averageType:
39 --averageType '$advancedOpt.averageType'
40 #end if
41 --plotHeight $advancedOpt.plotHeight
42 --plotWidth $advancedOpt.plotWidth
43 --plotType $advancedOpt.plotType
44
45 --regionsLabel '$advancedOpt.regionsLabel'
46
47 #if str($advancedOpt.plotTitle).strip() != "":
48 --plotTitle '$advancedOpt.plotTitle'
49 #end if
50
51 #if str($advancedOpt.colors).strip() != "":
52 --colors #echo ' '.join( ["'%s'" % $color for $color in $advancedOpt.colors.split()] )#
53 #end if
54
55 $advancedOpt.onePlotPerGroup
56
57 #if $advancedOpt.yMin:
58 --yMin $advancedOpt.yMin
59 #end if
60 #if $advancedOpt.yMax:
61 --yMax $advancedOpt.yMax
62 #end if
63
64 --xAxisLabel '$advancedOpt.xAxisLabel'
65 #if str($advancedOpt.yAxisLabel.value) != "None":
66 --yAxisLabel '$advancedOpt.yAxisLabel'
67 #end if
68
69 @KMEANS_CLUSTERING@
70
71 #end if
72 ]]>
73 </command>
74 <inputs>
75 <param name="matrixFile" format="bgzip" type="data" label="Matrix file from the computeMatrix tool"/>
76 <conditional name="scaleRegions">
77 <param name="showScaleRegionsOpt" type="select" label="The input matrix was computed in scale-regions mode">
78 <option value="no" selected="true">no</option>
79 <option value="yes">yes</option>
80 </param>
81 <when value="no" />
82 <when value="yes">
83 <param name="startLabel" type="text" value="TSS" size="10"
84 label="Label for the region start"
85 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;." />
86 <param name="endLabel" type="text" value="TES" size="10"
87 label="Label for the region end"
88 help="[only for scale-regions mode] Label shown in the plot for the region end. Default is TES (transcription end site)."/>
89 </when>
90 </conditional>
91
92 <expand macro="input_graphic_output_settings">
93 <expand macro="input_image_file_format" />
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 <param name="averageType" type="select" label="Define the type of statistic that should be used for the profile.">
104 <option value="mean" selected="true">mean</option>
105 <option value="median">median</option>
106 <option value="min">min</option>
107 <option value="max">max</option>
108 <option value="sum">sum</option>
109 <option value="std">std</option>
110 </param>
111 <param name="plotHeight" type="integer" value="5" min="3"
112 label="Plot height"
113 help="Height in cm. The default for the plot height is 5 centimeters. The minimum value is 3 cm." />
114 <param name="plotWidth" type="integer" value="8" min="1"
115 label="Plot width"
116 help="Width in cm. The default value is 8 centimeters. The minimum value is 1 cm." />
117 <param name="plotType" type="select" label="Plot type"
118 help="For the summary plot (profile) only. The &quot;lines&quot; option will plot the profile line based on the average type selected. The &quot;fill&quot; option fills the region between zero and the profile curve. The fill in color is semi transparent to distinguish different profiles. The &quot;add standard error&quot; option colors the region between the profile and the standard error of the data. As in the case of fill, a semi-transparent color is used. The option &quot;overlapped_lines&quot; plots each region values, one on top of the other; this option only works if &quot;one plot per proup&quot; is set.">
119 <option value="lines" selected="true">lines</option>
120 <option value="fill">fill</option>
121 <option value="se">add standard error</option>
122 <option value="overlapped_lines">overlapped lines</option>
123 </param>
124 <param name="regionsLabel" type="text" value="genes" size="30"
125 label="Labels for the regions plotted in the heatmap"
126 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;."/>
127 <param name="plotTitle" type="text" value="" size="30"
128 label="Title of the plot"
129 help="Title of the plot, to be printed on top of the generated image. Leave blank for no title." />
130 <param name="colors" type="text" value="" size="40"
131 label="List of colors to use for the plotted lines"
132 help="Color names and html hex strings (e.g. #eeff22) are accepted. The color names should be given separated by spaces. (--colors red blue green)">
133 <validator type="expression"
134 message="Only numbers, digits, '#' and spaces are allowed.">all(c in ' #abcdefghijklmnopqrstuvwxyz0123456789' for c in value)</validator>
135 </param>
136
137 <param name="onePlotPerGroup" type="boolean" truevalue="--onePlotPerGroup" falsevalue=""
138 label="Do one plot per group"
139 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."/>
140 <param name="yMin" type="float" value="" size="3" optional="true"
141 label="Minimum value for the Y-axis of the summary plot. Leave empty for automatic values"/>
142 <param name="yMax" type="float" value="" size="3" optional="true"
143 label="Maximum value for Y-axis of the summary plot. Leave empty for automatic values" />
144 <param name="xAxisLabel" type="text" value="gene distance (bp)" size="50"
145 label="Description for the x-axis label" />
146 <param name="yAxisLabel" type="text" value="" size="50"
147 label="Description for the y-axis label for the top panel" />
148
149 <expand macro="kmeans_clustering" />
150
151 </when>
152 </conditional>
153 </inputs>
154 <outputs>
155 <expand macro="output_image_file_format" />
156 <expand macro="output_graphic_outputs" />
157 </outputs>
158 <help>
159 <![CDATA[
160 **What it does**
161
162 This tool plots the average enrichments over all genomic
163 regions supplied to computeMarix. It requires that computeMatrix was successfully run.
164 It is a very useful complement to the heatmapper, especially in cases when you want to
165 compare the scores for many different groups. Like heatmapper, profiler does not change the
166 values that were compute by computeMatrix, but you can choose between
167 many different ways to color and display the plots.
168
169
170 .. image:: $PATH_TO_IMAGES/visual_profiler_DmelPolII.png
171 :alt: Meta-gene profile of Rna Polymerase II
172
173
174 You can find more details on the profiler wiki page: https://github.com/fidelram/deepTools/wiki/Visualizations#wiki-profiler
175
176
177 -----
178
179 @REFERENCES@
180 ]]>
181 </help>
182 <expand macro="citations" />
183 </tool>