0
|
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>
|
1
|
6 <requirement type="package" version="1.5.1_59e067cce039cb93add04823c9f51cab202f8c2b">deepTools</requirement>
|
0
|
7 </requirements>
|
|
8 <command>
|
|
9 profiler
|
1
|
10
|
|
11 ##ToDo
|
|
12 --numberOfProcessors 4
|
|
13
|
0
|
14 --matrixFile $matrixFile
|
1
|
15
|
0
|
16 #if $output.showOutputSettings == "yes"
|
|
17 #set newoutFileName=str($outFileName)+"."+str($output.outFileFormat)
|
|
18 --outFileName $newoutFilename
|
|
19 #if $output.outFileNameData:
|
|
20 --outFileNameData '$output.outFileNameData'
|
|
21 #end if
|
|
22
|
|
23 #if $output.outFileNameMatrix:
|
|
24 --outFileNameMatrix '$output.outFileNameMatrix'
|
|
25 #end if
|
|
26
|
|
27 #if $output.outFileSortedRegions:
|
|
28 --outFileSortedRegions '$output.outFileSortedRegions'
|
|
29 #end if
|
|
30 #else
|
1
|
31 #set newoutFileName=str($outFileName)+".png"
|
|
32 --outFileName $newoutFileName
|
0
|
33 #end if
|
|
34
|
|
35 #if $scaleRegions.showScaleRegionsOpt == "yes":
|
|
36 --startLabel $scaleRegions.startLabel
|
|
37 --endLabel $scaleRegions.endLabel
|
|
38 --refPointLabel $scaleRegions.refPointLabel
|
|
39 #end if
|
|
40
|
|
41 #if $advancedOpt.showAdvancedOpt == "yes"
|
|
42 #if $advancedOpt.averageType:
|
|
43 --averageType '$advancedOpt.averageType'
|
|
44 #end if
|
|
45 --plotHeight $advancedOpt.plotHeight
|
|
46 --plotWidth $advancedOpt.plotWidth
|
|
47 --plotType $advancedOpt.plotType
|
|
48
|
|
49 --regionsLabel '$advancedOpt.regionsLabel'
|
|
50
|
|
51 #if str($advancedOpt.plotTitle.value) != "None":
|
|
52 --plotTitle '$advancedOpt.plotTitle'
|
|
53 #end if
|
1
|
54
|
0
|
55 $advancedOpt.onePlotPerGroup
|
1
|
56
|
0
|
57 #if $advancedOpt.yMin:
|
|
58 --yMin $advancedOpt.yMin
|
|
59 #end if
|
|
60 #if $advancedOpt.yMax:
|
|
61 --yMax $advancedOpt.yMax
|
|
62 #end if
|
1
|
63
|
0
|
64 --xAxisLabel '$advancedOpt.xAxisLabel'
|
|
65 #if str($advancedOpt.yAxisLabel.value) != "None":
|
|
66 --yAxisLabel '$advancedOpt.yAxisLabel'
|
|
67 #end if
|
|
68 #end if
|
|
69 ; mv $newoutFileName $outFileName
|
|
70 </command>
|
|
71 <inputs>
|
|
72 <param name="matrixFile" format="bgzip" type="data" label="Matrix file from the computeMatrix tool"/>
|
|
73 <conditional name="scaleRegions">
|
|
74 <param name="showScaleRegionsOpt" type="select" label="The input matrix was computed in scale-regions mode">
|
|
75 <option value="no" selected="true">no</option>
|
|
76 <option value="yes">yes</option>
|
|
77 </param>
|
|
78 <when value="no" />
|
|
79 <when value="yes">
|
|
80 <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. "peak start"." />
|
|
81 <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)."/>
|
|
82 <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. "peak start" etc." />
|
|
83 </when>
|
|
84 </conditional>
|
|
85
|
|
86 <conditional name="output" >
|
|
87 <param name="showOutputSettings" type="select" label="Show advanced output settings" >
|
|
88 <option value="no" selected="true">no</option>
|
|
89 <option value="yes">yes</option>
|
|
90 </param>
|
|
91 <when value="no" />
|
|
92 <when value="yes">
|
|
93 <param name="outFileFormat" type="select" label="Image file format">
|
|
94 <option value="png" selected="true">png</option>
|
|
95 <option value="pdf">pdf</option>
|
|
96 <option value="svg">svg</option>
|
|
97 <option value="eps">eps</option>
|
|
98 <option value="emf">emf</option>
|
|
99 </param>
|
|
100 <param name="saveData" type="boolean" label="Save the data underlying data for the average profile"/>
|
|
101 <param name="saveMatrix" type="boolean" label="Save the the matrix of values underlying the heatmap"/>
|
|
102 <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."/>
|
|
103 </when>
|
|
104 </conditional>
|
|
105
|
|
106 <conditional name="advancedOpt">
|
|
107 <param name="showAdvancedOpt" type="select" label="Show advanced options" >
|
|
108 <option value="no" selected="true">no</option>
|
|
109 <option value="yes">yes</option>
|
|
110 </param>
|
|
111 <when value="no" />
|
|
112 <when value="yes">
|
|
113 <param name="averageType" type="select" label="Define the type of statistic that should be used for the profile.">
|
|
114 <option value="mean" selected="true">mean</option>
|
|
115 <option value="median">median</option>
|
|
116 <option value="min">min</option>
|
|
117 <option value="max">max</option>
|
|
118 <option value="sum">sum</option>
|
|
119 <option value="std">std</option>
|
|
120 </param>
|
|
121 <param name="plotHeight" type="integer" value="5" min="3"
|
|
122 label="Plot height"
|
|
123 help="Height in cm. The default for the plot height is 5 centimeters. The minimum value is 3 cm." />
|
|
124 <param name="plotWidth" type="integer" value="8" min="1"
|
|
125 label="Plot width"
|
|
126 help="Width in cm. The default value is 8 centimeters. The minimum value is 1 cm." />
|
|
127 <param name="plotType" type="select" label="Plot type"
|
|
128 help="For the summary plot (profile) only. The "lines" option will plot the profile line based on the average type selected. The "fill" option fills the region between zero and the profile curve. The fill in color is semi transparent to distinguish different profiles. The "std" 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 "overlapped_lines" plots each region values, one on top of the other; this option only works if "one plot per proup" is set.">
|
|
129 <option value="lines" selected="true">lines</option>
|
|
130 <option value="fill">fill</option>
|
|
131 <option value="std">std</option>
|
|
132 <option value="overlapped_lines">overlapped lines</option>
|
|
133 </param>
|
|
134
|
|
135 <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, "label1, label2"."/>
|
|
136 <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." />
|
|
137 <param name="onePlotPerGroup" type="boolean" truevalue="--onePlotPerGroup" falsevalue="" label="Do one plot per group" help="When the region file contains groups separated by "#", 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."/>
|
|
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 <param name="xAxisLabel" type="text" value="gene distance (bp)" size="50" label="Description for the x-axis label" />
|
|
141 <param name="yAxisLabel" type="text" value="" size="50" label="Description for the y-axis label for the top panel" />
|
|
142 </when>
|
|
143 </conditional>
|
|
144 </inputs>
|
|
145 <outputs>
|
|
146 <data format="png" name="outFileName" label="${tool.name} image">
|
|
147 <change_format>
|
|
148 <when input="output.outFileFormat" value="pdf" format="pdf" />
|
|
149 <when input="output.outFileFormat" value="svg" format="svg" />
|
|
150 <when input="output.outFileFormat" value="eps" format="eps" />
|
|
151 <when input="output.outFileFormat" value="emf" format="emf" />
|
|
152 </change_format>
|
|
153 </data>
|
|
154 <data format="tabular" name="outFileNameData" label="${tool.name} raw plot data">
|
|
155 <filter>(output['showOutputSettings'] == 'yes' and output['saveData'] == True)</filter>
|
|
156 </data>
|
|
157 <data format="tabular" name="outFileNameMatrix" label="${tool.name} matrix of heatmap values">
|
|
158 <filter>(output['showOutputSettings'] == 'yes' and output['saveMatrix'] == True)</filter>
|
|
159 </data>
|
|
160 <data format="bed" name="outFileSortedRegions" label="${tool.name} sorted/filtered regions">
|
|
161 <filter>(output['showOutputSettings'] == 'yes' and output['saveSortedRegions'] == True)</filter>
|
|
162 </data>
|
|
163 </outputs>
|
|
164 <help>
|
|
165
|
|
166 **What it does**
|
|
167
|
|
168 This tool creates a profile plot for a score associated to genomic regions.
|
|
169 Typically, these regions are genes, but any other regions defined in a BED or
|
|
170 GFF format will work. A preprocessed matrix generated by the tool
|
|
171 computeMatrix is required.
|
|
172
|
|
173 -----
|
|
174
|
|
175 .. class:: infomark
|
|
176
|
|
177 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`_.
|
|
178
|
|
179 This tool is developed by the `Bioinformatics and Deep-Sequencing Unit`_ at the `Max Planck Institute for Immunobiology and Epigenetics`_.
|
|
180
|
|
181
|
|
182 .. _Bioinformatics and Deep-Sequencing Unit: http://www3.ie-freiburg.mpg.de/facilities/research-facilities/bioinformatics-and-deep-sequencing-unit/
|
|
183 .. _Max Planck Institute for Immunobiology and Epigenetics: http://www3.ie-freiburg.mpg.de
|
|
184 .. _Fidel Ramirez: ramirez@ie-freiburg.mpg.de
|
|
185
|
|
186 </help>
|
|
187 </tool>
|