annotate computeMatrix.xml @ 5:c54d31467be4 draft

Uploaded
author bgruening
date Fri, 29 Nov 2013 08:59:04 -0500
parents d957e25e18a3
children c53a73b8eef9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
1 <tool id="deeptools_computeMatrix" name="computeMatrix" version="1.0">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
2 <description>summarizes and prepares an intermediary file containing scores associated with genomic regions that can be used afterwards to plot a heatmap or a profile</description>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
3 <expand macro="requirements" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
4 <macros>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
5 <import>deepTools_macros.xml</import>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
6 </macros>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
7 <command>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
8 #import tempfile
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
9
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
10 #set $temp_input_handle = tempfile.NamedTemporaryFile()
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
11 #set $temp_input_path = $temp_input_handle.name
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
12 #silent $temp_input_handle.close()
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
13
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
14 #for $rf in $regionsFiles:
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
15 cat "$rf.regionsFile" >> $temp_input_path;
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
16 #if str($rf.label.value).strip():
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
17 echo "\#$rf.label.value" >> $temp_input_path;
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
18 #else:
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
19 echo "\#$rf.regionsFile.name" >> $temp_input_path;
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
20 #end if
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
21 #end for
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
22
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
23
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
24 computeMatrix
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
25
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
26 $mode.mode_select
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
27 --regionsFileName '$temp_input_path'
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
28 --scoreFileName '$scoreFile'
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
29 --outFileName '$outFileName'
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
30
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
31 @THREADS@
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
32
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
33 #if $output.showOutputSettings == "yes"
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
34 #if $output.saveData:
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
35 --outFileNameData '$outFileNameData'
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
36 #end if
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
37 #if $output.saveMatrix:
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
38 --outFileNameMatrix '$outFileNameMatrix'
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
39 #end if
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
40
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
41 #if $output.saveSortedRegions:
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
42 --outFileSortedRegions '$outFileSortedRegions'
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
43 #end if
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
44 #end if
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
45
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
46 #if $mode.mode_select == "reference-point":
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
47 --referencePoint $mode.referencePoint
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
48 $mode.nanAfterEnd
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
49 --beforeRegionStartLength $mode.beforeRegionStartLength
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
50 --afterRegionStartLength $mode.afterRegionStartLength
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
51 #else
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
52 --regionBodyLength $mode.regionBodyLength
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
53 --startLabel $mode.startLabel
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
54 --endLabel $mode.endLabel
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
55 #if $mode.regionStartLength.regionStartLength_select == "yes":
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
56 --beforeRegionStartLength $mode.regionStartLength.beforeRegionStartLength
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
57 --afterRegionStartLength $mode.regionStartLength.afterRegionStartLength
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
58 #end if
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
59 #end if
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
60
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
61 #if $advancedOpt.showAdvancedOpt == "yes":
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
62 --sortRegions '$advancedOpt.sortRegions'
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
63 --sortUsing '$advancedOpt.sortUsing'
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
64 --averageTypeBins '$advancedOpt.averageTypeBins'
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
65 $advancedOpt.missingDataAsZero
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
66 $advancedOpt.skipZeros
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
67 --binSize $advancedOpt.binSize
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
68
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
69 #if $advancedOpt.minThreshold:
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
70 --minThreshold $advancedOpt.minThreshold
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
71 #end if
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
72 #if $advancedOpt.maxThreshold:
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
73 --maxThreshold $advancedOpt.maxThreshold
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
74 #end if
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
75 #if $advancedOpt.scale:
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
76 --scale $advancedOpt.scale
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
77 #end if
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
78
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
79 #end if
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
80 ; rm $temp_input_path
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
81
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
82 </command>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
83 <inputs>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
84
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
85 <repeat name="regionsFiles" title="regions to plot" min="1">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
86 <param name="regionsFile" format="bed" type="data" label="Regions to plot" help="File, in BED format, containing the regions to plot."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
87 <param name="label" type="text" size="30" optional="true" value="" label="Label" help="Label to use in the output."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
88 </repeat>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
89
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
90 <param name="scoreFile" format="bigwig" type="data" label="Score file" help="Should be a bigWig file (containing a score, usually covering the whole genome). You can generate a bigWig file either from a bedGraph or WIG file using UCSC tools or from a BAM file using the deepTool bamCoverage."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
91
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
92 <conditional name="mode" >
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
93 <param name="mode_select" type="select" label="computeMatrix has two main output options" help="In the scale-regions mode, all regions in the BED file are stretched or shrunk to the same length (bp) that is indicated by the user. Reference-point refers to a position within the BED regions (e.g start of region). In the reference-point mode only those genomic positions before (downstream) and/or after (upstream) the reference point will be plotted.">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
94 <option value="scale-regions" selected="true">scale-regions</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
95 <option value="reference-point">reference-point</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
96 </param>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
97
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
98 <when value="scale-regions" >
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
99 <param name="regionBodyLength" type="integer" value="500" label="Distance in bp to which all regions are going to be fitted"/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
100 <param name="startLabel" type="text" value="TSS" size="10" label="Label for the region start" help ="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;." />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
101 <param name="endLabel" type="text" value="TES" size="10" label="Label for the region end" help="Label shown in the plot for the region end. Default is TES (transcription end site)."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
102 <conditional name="regionStartLength">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
103 <param name="regionStartLength_select" type="select" label="Set distance up- and downstream of the given regions">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
104 <option value="no" selected="true">no</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
105 <option value="yes">yes</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
106 </param>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
107 <when value="no" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
108 <when value="yes">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
109 <param name="beforeRegionStartLength" type="integer" value="1000" min="1" optional="true" label="Distance upstream of the start site of the regions defined in the region file" help="If the regions are genes, this would be the distance upstream of the transcription start site."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
110
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
111 <param name="afterRegionStartLength" type="integer" value="1000" min="1" optional="true" label="Distance downstream of the end site of the given regions" help="If the regions are genes, this would be the distance downstream of the transcription end site."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
112 </when>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
113 </conditional>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
114 </when>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
115
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
116 <when value="reference-point">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
117 <param name="referencePoint" type="select" label="The reference point for the plotting">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
118 <option value="TSS" selected="true">region start (TSS)</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
119 <option value="TES" selected="true">region end (TES)</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
120 <option value="center" selected="true">center of the region</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
121 </param>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
122 <param name="nanAfterEnd" type="boolean" truevalue="--nanAfterEnd" falsevalue="" label="Discard any values after the region end" help="This is useful to visualize the region end when not using the scale-regions mode and when the reference-point is set to the TSS."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
123 <param name="beforeRegionStartLength" type="integer" value="1000" min="1" label="Distance upstream of the start site of the regions defined in the region file" help="If the regions are genes, this would be the distance upstream of the transcription start site."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
124
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
125 <param name="afterRegionStartLength" type="integer" value="1000" min="1" label="Distance downstream of the end site of the given regions" help="If the regions are genes, this would be the distance downstream of the transcription end site."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
126 </when>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
127 </conditional>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
128
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
129 <conditional name="output" >
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
130 <param name="showOutputSettings" type="select" label="Show additional output options" >
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
131 <option value="no" selected="true">no</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
132 <option value="yes">yes</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
133 </param>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
134 <when value="no" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
135 <when value="yes">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
136 <param name="saveData" type="boolean" label="Save the averages per matrix column into a text file" help="This corresponds to the underlying data used to plot a summary profile."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
137 <param name="saveMatrix" type="boolean" label="Save the matrix of values underlying the heatmap" help="This matrix can easily be loaded into R or other programs."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
138 <param name="saveSortedRegions" type="boolean" label="Save the regions after skiping 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."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
139 </when>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
140 </conditional>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
141
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
142 <conditional name="advancedOpt" >
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
143 <param name="showAdvancedOpt" type="select" label="Show advanced options" >
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
144 <option value="no" selected="true">no</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
145 <option value="yes">yes</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
146 </param>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
147 <when value="no" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
148 <when value="yes">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
149 <param name="binSize" type="integer" value="100" min="1" optional="true" label="Length, in base pairs, of the non-overlapping bin for averaging the score over the regions length" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
150 <param name="sortRegions" type="select" label="Sort regions"
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
151 help="Whether the output file should present the regions sorted.">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
152 <option value="no" selected="true">no ordering</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
153 <option value="descend">descending order</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
154 <option value="ascend">ascending order</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
155 </param>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
156
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
157 <param name="sortUsing" type="select" label="Method used for sorting." help="The value is computed for each row." >
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
158 <option value="mean" selected="true">mean</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
159 <option value="median">median</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
160 <option value="min">min</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
161 <option value="max">max</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
162 <option value="sum">sum</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
163 <option value="region_length">region length</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
164 </param>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
165
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
166 <param name="averageTypeBins" type="select" label="Define the type of statistic that should be displayed." help="The value is computed for each bin.">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
167 <option value="mean" selected="true">mean</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
168 <option value="median">median</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
169 <option value="min">min</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
170 <option value="max">max</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
171 <option value="sum">sum</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
172 <option value="std">std</option>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
173 </param>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
174
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
175 <param name="missingDataAsZero" type="boolean" truevalue="--missingDataAsZero" falsevalue="" label="Indicate missing data as zero" help="Set to &quot;yes&quot;, if missing data should be indicated as zeros. Default is to ignore such cases which will be depicted as black areas in the heatmap. (see &quot;Missing data color&quot; options of the heatmapper for additional options)."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
176 <param name="skipZeros" type="boolean" truevalue="--skipZeros" falsevalue="" label="Skip zeros" help="Whether regions with only scores of zero should be included or not. Default is to include them."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
177 <param name="minThreshold" type="float" optional="true" label="Minimum threshold" help="Any region containing a value that is equal or less than this numeric value will be skipped. This is useful to skip, for example, genes where the read count is zero for any of the bins. This could be the result of unmappable areas and can bias the overall results."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
178 <param name="maxThreshold" type="float" optional="true" label="Maximum threshold" help="Any region containing a value that is equal or higher that this numeric value will be skipped. The max threshold is useful to skip those few regions with very high read counts (e.g. major satellites) that may bias the average values."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
179 <param name="scale" type="float" optional="true" label="Scale" help="If set, all values are multiplied by this number."/>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
180 </when>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
181 </conditional>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
182
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
183 </inputs>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
184 <outputs>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
185 <data format="bgzip" name="outFileName" label="${tool.name} on ${on_string}: matrix">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
186 </data>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
187 <data format="tabular" name="outFileNameData" label="${tool.name} on ${on_string}: raw data">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
188 <filter>(output['showOutputSettings'] == 'yes' and output['saveData'] == True)</filter>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
189 </data>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
190 <data format="tabular" name="outFileNameMatrix" label="${tool.name} on ${on_string}: matrix of values">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
191 <filter>(output['showOutputSettings'] == 'yes' and output['saveMatrix'] == True)</filter>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
192 </data>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
193 <data format="bed" name="outFileSortedRegions" label="${tool.name} on ${on_string}: sorted/filtered regions">
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
194 <filter>(output['showOutputSettings'] == 'yes' and output['saveSortedRegions'] == True)</filter>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
195 </data>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
196 </outputs>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
197 <!--
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
198 computeMatrix -S test.bw -R test2.bed -a 100 -b 100 -bs 1
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
199 -->
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
200 <tests>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
201 <test>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
202 <param name="regionsFile" value="test2.bed" ftype="bed" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
203 <param name="scoreFile" value="test.bw" ftype="bigwig" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
204 <param name="advancedOpt.binSize" value="1" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
205 <param name="mode.beforeRegionStartLength" value="100" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
206 <param name="mode.afterRegionStartLength" value="100" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
207 <output name="outFileName" file="master.mat.gz" ftype="bgzip" compare="sim_size" delta="100" />
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
208 </test>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
209 </tests>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
210 <help>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
211
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
212 **What it does**
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
213
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
214 This tool summarizes and prepares an intermediary file
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
215 containing scores associated with genomic regions that can be used
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
216 afterwards to plot a heatmap or a profile.
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
217
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
218 Genomic regions can really be anything - genes, parts of genes, ChIP-seq
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
219 peaks, favorite genome regions... as long as you provide a proper file
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
220 in BED or INTERVAL format. This tool can also be used to filter and sort
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
221 regions according to their score.
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
222
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
223
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
224 .. image:: $PATH_TO_IMAGES/flowChart_computeMatrixetc.png
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
225 :alt: Relationship between computeMatrix, heatmapper and profiler
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
226
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
227
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
228 -----
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
229
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
230 .. class:: infomark
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
231
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
232 @REFERENCES@
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
233
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
234 </help>
d957e25e18a3 Uploaded
bgruening
parents:
diff changeset
235 </tool>