Mercurial > repos > bgruening > deeptools
annotate computeGCBias.xml @ 65:9bee2c86eeb1 draft
planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit ab1ab06323702186cf0c883d5774720cbb822cb5-dirty
author | iuc |
---|---|
date | Mon, 25 May 2015 05:16:10 -0400 |
parents | f3140d17939e |
children | 1dbd76a58d8b |
rev | line source |
---|---|
61 | 1 <tool id="deeptools_computeGCBias" name="computeGCBias" version="@WRAPPER_VERSION@.0"> |
2 <description>to see whether your samples should be normalized for GC bias</description> | |
3 <macros> | |
4 <token name="@BINARY@">computeGCBias</token> | |
5 <import>deepTools_macros.xml</import> | |
6 </macros> | |
65
9bee2c86eeb1
planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit ab1ab06323702186cf0c883d5774720cbb822cb5-dirty
iuc
parents:
61
diff
changeset
|
7 <expand macro="requirements" /> |
61 | 8 <command> |
9 <![CDATA[ | |
10 ln -s $bamInput local_bamInput.bam; | |
11 ln -s $bamInput.metadata.bam_index local_bamInput.bam.bai; | |
12 | |
13 computeGCBias | |
14 @THREADS@ | |
15 | |
16 --bamfile 'local_bamInput.bam' | |
17 --GCbiasFrequenciesFile $outFileName | |
18 --fragmentLength $fragmentLength | |
19 | |
20 @reference_genome_source@ | |
21 | |
22 #if $effectiveGenomeSize.effectiveGenomeSize_opt == "specific": | |
23 --effectiveGenomeSize $effectiveGenomeSize.effectiveGenomeSize | |
24 #else: | |
25 --effectiveGenomeSize $effectiveGenomeSize.effectiveGenomeSize_opt | |
26 #end if | |
27 | |
28 #if str($region).strip() != '': | |
29 --region '$region' | |
30 #end if | |
31 | |
32 #if $advancedOpt.showAdvancedOpt == "yes": | |
33 --sampleSize '$advancedOpt.sampleSize' | |
34 --regionSize '$advancedOpt.regionSize' | |
35 | |
36 #if $advancedOpt.filterOut: | |
37 --filterOut $advancedOpt.filterOut | |
38 #end if | |
39 | |
40 #if $advancedOpt.extraSampling: | |
41 --extraSampling $advancedOpt.extraSampling | |
42 #end if | |
43 #end if | |
44 | |
45 #if str($image_format) != 'none': | |
46 --biasPlot $outImageName | |
47 --plotFileFormat $image_format | |
48 #end if | |
49 ]]> | |
50 </command> | |
51 <inputs> | |
52 <param name="bamInput" format="bam" type="data" label="BAM file" | |
53 help="The BAM file must be sorted."/> | |
54 | |
55 <expand macro="reference_genome_source" /> | |
56 <expand macro="effectiveGenomeSize" /> | |
57 <expand macro="fragmentLength" /> | |
58 <expand macro="region_limit_operation" /> | |
59 | |
60 <conditional name="advancedOpt"> | |
61 <param name="showAdvancedOpt" type="select" label="Show advanced options" > | |
62 <option value="no" selected="true">no</option> | |
63 <option value="yes">yes</option> | |
64 </param> | |
65 <when value="no" /> | |
66 <when value="yes"> | |
67 <param name="sampleSize" type="integer" value="50000000" min="1" | |
68 label="Number of sampling points to be considered" help="(--sampleSize)" /> | |
69 <param name="regionSize" type="integer" value="300" min="1" | |
70 label="Region size" | |
65
9bee2c86eeb1
planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit ab1ab06323702186cf0c883d5774720cbb822cb5-dirty
iuc
parents:
61
diff
changeset
|
71 help ="To plot the reads per GC over a region, the size of the region is |
9bee2c86eeb1
planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit ab1ab06323702186cf0c883d5774720cbb822cb5-dirty
iuc
parents:
61
diff
changeset
|
72 required (see below for more details of the mthod). By default, the bin size |
9bee2c86eeb1
planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit ab1ab06323702186cf0c883d5774720cbb822cb5-dirty
iuc
parents:
61
diff
changeset
|
73 is set to 300 bp, which is close to the standard fragment size many sequencing |
9bee2c86eeb1
planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit ab1ab06323702186cf0c883d5774720cbb822cb5-dirty
iuc
parents:
61
diff
changeset
|
74 applications. However, if the depth of sequencing is low, a larger bin size will |
9bee2c86eeb1
planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit ab1ab06323702186cf0c883d5774720cbb822cb5-dirty
iuc
parents:
61
diff
changeset
|
75 be required, otherwise many bins will not overlap with any read. (--regionSize)"/> |
61 | 76 <param name="filterOut" type="data" format="bed" optional="true" |
77 label="BED file containing genomic regions to be excluded from the estimation of the correction" | |
65
9bee2c86eeb1
planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit ab1ab06323702186cf0c883d5774720cbb822cb5-dirty
iuc
parents:
61
diff
changeset
|
78 help="Such regions usually contain repetitive regions and peaks that if included will |
9bee2c86eeb1
planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit ab1ab06323702186cf0c883d5774720cbb822cb5-dirty
iuc
parents:
61
diff
changeset
|
79 bias the correction. It is recommended to filter out known repetitive regions if multi-reads |
9bee2c86eeb1
planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit ab1ab06323702186cf0c883d5774720cbb822cb5-dirty
iuc
parents:
61
diff
changeset
|
80 (reads that map to more than one genomic position) were excluded. In the case of ChIP-seq data, |
9bee2c86eeb1
planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit ab1ab06323702186cf0c883d5774720cbb822cb5-dirty
iuc
parents:
61
diff
changeset
|
81 it is recommended to first use a peak caller to identify and filter out the identified peaks. (--filterOut)" /> |
61 | 82 <param name="extraSampling" type="data" format="bed" optional="true" |
83 label="BED file containing genomic regions for which extra sampling is required because they are underrepresented in the genome" | |
84 help="(--extraSampling)" /> | |
85 </when> | |
86 </conditional> | |
87 <param name="image_format" type="select" | |
88 label="GC bias plot" | |
89 help="If given, a diagnostic image summarizing the GC bias found on the sample will be created. (--plotFileFormat)"> | |
90 <option value="none">No image</option> | |
91 <option value="png" selected="true">Image in png format</option> | |
92 <option value="pdf">Image in pdf format</option> | |
93 <option value="svg">Image in svg format</option> | |
94 <option value="eps">Image in eps format</option> | |
95 <option value="emf">Image in emf format</option> | |
96 </param> | |
97 </inputs> | |
98 <outputs> | |
99 <data name="outFileName" format="tabular" /> | |
100 <data name="outImageName" format="png" label="${tool.name} GC-bias Plot"> | |
101 <filter> | |
102 (( | |
103 image_format != 'none' | |
104 )) | |
105 </filter> | |
106 <change_format> | |
107 <when input="image_format" value="pdf" format="pdf" /> | |
108 <when input="image_format" value="svg" format="svg" /> | |
109 <when input="image_format" value="eps" format="eps" /> | |
110 <when input="image_format" value="emf" format="emf" /> | |
111 </change_format> | |
112 </data> | |
113 </outputs> | |
114 <tests> | |
115 <test> | |
116 <param name="bamInput" value="phiX.bam" ftype="bam" /> | |
117 <param name="image_format" value="png" /> | |
118 <param name="showAdvancedOpt" value="yes" /> | |
119 <param name="regionSize" value="1" /> | |
120 <param name="fragmentLength" value="100" /> | |
121 <param name="ref_source" value="history" /> | |
122 <param name="input1" value="phiX.2bit" /> | |
123 <output name="outFileName" file="computeGCBias_result1.tabular" ftype="tabular" /> | |
124 <output name="outImageName" file="computeGCBias_result1.png" ftype="png" /> | |
125 </test> | |
126 </tests> | |
127 <help> | |
128 <![CDATA[ | |
129 **What it does** | |
130 | |
131 This tool computes the GC bias using the method proposed by Benjamini and Speed (2012) Nucleic Acids Res. (see below for more explanations) | |
132 The output is used to plot the bias and can also be used later on to correct the bias with the tool correctGCbias. | |
133 There are two plots produced by the tool: a boxplot showing the absolute read numbers per genomic-GC bin and an x-y plot | |
134 depicting the ratio of observed/expected reads per genomic GC content bin. | |
135 | |
136 ----- | |
137 | |
138 **Summary of the method used** | |
139 | |
140 In order to estimate how many reads with what kind of GC content one should have sequenced, we first need to determine how many regions the specific | |
141 reference genome contains for each amount of GC content, i.e. how many regions in the genome have 50% GC (or 10% GC or 90% GC or...). | |
142 We then sample a large number of equally sized genome bins and count how many times we see a bin with 50% GC (or 10% GC or 90% or...). These EXPECTED values are independent of any | |
143 sequencing as it only depends on the respective reference genome (i.e. it will most likely vary between mouse and fruit fly due to their genome's different GC contents). | |
144 The OBSERVED values are based on the reads from the sequenced sample. Instead of noting how many genomic regions there are per GC content, we now count the reads per GC content. | |
145 In an ideal sample without GC bias, the ratio of OBSERVED/EXPECTED values should be close to 1 regardless of the GC content. Due to PCR (over)amplifications, the majority of ChIP samples | |
146 usually shows a significant bias towards reads with high GC content (>50%) | |
147 | |
148 .. image:: $PATH_TO_IMAGES/QC_GCplots_input.png | |
149 | |
150 | |
151 You can find more details on the computeGCBias wiki page: computeGCBias wiki: https://github.com/fidelram/deepTools/wiki/QC#wiki-computeGCbias | |
152 | |
153 | |
154 **Output files**: | |
155 | |
156 - Diagnostic plot | |
157 | |
158 - box plot of absolute read numbers per genomic GC bin | |
159 - x-y plot of observed/expected read ratios per genomic GC content bin | |
160 | |
161 - Data matrix | |
162 | |
163 - to be used for GC correction with correctGCbias | |
164 | |
165 | |
166 ----- | |
167 | |
168 @REFERENCES@ | |
169 ]]> | |
170 </help> | |
171 <expand macro="citations" /> | |
172 </tool> |