comparison profiler.xml @ 0:09b65c12a75a draft

Uploaded
author bgruening
date Sat, 03 Aug 2013 13:42:12 -0400
parents
children 21d563d5f2b2
comparison
equal deleted inserted replaced
-1:000000000000 0:09b65c12a75a
1 <tool id="dt_profiler" name="profiler" version="1.0">
2 <description>
3 creates a profile plot for a score associated to genomic regions
4 </description>
5 <requirements>
6 <requirement type="package" version="1.5.1_98e5d8a61431ea8605c0643d991a1a5d8999b4dc">deepTools</requirement>
7 </requirements>
8 <command>
9 profiler
10 --matrixFile $matrixFile
11
12 #if $output.showOutputSettings == "yes"
13 #set newoutFileName=str($outFileName)+"."+str($output.outFileFormat)
14 --outFileName $newoutFilename
15 #if $output.outFileNameData:
16 --outFileNameData '$output.outFileNameData'
17 #end if
18
19 #if $output.outFileNameMatrix:
20 --outFileNameMatrix '$output.outFileNameMatrix'
21 #end if
22
23 #if $output.outFileSortedRegions:
24 --outFileSortedRegions '$output.outFileSortedRegions'
25 #end if
26 #else
27 #set newoutFileName=str($outFileName)+".png"
28 --outFileName $newoutFileName
29 #end if
30
31 #if $scaleRegions.showScaleRegionsOpt == "yes":
32 --startLabel $scaleRegions.startLabel
33 --endLabel $scaleRegions.endLabel
34 --refPointLabel $scaleRegions.refPointLabel
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.value) != "None":
48 --plotTitle '$advancedOpt.plotTitle'
49 #end if
50
51 $advancedOpt.onePlotPerGroup
52
53 #if $advancedOpt.yMin:
54 --yMin $advancedOpt.yMin
55 #end if
56 #if $advancedOpt.yMax:
57 --yMax $advancedOpt.yMax
58 #end if
59
60 --xAxisLabel '$advancedOpt.xAxisLabel'
61 #if str($advancedOpt.yAxisLabel.value) != "None":
62 --yAxisLabel '$advancedOpt.yAxisLabel'
63 #end if
64 #end if
65 ; mv $newoutFileName $outFileName
66 </command>
67
68 <inputs>
69 <param name="matrixFile" format="bgzip" type="data" label="Matrix file from the computeMatrix tool"/>
70 <conditional name="scaleRegions">
71 <param name="showScaleRegionsOpt" type="select" label="The input matrix was computed in scale-regions mode">
72 <option value="no" selected="true">no</option>
73 <option value="yes">yes</option>
74 </param>
75 <when value="no" />
76 <when value="yes">
77 <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;." />
78 <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)."/>
79 <param name="refPointLabel" 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." />
80 </when>
81 </conditional>
82
83 <conditional name="output" >
84 <param name="showOutputSettings" type="select" label="Show advanced output settings" >
85 <option value="no" selected="true">no</option>
86 <option value="yes">yes</option>
87 </param>
88 <when value="no" />
89 <when value="yes">
90 <param name="outFileFormat" type="select" label="Image file format">
91 <option value="png" selected="true">png</option>
92 <option value="pdf">pdf</option>
93 <option value="svg">svg</option>
94 <option value="eps">eps</option>
95 <option value="emf">emf</option>
96 </param>
97 <param name="saveData" type="boolean" label="Save the data underlying data for the average profile"/>
98 <param name="saveMatrix" type="boolean" label="Save the the matrix of values underlying the heatmap"/>
99 <param name="saveSortedRegions" type="boolean" label="Save the regions after skipping zeros or min/max threshold values" help="The order of the regions in the file follows the sorting order selected. This is useful, for example, to generate other heatmaps keeping the sorting of the first heatmap."/>
100 </when>
101 </conditional>
102
103 <conditional name="advancedOpt">
104 <param name="showAdvancedOpt" type="select" label="Show advanced options" >
105 <option value="no" selected="true">no</option>
106 <option value="yes">yes</option>
107 </param>
108 <when value="no" />
109 <when value="yes">
110 <param name="averageType" type="select" label="Define the type of statistic that should be used for the profile.">
111 <option value="mean" selected="true">mean</option>
112 <option value="median">median</option>
113 <option value="min">min</option>
114 <option value="max">max</option>
115 <option value="sum">sum</option>
116 <option value="std">std</option>
117 </param>
118
119 <param name="plotHeight" type="integer" value="5" min="3"
120 label="Plot height"
121 help="Height in cm. The default for the plot height is 5 centimeters. The minimum value is 3 cm." />
122 <param name="plotWidth" type="integer" value="8" min="1"
123 label="Plot width"
124 help="Width in cm. The default value is 8 centimeters. The minimum value is 1 cm." />
125
126 <param name="plotType" type="select" label="Plot type"
127 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;std&quot; option colors the region between the profile and the standard deviation 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.">
128 <option value="lines" selected="true">lines</option>
129 <option value="fill">fill</option>
130 <option value="std">std</option>
131 <option value="overlapped_lines">overlapped lines</option>
132 </param>
133
134 <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;."/>
135 <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." />
136 <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."/>
137
138 <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"/>
139 <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"/>
140
141 <param name="xAxisLabel" type="text" value="gene distance (bp)" size="50" label="Description for the x-axis label" />
142 <param name="yAxisLabel" type="text" value="" size="50" label="Description for the y-axis label for the top panel" />
143 </when>
144 </conditional>
145 </inputs>
146 <outputs>
147 <data format="png" name="outFileName" label="${tool.name} image">
148 <change_format>
149 <when input="output.outFileFormat" value="pdf" format="pdf" />
150 <when input="output.outFileFormat" value="svg" format="svg" />
151 <when input="output.outFileFormat" value="eps" format="eps" />
152 <when input="output.outFileFormat" value="emf" format="emf" />
153 </change_format>
154 </data>
155 <data format="tabular" name="outFileNameData" label="${tool.name} raw plot data">
156 <filter>(output['showOutputSettings'] == 'yes' and output['saveData'] == True)</filter>
157 </data>
158 <data format="tabular" name="outFileNameMatrix" label="${tool.name} matrix of heatmap values">
159 <filter>(output['showOutputSettings'] == 'yes' and output['saveMatrix'] == True)</filter>
160 </data>
161 <data format="bed" name="outFileSortedRegions" label="${tool.name} sorted/filtered regions">
162 <filter>(output['showOutputSettings'] == 'yes' and output['saveSortedRegions'] == True)</filter>
163 </data>
164 </outputs>
165 <help>
166
167 **What it does**
168
169 This tool creates a profile plot for a score associated to genomic regions.
170 Typically, these regions are genes, but any other regions defined in a BED or
171 GFF format will work. A preprocessed matrix generated by the tool
172 computeMatrix is required.
173
174 -----
175
176 .. class:: infomark
177
178 Please acknowledge that this tool **is still in development** and we will be very happy to receive feedback from the users. If you run into any trouble please sent an email to `Fidel Ramirez`_.
179
180 This tool is developed by the `Bioinformatics and Deep-Sequencing Unit`_ at the `Max Planck Institute for Immunobiology and Epigenetics`_.
181
182
183 .. _Bioinformatics and Deep-Sequencing Unit: http://www3.ie-freiburg.mpg.de/facilities/research-facilities/bioinformatics-and-deep-sequencing-unit/
184 .. _Max Planck Institute for Immunobiology and Epigenetics: http://www3.ie-freiburg.mpg.de
185 .. _Fidel Ramirez: ramirez@ie-freiburg.mpg.de
186
187 </help>
188
189 </tool>