comparison reduce_reads.xml @ 0:340633249b3d draft

Uploaded
author bgruening
date Mon, 02 Dec 2013 06:18:36 -0500
parents
children 8bcc13094767
comparison
equal deleted inserted replaced
-1:000000000000 0:340633249b3d
1 <tool id="gatk2_reduce_reads" name="Reduce Reads" version="0.0.7">
2 <description>in BAM files</description>
3 <expand macro="requirements" />
4 <macros>
5 <import>gatk2_macros.xml</import>
6 </macros>
7 <command interpreter="python">
8 gatk2_wrapper.py
9 --stdout "${output_log}"
10 -d "-I" "${reference_source.input_bam}" "${reference_source.input_bam.ext}" "gatk_input"
11 #if str( $reference_source.input_bam.metadata.bam_index ) != "None":
12 -d "" "${reference_source.input_bam.metadata.bam_index}" "bam_index" "gatk_input" ##hardcode galaxy ext type as bam_index
13 #end if
14 -p '
15 @JAR_PATH@
16 -T "ReduceReads"
17 -o "${output_bam}"
18
19 \$GATK2_SITE_OPTIONS
20
21 ## according to http://www.broadinstitute.org/gatk/guide/article?id=1975
22 --num_cpu_threads_per_data_thread 1
23
24 @THREADS@
25
26 #if $reference_source.reference_source_selector != "history":
27 -R "${reference_source.ref_file.fields.path}"
28 #end if
29 #if str($input_recal) != 'None':
30 --BQSR "${input_recal}"
31 #end if
32 --disable_bam_indexing
33 '
34 #include source=$standard_gatk_options#
35
36 ##start analysis specific options
37 #if $analysis_param_type.analysis_param_type_selector == "advanced":
38 -p '
39 #if $analysis_param_type.context_size.__str__.strip() != '':
40 --context_size $analysis_param_type.context_size
41 #end if
42 #if $analysis_param_type.downsample_coverage.__str__.strip() != '':
43 --downsample_coverage $analysis_param_type.downsample_coverage
44 #end if
45 #if $analysis_param_type.minimum_del_proportion_to_trigger_variant.__str__.strip() != '':
46 --minimum_del_proportion_to_trigger_variant $analysis_param_type.minimum_del_proportion_to_trigger_variant
47 #end if
48 #if $analysis_param_type.minimum_mapping_quality.__str__.strip() != '':
49 --minimum_mapping_quality $analysis_param_type.minimum_mapping_quality
50 #end if
51 #if $analysis_param_type.minimum_tail_qualities.__str__.strip() != '':
52 --minimum_tail_qualities $analysis_param_type.minimum_tail_qualities
53 #end if
54 #if $analysis_param_type.minimum_base_quality_to_consider.__str__.strip() != '':
55 --minimum_base_quality_to_consider $analysis_param_type.minimum_base_quality_to_consider
56 #end if
57 #if $analysis_param_type.minimum_alt_proportion_to_trigger_variant.__str__.strip() != '':
58 --minimum_alt_proportion_to_trigger_variant $analysis_param_type.minimum_alt_proportion_to_trigger_variant
59 #end if
60 $analysis_param_type.allow_polyploid_reduction
61 $analysis_param_type.dont_compress_read_names
62 $analysis_param_type.dont_hardclip_low_qual_tails
63 $analysis_param_type.dont_simplify_reads
64 $analysis_param_type.dont_use_softclipped_bases
65 $analysis_param_type.hard_clip_to_interval
66 $analysis_param_type.dont_hardclip_adaptor_sequences
67 '
68 #end if
69 </command>
70 <inputs>
71 <param name="input_recal" type="data" format="csv" optional="true" label="Covariates table recalibration file" help="-BQSR,--BQSR &amp;lt;recal_file&amp;gt;" >
72 <help>The input covariates table file which enables on-the-fly base quality score recalibration.
73 Enables on-the-fly recalibrate of base qualities. The covariates tables are produced by the BaseQualityScoreRecalibrator tool.
74 Please be aware that one should only run recalibration with the covariates file created on the same input bam(s).
75 </help>
76 </param>
77 <conditional name="reference_source">
78 <expand macro="reference_source_selector_param" />
79 <when value="cached">
80 <param name="input_bam" type="data" format="bam" label="BAM file" help="-I,--input_file &amp;lt;input_file&amp;gt;">
81 <validator type="unspecified_build" />
82 <validator type="dataset_metadata_in_data_table" table_name="gatk2_picard_indexes" metadata_name="dbkey" metadata_column="dbkey" message="Sequences are not currently available for the specified build." /> <!-- fixme!!! this needs to be a select -->
83 </param>
84 <param name="ref_file" type="select" label="Using reference genome" help="-R,--reference_sequence &amp;lt;reference_sequence&amp;gt;" >
85 <options from_data_table="gatk2_picard_indexes">
86 <filter type="data_meta" key="dbkey" ref="input_bam" column="dbkey"/>
87 </options>
88 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
89 </param>
90 </when>
91 <when value="history">
92 <param name="input_bam" type="data" format="bam" label="BAM file" help="-I,--input_file &amp;lt;input_file&amp;gt;" />
93 <param name="ref_file" type="data" format="fasta" label="Using reference file" help="-R,--reference_sequence &amp;lt;reference_sequence&amp;gt;">
94 <options>
95 <filter type="data_meta" key="dbkey" ref="input_bam" />
96 </options>
97 </param>
98 </when>
99 </conditional>
100
101 <expand macro="gatk_param_type_conditional" />
102
103 <conditional name="analysis_param_type">
104 <param name="analysis_param_type_selector" type="select" label="Basic or Advanced Analysis options">
105 <option value="basic" selected="True">Basic</option>
106 <option value="advanced">Advanced</option>
107 </param>
108 <when value="basic">
109 <!-- Do nothing here -->
110 </when>
111 <when value="advanced">
112 <param name="allow_polyploid_reduction" type="boolean" checked="False" truevalue="-polyploid" falsevalue="" label="Allow polyploid-based reduction" help="--allow_polyploid_reduction / -polyploid Allow the experimental polyploid-based reduction capabilities"/>
113 <param name="context_size" type="integer" value="10" optional="true" label="context_size" help="The number of bases to keep around mismatches (potential variation)">
114 </param>
115 <param name="dont_compress_read_names" type="boolean" checked="False" truevalue="-nocmp_names" falsevalue="" label="Do not compress read names." help="--dont_compress_read_names / -nocmp_names By default, ReduceReads will compress read names to numbers and guarantee uniqueness and reads with similar name will still have similar compressed names. Note: If you scatter/gather there is no guarantee that read name uniqueness will be maintained -- in this case we recommend not compressing."/>
116 <param name="dont_hardclip_low_qual_tails" type="boolean" checked="False" truevalue="-noclip_tail" falsevalue="" label="Do not hard clip the low quality tails of the reads" help="--dont_hardclip_low_qual_tails / -noclip_tail This option overrides the argument of minimum tail quality"/>
117
118 <param name="dont_simplify_reads" type="boolean" checked="False" truevalue="-nosimplify" falsevalue="" label="Do not simplify read" help="--dont_simplify_reads / -nosimplify Do not simplify read (strip away all extra information of the read -- anything other than bases, quals and read group)."/>
119 <param name="dont_use_softclipped_bases" type="boolean" checked="False" truevalue="-no_soft" falsevalue="" label="Do not use high quality soft-clipped bases" help="--dont_use_softclipped_bases / -no_soft Do not use high quality soft-clipped bases. By default, ReduceReads will hard clip away any low quality soft clipped base left by the aligner and use the high quality soft clipped bases in it's traversal algorithm to identify variant regions. The minimum quality for soft clipped bases is the same as the minimum base quality to consider (minqual)"/>
120 <param name="downsample_coverage" type="integer" value="250" optional="true" label="Downsample the coverage of a variable region" help="Downsamples the coverage of a variable region approximately (guarantees the minimum to be equal to this). A value of 0 turns downsampling off.">
121 </param>
122 <param name="hard_clip_to_interval" type="boolean" checked="False" truevalue="-clip_int" falsevalue="" label="Hard clip all incoming reads" help="--hard_clip_to_interval / -clip_int Optionally hard clip all incoming reads to the desired intervals. The hard clips will happen exactly at the interval border."/>
123 <param name="minimum_del_proportion_to_trigger_variant" type="float" value="0.05" optional="true" label="Minimum proportion of indels in a site to trigger a variant region" help="--minimum_del_proportion_to_trigger_variant / -mindel Minimum proportion of indels in a site to trigger a variant region. Anything below this will be considered consensus. ">
124 </param>
125 <param name="minimum_mapping_quality" type="integer" value="20" optional="true" label="Minimum mapping quality for consensus read" help="--minimum_mapping_quality / -minmap The minimum mapping quality to be considered for the consensus synthetic read. Reads that have mapping quality below this threshold will not be counted towards consensus, but are still counted towards variable regions.">
126 </param>
127 <param name="minimum_tail_qualities" type="integer" value="2" optional="true" label="Minimum tail quality" help="--minimum_tail_qualities / -mintail Reads have notoriously low quality bases on the tails (left and right). Consecutive bases with quality lower than this threshold will be hard clipped off before entering the reduce reads algorithm.">
128 <validator type="in_range" message="value between 0 and 127" min="0" max="127"/>
129 </param>
130 <param name="minimum_base_quality_to_consider" type="integer" value="20" optional="true" label="Minimum mapping quality for consensus read" help="--minimum_mapping_quality / -minmap The minimum mapping quality to be considered for the consensus synthetic read. Reads that have mapping quality below this threshold will not be counted towards consensus, but are still counted towards variable regions.">
131 <validator type="in_range" message="value between 0 and 127" min="0" max="127"/>
132 </param>
133 <param name="minimum_alt_proportion_to_trigger_variant" type="float" value="0.05" optional="true" label="Minimum proportion of mismatches in a site to trigger a variant region" help="--minimum_alt_proportion_to_trigger_variant / -minvar Minimum proportion of mismatches in a site to trigger a variant region. Anything below this will be considered consensus.">
134 <validator type="in_range" message="value between 0.00 and 1.00" min="0.0" max="1.0"/>
135 </param>
136 <param name="dont_hardclip_adaptor_sequences" type="boolean" checked="False" truevalue="-noclip_ad" falsevalue="" label="Do not hard clip adaptor sequences" help="--dont_hardclip_adaptor_sequences / -noclip_ad Do not hard clip adaptor sequences. Note: You don't have to turn this on for reads that are not mate paired. The program will behave correctly in those cases."/>
137 </when>
138 </conditional>
139 </inputs>
140 <outputs>
141 <data format="bam" name="output_bam" label="${tool.name} on ${on_string} (BAM)" />
142 <data format="txt" name="output_log" label="${tool.name} on ${on_string} (log)" />
143 </outputs>
144 <tests>
145 <test>
146 <param name="input_recal" value="gatk/gatk_count_covariates/gatk_count_covariates_out_1.csv" ftype="csv" />
147 <param name="reference_source_selector" value="history" />
148 <param name="ref_file" value="phiX.fasta" ftype="fasta" />
149 <param name="input_bam" value="gatk/gatk_indel_realigner/gatk_indel_realigner_out_1.bam" ftype="bam" />
150 <param name="gatk_param_type_selector" value="basic" />
151 <param name="analysis_param_type_selector" value="basic" />
152 <output name="output_bam" file="gatk/gatk_table_recalibration/gatk_table_recalibration_out_1.bam" ftype="bam" lines_diff="4" />
153 <output name="output_log" file="gatk/gatk_table_recalibration/gatk_table_recalibration_out_1.log.contains" compare="contains" />
154 </test>
155 </tests>
156 <help>
157 **What it does**
158
159 ReduceReads
160 Reduces the BAM file using read based compression that keeps only essential information for variant calling
161
162 This walker will generated reduced versions of the BAM files that still follow the BAM spec and contain all the information necessary for the GSA variant calling pipeline. Some options allow you to tune in how much compression you want to achieve. The default values have been shown to reduce a typical whole exome BAM file 100x. The higher the coverage, the bigger the savings in file size and performance of the downstream tools.
163
164 For more information on using read based compression in the GATK, see this `tool specific page &lt;http://www.broadinstitute.org/gatk/gatkdocs/org_broadinstitute_sting_gatk_walkers_compression_reducereads_ReduceReads.html&gt;`_.
165
166 To learn about best practices for variant detection using GATK, see this `overview &lt;http://www.broadinstitute.org/gatk/guide/topic?name=best-practices&gt;`_.
167
168 If you encounter errors, please view the `GATK FAQ &lt;http://www.broadinstitute.org/gatk/guide/topic?name=faqs&gt;`_.
169
170 ------
171
172 **Inputs**
173
174 GenomeAnalysisTK: PrintReads accepts an aligned BAM and a recalibration CSV input files.
175
176
177 **Outputs**
178
179 The output is in BAM format.
180
181
182 Go `here &lt;http://www.broadinstitute.org/gatk/guide/topic?name=intro&gt;`_ for details on GATK file formats.
183
184 -------
185
186 **Settings**::
187
188
189 --allow_polyploid_reduction / -polyploid ( boolean with default value false )
190 Allow the experimental polyploid-based reduction capabilities of this tool
191
192 --context_size / -cs ( int with default value 10 )
193 The number of bases to keep around mismatches (potential variation)
194
195 --dont_compress_read_names / -nocmp_names ( boolean with default value false )
196 Do not compress read names. By default, ReduceReads will compress read names to numbers and guarantee uniqueness and reads with similar name will still have similar compressed names. Note: If you scatter/gather there is no guarantee that read name uniqueness will be maintained -- in this case we recommend not compressing.
197
198 --dont_hardclip_low_qual_tails / -noclip_tail ( boolean with default value false )
199 Do not hard clip the low quality tails of the reads. This option overrides the argument of minimum tail quality.
200
201 --dont_simplify_reads / -nosimplify ( boolean with default value false )
202 Do not simplify read (strip away all extra information of the read -- anything other than bases, quals and read group).
203
204 --dont_use_softclipped_bases / -no_soft ( boolean with default value false )
205 Do not use high quality soft-clipped bases. By default, ReduceReads will hard clip away any low quality soft clipped base left by the aligner and use the high quality soft clipped bases in it's traversal algorithm to identify variant regions. The minimum quality for soft clipped bases is the same as the minimum base quality to consider (minqual)
206
207 --downsample_coverage / -ds ( int with default value 250 )
208 Downsamples the coverage of a variable region approximately (guarantees the minimum to be equal to this). A value of 0 turns downsampling off.
209
210 --hard_clip_to_interval / -clip_int ( boolean with default value false )
211 Optionally hard clip all incoming reads to the desired intervals. The hard clips will happen exactly at the interval border.
212
213 -mindel / --minimum_del_proportion_to_trigger_variant ( double with default value 0.05 )
214 Minimum proportion of indels in a site to trigger a variant region. Anything below this will be considered consensus.
215
216 --minimum_mapping_quality / -minmap ( int with default value 20 )
217 The minimum mapping quality to be considered for the consensus synthetic read. Reads that have mapping quality below this threshold will not be counted towards consensus, but are still counted towards variable regions.
218
219 --minimum_tail_qualities / -mintail ( byte with default value 2 )
220 Reads have notoriously low quality bases on the tails (left and right). Consecutive bases with quality lower than this threshold will be hard clipped off before entering the reduce reads algorithm.
221
222 -minqual / --minimum_base_quality_to_consider ( byte with default value 20 )
223 The minimum base quality to be considered for the consensus synthetic read. Reads that have base quality below this threshold will not be counted towards consensus, but are still counted towards variable regions.
224
225 -minvar / --minimum_alt_proportion_to_trigger_variant ( double with default value 0.05 )
226 Minimum proportion of mismatches in a site to trigger a variant region. Anything below this will be considered consensus.
227
228 -noclip_ad / --dont_hardclip_adaptor_sequences ( boolean with default value false )
229 Do not hard clip adaptor sequences. Note: You don't have to turn this on for reads that are not mate paired. The program will behave correctly in those cases.
230
231 ------
232
233 @CITATION_SECTION@
234 </help>
235 </tool>