comparison computeGCBias.xml @ 44:894ba1eba734

Uploaded
author bgruening
date Fri, 02 Aug 2013 12:39:14 -0400
parents
children ef436465bf16
comparison
equal deleted inserted replaced
43:975312d6c591 44:894ba1eba734
1 <tool id="computeGCBias" name="computeGCBias" version="1.0">
2 <description></description>
3 <stdio>
4 <exit_code range="0" level="warning" description="Warning" />
5 </stdio>
6 <command>
7 computeGCBias
8 --bamfile '$bamInput'
9 --species '$species'
10 --GCbiasFrequenciesFile $outFileName
11 --fragmentLength $fragmentLength
12
13 #if $source.ref_source=="history":
14 --genome $source.input1
15 #else:
16 --genome "${source.input1_2bit.fields.path}"
17 #end if
18
19 #if $advancedOpt.showAdvancedOpt == "yes":
20 #if str($advancedOpt.region.value) != '':
21 --region '$advancedOpt.region'
22 #end if
23
24 --binSize '$advancedOpt.binSize'
25 --sampleSize '$advancedOpt.sampleSize'
26 --regionSize '$advancedOpt.regionSize'
27
28 #if $advancedOpt.filterOut:
29 --filterOut $advancedOpt.filterOut
30 #end if
31
32 #if $advancedOpt.extraSampling:
33 --extraSampling $advancedOpt.extraSampling
34 #end if
35
36 #end if
37
38 #set move=""
39 #if $output.showOutputSettings == "yes"
40 #if $output.saveBiasPlot:
41 --biasPlot biasPlot.png
42 #set move="mv biasPlot.png $biasPlot"
43 #end if
44 #end if
45 ; $move
46
47 </command>
48
49 <inputs>
50
51 <param name="bamInput" format="bam" type="data" label="Input BAM file"
52 help="The BAM file must be sorted and indexed."/>
53
54 <param name="species" type="text" value="" label="Species name abbreviation" />
55
56 <conditional name="source">
57 <param name="ref_source" type="select" label="Reference genome">
58 <option value="cached">locally cached</option>
59 <option value="history">in your history</option>
60 </param>
61 <when value="cached">
62 <param name="input1_2bit" type="select" label="Using reference genome" help="If your genome of interest is not listed, contact the Galaxy team">
63 <options from_data_table="lastz_seqs" />
64 </param>
65 </when>
66 <when value="history">
67 <param name="input1" type="data" format="bam" label="Select a reference dataset in 2bit format" />
68 </when>
69 </conditional>
70 <param name="fragmentLength" type="integer" value="300" min="1"
71 label="Fragment length used for the sequencing"
72 help ="If paired-end reads are used the fragment length is computed based from the bam file."/>
73
74 <conditional name="advancedOpt">
75 <param name="showAdvancedOpt" type="select" label="Show advanced options" >
76 <option value="no" selected="true">no</option>
77 <option value="yes">yes</option>
78 </param>
79 <when value="no" />
80 <when value="yes">
81 <param name="region" type="text" value=""
82 label="Region of the genome to limit the operation to"
83 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;" />
84
85 <param name="binSize" type="integer" value="50" min="1"
86 label="Bin size in bp"
87 help="Size of the bins in bp for the ouput of the bigwig/bedgraph file."/>
88
89 <param name="sampleSize" type="integer" value="50000000" min="1"
90 label="Number of sampling points to be considered" />
91
92 <param name="regionSize" type="integer" value="300" min="1"
93 label="Region size"
94 help ="To plot the reads per GC over a region the size of the region is required. By default, the bin size is set to 300bp, which is close to the standard fragment size for Illumina machines. However, if the depth of sequencing is low a larger bin size will be required, otherwise many bins will not overlap with any read."/>
95
96 <param name="filterOut" type="data" format="bed" optional="true"
97 label="BED file containing genomic regions to be excluded from the estimation of the correction"
98 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." />
99 <param name="extraSampling" type="data" format="bed" optional="true"
100 label="BED file containing genomic regions for which extra sampling is required because they are underrepresented in the genome"
101 help="" />
102 </when>
103 </conditional>
104
105 <conditional name="output" >
106 <param name="showOutputSettings" type="select" label="Show additional output options" >
107 <option value="no" selected="true">no</option>
108 <option value="yes">yes</option>
109 </param>
110 <when value="no" />
111 <when value="yes">
112 <param name="saveBiasPlot" type="boolean" label="Save a diagnostic image summarizing the GC bias found on the sample"/>
113 </when>
114 </conditional>
115 </inputs>
116 <outputs>
117 <data format="tabular" name="outFileName" />
118 <data format="png" name="biasPlot" label="${tool.name} on ${on_string}: bias plot">
119 <filter>(output['showOutputSettings'] == 'yes' and output['saveBiasPlot'] == True)</filter>
120 </data>
121 </outputs>
122 <help>
123
124 **What it does**
125
126 Computes the GC bias ussing Benjamini's method [citation]. The resulting GC
127 bias can later be used to plot the bias or to correct the bias.
128
129 -----
130
131 .. class:: infomark
132
133 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`_.
134
135 This tool is developed by the `Bioinformatics and Deep-Sequencing Unit`_ at the `Max Planck Institute for Immunobiology and Epigenetics`_.
136
137
138 .. _Bioinformatics and Deep-Sequencing Unit: http://www3.ie-freiburg.mpg.de/facilities/research-facilities/bioinformatics-and-deep-sequencing-unit/
139 .. _Max Planck Institute for Immunobiology and Epigenetics: http://www3.ie-freiburg.mpg.de
140 .. _Fidel Ramirez: ramirez@ie-freiburg.mpg.de
141
142 </help>
143
144 </tool>