comparison computeGCBias.xml @ 26:2ad3b027dfcd draft

Uploaded
author bgruening
date Thu, 06 Feb 2014 06:40:05 -0500
parents
children bf1b1dcdd67b
comparison
equal deleted inserted replaced
25:d2898b81b912 26:2ad3b027dfcd
1 <tool id="deeptools_computeGCBias" name="computeGCBias" version="1.0.4">
2 <description>to see whether your samples should be normalized for GC bias</description>
3 <expand macro="requirements" />
4 <expand macro="stdio" />
5 <macros>
6 <token name="@BINARY@">computeGCBias</token>
7 <import>deepTools_macros.xml</import>
8 </macros>
9 <command>
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
34 --sampleSize '$advancedOpt.sampleSize'
35 --regionSize '$advancedOpt.regionSize'
36
37 #if $advancedOpt.filterOut:
38 --filterOut $advancedOpt.filterOut
39 #end if
40
41 #if $advancedOpt.extraSampling:
42 --extraSampling $advancedOpt.extraSampling
43 #end if
44 #end if
45
46 #if str($image_format) != 'none':
47 --biasPlot $outImageName
48 --plotFileFormat $image_format
49 #end if
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
58 <param name="fragmentLength" type="integer" value="300" min="1"
59 label="Fragment length used for the sequencing"
60 help ="If paired-end reads are used, the fragment length is computed from the BAM file."/>
61
62 <expand macro="region_limit_operation" />
63
64 <conditional name="advancedOpt">
65 <param name="showAdvancedOpt" type="select" label="Show advanced options" >
66 <option value="no" selected="true">no</option>
67 <option value="yes">yes</option>
68 </param>
69 <when value="no" />
70 <when value="yes">
71 <param name="sampleSize" type="integer" value="50000000" min="1"
72 label="Number of sampling points to be considered" />
73
74 <param name="regionSize" type="integer" value="300" min="1"
75 label="Region size"
76 help ="To plot the reads per GC over a region, the size of the region is required (see below for more details of the mthod). By default, the bin size is set to 300 bp, which is close to the standard fragment size many sequencing applications. However, if the depth of sequencing is low, a larger bin size will be required, otherwise many bins will not overlap with any read."/>
77
78 <param name="filterOut" type="data" format="bed" optional="true"
79 label="BED file containing genomic regions to be excluded from the estimation of the correction"
80 help="Such regions usually contain repetitive regions and peaks that if included will bias the correction. It is recommended to filter out known repetitive regions if multi-reads (reads that map to more than one genomic position) were excluded. In the case of ChIP-seq data, it is recommended to first use a peak caller to identify and filter out the identified peaks." />
81 <param name="extraSampling" type="data" format="bed" optional="true"
82 label="BED file containing genomic regions for which extra sampling is required because they are underrepresented in the genome"
83 help="" />
84 </when>
85 </conditional>
86 <param name="image_format" type="select" label="GC bias plot" help="If given, a diagnostic image summarizing the GC bias found on the sample will be created.">
87 <option value="none">No image</option>
88 <option value="png" selected="true">Image in png format</option>
89 <option value="pdf">Image in pdf format</option>
90 <option value="svg">Image in svg format</option>
91 <option value="eps">Image in eps format</option>
92 <option value="emf">Image in emf format</option>
93 </param>
94 </inputs>
95 <outputs>
96 <data format="tabular" name="outFileName" />
97 <data format="png" name="outImageName" label="${tool.name} GC-bias Plot">
98 <filter>
99 ((
100 image_format != 'none'
101 ))
102 </filter>
103 <change_format>
104 <when input="image_format" value="pdf" format="pdf" />
105 <when input="image_format" value="svg" format="svg" />
106 <when input="image_format" value="eps" format="eps" />
107 <when input="image_format" value="emf" format="emf" />
108 </change_format>
109 </data>
110 </outputs>
111 <help>
112
113 **What it does**
114
115 This tool computes the GC bias using the method proposed by Benjamini and Speed (2012) Nucleic Acids Res. (see below for more explanations)
116 The output is used to plot the bias and can also be used later on to correct the bias with the tool correctGCbias.
117 There are two plots produced by the tool: a boxplot showing the absolute read numbers per genomic-GC bin and an x-y plot
118 depicting the ratio of observed/expected reads per genomic GC content bin.
119
120 -----
121
122 **Summary of the method used**
123
124 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
125 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...).
126 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
127 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).
128 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.
129 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
130 usually shows a significant bias towards reads with high GC content (>50%)
131
132 .. image:: $PATH_TO_IMAGES/QC_GCplots_input.png
133
134
135 You can find more details on the computeGCBias wiki page: computeGCBias wiki: https://github.com/fidelram/deepTools/wiki/QC#wiki-computeGCbias
136
137
138 **Output files**:
139
140 - Diagnostic plot
141
142 - box plot of absolute read numbers per genomic GC bin
143 - x-y plot of observed/expected read ratios per genomic GC content bin
144
145 - Data matrix
146
147 - to be used for GC correction with correctGCbias
148
149
150 -----
151
152 @REFERENCES@
153
154 </help>
155 </tool>