comparison bamCompare.xml @ 18:5ea8782d650c draft

Uploaded
author bgruening
date Mon, 03 Feb 2014 13:44:35 -0500
parents ef65d6b68ccc
children 69ff16ba27bd
comparison
equal deleted inserted replaced
17:ef65d6b68ccc 18:5ea8782d650c
1 <tool id="deeptools_bamCompare" name="bamCompare" version="1.0.2"> 1 <tool id="deeptools_bamCompare" name="bamCompare" version="1.0.3">
2 <description>normalizes and compares two BAM files to obtain the ratio, log2ratio or difference. (bam2bigwig)</description> 2 <description>normalizes and compares two BAM files to obtain the ratio, log2ratio or difference. (bam2bigwig)</description>
3 <expand macro="requirements" /> 3 <expand macro="requirements" />
4 <expand macro="stdio" /> 4 <expand macro="stdio" />
5 <macros> 5 <macros>
6 <token name="@BINARY@">bamCompare</token>
6 <import>deepTools_macros.xml</import> 7 <import>deepTools_macros.xml</import>
7 </macros> 8 </macros>
8 <command> 9 <command>
9 bamCompare 10 bamCompare
10 11
34 35
35 #if $comparison.type=='subtract': 36 #if $comparison.type=='subtract':
36 #if $comparison.normalization.type=='rpkm': 37 #if $comparison.normalization.type=='rpkm':
37 --normalizeUsingRPKM 38 --normalizeUsingRPKM
38 #elif $comparison.normalization.type=='1x': 39 #elif $comparison.normalization.type=='1x':
39 --normalizeTo1x $comparison.normalization.normalizeTo1x 40
41 #if $comparison.normalization.effectiveGenomeSize.effectiveGenomeSize_opt == "specific":
42 --normalizeTo1x $comparison.normalization.effectiveGenomeSize.effectiveGenomeSize
43 #else:
44 --normalizeTo1x $comparison.normalization.effectiveGenomeSize.effectiveGenomeSize_opt
45 #end if
46
40 #end if 47 #end if
48 #end if
49
50 #if str(region).strip() != '':
51 --region 'region'
41 #end if 52 #end if
42 53
43 #if $advancedOpt.showAdvancedOpt == "yes": 54 #if $advancedOpt.showAdvancedOpt == "yes":
44 #if $advancedOpt.smoothLength: 55 #if $advancedOpt.smoothLength:
45 --smoothLength '$advancedOpt.smoothLength' 56 --smoothLength '$advancedOpt.smoothLength'
46 #end if
47
48 #if str($advancedOpt.region.value) != '':
49 --region '$advancedOpt.region'
50 #end if 57 #end if
51 58
52 $advancedOpt.doNotExtendPairedEnds 59 $advancedOpt.doNotExtendPairedEnds
53 $advancedOpt.ignoreDuplicates 60 $advancedOpt.ignoreDuplicates
54 61
120 <option value="no">Do not normalize or scale</option> 127 <option value="no">Do not normalize or scale</option>
121 </param> 128 </param>
122 <when value="rpkm" /> 129 <when value="rpkm" />
123 <when value="no" /> 130 <when value="no" />
124 <when value="1x"> 131 <when value="1x">
125 <param name="normalizeTo1x" type="integer" value="2150570000" 132 <expand macro="effectiveGenomeSize" />
126 label="Report normalized coverage to 1x sequenceing depth"
127 help ="Sequencing depth is defined as the total number of mapped reads * fragment length / effective genome size. To use this option, the effective genome size has to be given. Common values are: mm9: 2150570000, hg19:2451960000, dm3:121400000 and ce10:93260000."/>
128 </when> 133 </when>
129 </conditional> 134 </conditional>
130 </when> 135 </when>
131 </conditional> 136 </conditional>
132 137
133 <param name="outFileFormat" type="select" label="Coverage file format"> 138 <param name="outFileFormat" type="select" label="Coverage file format">
134 <option value="bigwig" selected="true">bigwig</option> 139 <option value="bigwig" selected="true">bigwig</option>
135 <option value="bedgraph">bedgraph</option> 140 <option value="bedgraph">bedgraph</option>
136 </param> 141 </param>
142
143 <expand macro="region_limit_operation" />
137 144
138 <conditional name="advancedOpt"> 145 <conditional name="advancedOpt">
139 <param name="showAdvancedOpt" type="select" label="Show advanced options" > 146 <param name="showAdvancedOpt" type="select" label="Show advanced options" >
140 <option value="no" selected="true">no</option> 147 <option value="no" selected="true">no</option>
141 <option value="yes">yes</option> 148 <option value="yes">yes</option>
144 <when value="yes"> 151 <when value="yes">
145 152
146 <param name="smoothLength" type="integer" value="1" optional="true" min="1" 153 <param name="smoothLength" type="integer" value="1" optional="true" min="1"
147 label="Smooth values using the following length (in bp)" 154 label="Smooth values using the following length (in bp)"
148 help ="The smooth length defines a window, larger than the bin size, to average the number of reads. For example, if the bin size is set to 20 bp and the smooth length is set to 60 bp, then, for each bin size the average of it and its left and right neighbors is considered. Any value smaller than the bin size will be ignored and no smoothing will be applied."/> 155 help ="The smooth length defines a window, larger than the bin size, to average the number of reads. For example, if the bin size is set to 20 bp and the smooth length is set to 60 bp, then, for each bin size the average of it and its left and right neighbors is considered. Any value smaller than the bin size will be ignored and no smoothing will be applied."/>
149
150 <param name="region" type="text" value=""
151 label="Region of the genome to limit the operation to"
152 help="This is useful when testing parameters to reduce the computing time. The format is chr:start:end, for example &quot;chr10&quot; or &quot;chr10:456700:891000&quot;" />
153 156
154 <param name="doNotExtendPairedEnds" type="boolean" truevalue="--doNotExtendPairedEnds" falsevalue="" 157 <param name="doNotExtendPairedEnds" type="boolean" truevalue="--doNotExtendPairedEnds" falsevalue=""
155 label="Do not extend paired ends" 158 label="Do not extend paired ends"
156 help="If set, reads are not extended to match the fragment length reported in the BAM file, instead they will be extended to match the fragment length. Default is to extend the reads if paired end information is available."/> 159 help="If set, reads are not extended to match the fragment length reported in the BAM file, instead they will be extended to match the fragment length. Default is to extend the reads if paired end information is available."/>
157 160
200 203
201 204
202 .. image:: $PATH_TO_IMAGES/norm_IGVsnapshot_indFiles.png 205 .. image:: $PATH_TO_IMAGES/norm_IGVsnapshot_indFiles.png
203 206
204 207
208 You can find more details in the `bamCompare wiki`_.
209
210 .. _bamCompare wiki: https://github.com/fidelram/deepTools/wiki/Normalizations#wiki-bamCompare
211
212
205 **Output files**: 213 **Output files**:
206 214
207 - same as for bamCoverage, except that you now obtain 1 coverage file that is based on 2 BAM files. 215 - same as for bamCoverage, except that you now obtain 1 coverage file that is based on 2 BAM files.
208 216
209 ----- 217 -----
210 218
211 .. class:: infomark 219 @REFERENCES@
212 220
213 </help> 221 </help>
214 </tool> 222 </tool>