13
|
1 <?xml version="1.0"?>
|
16
|
2 <tool id="freebayes" name="FreeBayes" version="0.3">
|
13
|
3 <requirements>
|
16
|
4 <requirement type="package" version="0.9.18_0059bdf">freebayes</requirement>
|
13
|
5 <requirement type="package" version="0.1.18">samtools</requirement>
|
|
6 </requirements>
|
16
|
7 <description> - bayesian genetic variant detector</description>
|
13
|
8 <command>
|
|
9 ##set up input files
|
|
10
|
|
11 #set $reference_fasta_filename = "localref.fa"
|
|
12
|
|
13 #if str( $reference_source.reference_source_selector ) == "history":
|
|
14 ln -s "${reference_source.ref_file}" "${reference_fasta_filename}" &&
|
|
15 samtools faidx "${reference_fasta_filename}" 2>&1 || echo "Error running samtools faidx for FreeBayes" >&2 &&
|
|
16 #else:
|
|
17 #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path )
|
|
18 #end if
|
|
19
|
|
20 #for $bam_count, $input_bam in enumerate( $reference_source.input_bams ):
|
|
21 ln -s "${input_bam.input_bam}" "localbam_${bam_count}.bam" &&
|
|
22 ln -s "${input_bam.input_bam.metadata.bam_index}" "localbam_${bam_count}.bam.bai" &&
|
|
23 #end for
|
|
24
|
|
25 ## Tabixize optional input_varinat_vcf file (for --variant-input option)
|
|
26
|
16
|
27 #if ( str( $options_type.options_type_selector ) == 'cline' or str( $options_type.options_type_selector ) == 'full' ) and $options_type.optional_inputs.optional_inputs_selector and str( $options_type.optional_inputs.input_variant_type.input_variant_type_selector ) == "provide_vcf":
|
|
28 ln -s "${options_type.optional_inputs.input_variant_type.input_variant_vcf}" "input_variant_vcf.vcf.gz" &&
|
|
29 ln -s "${Tabixized_input}" "input_variant_vcf.vcf.gz.tbi" &&
|
13
|
30 #end if
|
|
31
|
|
32 ##finished setting up inputs
|
|
33
|
|
34 ##COMMAND LINE STARTS HERE
|
|
35
|
|
36 freebayes
|
|
37 #for $bam_count, $input_bam in enumerate( $reference_source.input_bams ):
|
|
38 --bam "localbam_${bam_count}.bam"
|
|
39 #end for
|
|
40 --fasta-reference "${reference_fasta_filename}"
|
|
41
|
|
42 ##outputs
|
|
43 --vcf "${output_vcf}"
|
|
44
|
|
45 #if str( $target_limit_type.target_limit_type_selector ) == "limit_by_target_file":
|
|
46 --targets "${target_limit_type.input_target_bed}"
|
|
47 #elif str( $target_limit_type.target_limit_type_selector ) == "limit_by_region":
|
|
48 --region "${target_limit_type.region_chromosome}:${target_limit_type.region_start}..${target_limit_type.region_end}"
|
|
49 #end if
|
|
50
|
|
51 ##advanced options
|
|
52 #if str( $options_type.options_type_selector ) == "simple":
|
|
53 ##do nothing as command like build up to this point is sufficinet for simple diploid calling
|
|
54
|
|
55 #elif str( $options_type.options_type_selector ) == "simple_w_filters":
|
|
56
|
|
57 --standard-filters
|
|
58 --min-coverage "${options_type.min_coverage}"
|
|
59
|
|
60 #elif str( $options_type.options_type_selector ) == "naive":
|
|
61
|
|
62 --haplotype-length 0
|
|
63 --min-alternate-count 1
|
|
64 --min-alternate-fraction 0
|
|
65 --pooled-continuous
|
|
66 --report-monomorphic
|
|
67
|
|
68 #elif str( $options_type.options_type_selector ) == "naive_w_filters":
|
|
69
|
|
70 --haplotype-length 0
|
|
71 --min-alternate-count 1
|
|
72 --min-alternate-fraction 0
|
|
73 --pooled-continuous
|
|
74 --report-monomorphic
|
|
75 --standard-filters
|
|
76 --min-coverage "${options_type.min_coverage}"
|
16
|
77
|
|
78 ## Command line direct text entry is not allowed at this time for security reasons
|
|
79
|
|
80 ## #elif str( $options_type.options_type_selector ) == "cline":
|
13
|
81
|
16
|
82 ## ${options_type.cline}
|
13
|
83
|
16
|
84 ## @optional_inputs_outputs@
|
13
|
85
|
|
86 #elif str( $options_type.options_type_selector ) == "full":
|
|
87
|
|
88 ##optional inputs and outputs
|
|
89
|
|
90 @optional_inputs_outputs@
|
|
91
|
|
92 ## REPORTING
|
|
93
|
|
94 #if str( $options_type.reporting.reporting_selector ) == "True":
|
|
95 --pvar ${options_type.reporting.pvar}
|
|
96 #end if
|
|
97
|
|
98 ## POPULATION MODEL
|
|
99
|
|
100 #if str( $options_type.population_model.population_model_selector ) == "True":
|
|
101 --theta "${options_type.population_model.T}"
|
|
102 --ploidy "${options_type.population_model.P}"
|
|
103 ${options_type.population_model.J}
|
|
104 ${options_type.population_model.K}
|
|
105
|
|
106 #end if
|
|
107
|
|
108 ## REFERENCE ALLELE
|
|
109
|
|
110 #if str( $options_type.reference_allele.reference_allele_selector ) == "True":
|
|
111 ${options_type.reference_allele.Z}
|
|
112 --reference-quality "${options_type.reference_allele.reference_quality}"
|
|
113 #end if
|
|
114
|
|
115 ## ALLELE SCOPE
|
|
116
|
|
117 #if str( $options_type.allele_scope.allele_scope_selector ) == "True":
|
|
118 ${options_type.allele_scope.I}
|
|
119 ${options_type.allele_scope.i}
|
|
120 ${options_type.allele_scope.X}
|
|
121 ${options_type.allele_scope.u}
|
|
122 -n "${options_type.allele_scope.n}"
|
|
123 --haplotype-length "${options_type.allele_scope.haplotype_length}"
|
15
|
124 --min-repeat-size "${options_type.allele_scope.min_repeat_length}"
|
13
|
125 --min-repeat-entropy "${options_type.allele_scope.min_repeat_entropy}"
|
|
126 ${options_type.allele_scope.no_partial_observations}
|
|
127 #end if
|
|
128
|
|
129 ## REALIGNMENT
|
|
130
|
|
131 ${options_type.O}
|
|
132
|
|
133 ##INPUT FILTERS
|
|
134
|
|
135 #if str( $options_type.input_filters.input_filters_selector ) == "True":
|
|
136 ${options_type.input_filters.use_duplicate_reads}
|
|
137 -m "${options_type.input_filters.m}"
|
|
138 -q "${options_type.input_filters.q}"
|
|
139 -R "${options_type.input_filters.R}"
|
|
140 -Y "${options_type.input_filters.Y}"
|
|
141
|
|
142 #if str( $options_type.input_filters.mismatch_filters.mismatch_filters_selector ) == "True":
|
|
143 -Q "${options_type.input_filters.mismatch_filters.Q}"
|
|
144 -U "${options_type.input_filters.mismatch_filters.U}"
|
|
145 -z "${options_type.input_filters.mismatch_filters.z}"
|
|
146 --read-snp-limit "${options_type.input_filters.mismatch_filters.read_snp_limit}"
|
|
147 #end if
|
|
148
|
|
149 -e "${options_type.input_filters.e}"
|
|
150 -F "${options_type.input_filters.F}"
|
|
151 -C "${options_type.input_filters.C}"
|
|
152 --min-alternate-qsum "${options_type.input_filters.min_alternate_qsum}"
|
|
153 -G "${options_type.input_filters.G}"
|
|
154 --min-coverage "${options_type.input_filters.min_coverage}"
|
|
155 #end if
|
|
156
|
|
157 ## POPULATION AND MAPPABILITY PRIORS
|
|
158
|
|
159 #if str( $options_type.population_mappability_priors.population_mappability_priors_selector ) == "True":
|
|
160 ${options_type.population_mappability_priors.k}
|
|
161 ${options_type.population_mappability_priors.w}
|
|
162 ${options_type.population_mappability_priors.V}
|
|
163 ${options_type.population_mappability_priors.a}
|
|
164 #end if
|
|
165
|
|
166 ## GENOTYPE LIKELIHOODS
|
|
167
|
|
168 #if str( $options_type.genotype_likelihoods.genotype_likelihoods_selector ) == "True":
|
|
169 --base-quality-cap "${$options_type.genotype_likelihoods.base_quality_cap}"
|
|
170 ${$options_type.genotype_likelihoods.experimental_gls}
|
15
|
171 --prob-contamination "${$options_type.genotype_likelihoods.prob_contamination}"
|
13
|
172 #end if
|
|
173
|
|
174 ## ALGORITHMIC FEATURES
|
|
175
|
|
176 #if str( $options_type.algorithmic_features.algorithmic_features_selector ) == "True":
|
15
|
177 ${options_type.algorithmic_features.report_genotype_likelihood_max}
|
13
|
178 -B "${options_type.algorithmic_features.B}"
|
|
179 --genotyping-max-banddepth "${options_type.algorithmic_features.genotyping_max_banddepth}"
|
|
180 -W "${options_type.algorithmic_features.W}"
|
|
181 ${options_type.algorithmic_features.N}
|
|
182
|
|
183 #if str( $options_type.algorithmic_features.genotype_variant_threshold.genotype_variant_threshold_selector ) == "True":
|
|
184 -S "${options_type.algorithmic_features.genotype_variant_threshold.S}"
|
|
185 #end if
|
|
186
|
|
187 ${options_type.algorithmic_features.j}
|
|
188 ${options_type.algorithmic_features.H}
|
|
189 -D "${options_type.algorithmic_features.D}"
|
|
190 ${options_type.algorithmic_features.genotype_qualities}
|
|
191 #end if
|
|
192 #end if
|
|
193
|
|
194 </command>
|
|
195
|
|
196 <macros>
|
|
197 <token name="@optional_inputs_outputs@">
|
16
|
198 ## This token gets injected in commane in two instances: when options_type.options_type_selector == "full" and "cline" ( cline is not supported at this time )
|
13
|
199
|
|
200 #if $options_type.optional_inputs.optional_inputs_selector:
|
|
201
|
|
202 #if $options_type.optional_inputs.output_trace_option:
|
|
203 --trace "${output_trace}"
|
|
204 #end if
|
|
205
|
|
206 #if $options_type.optional_inputs.output_failed_alleles_option:
|
|
207 --failed-alleles "${output_failed_alleles_bed}"
|
|
208 #end if
|
|
209
|
|
210 #if $options_type.optional_inputs.samples:
|
|
211 --samples "${options_type.optional_inputs.samples}"
|
|
212 #end if
|
|
213
|
|
214 #if $options_type.optional_inputs.populations:
|
|
215 --populations "${options_type.optional_inputs.populations}"
|
|
216 #end if
|
|
217
|
|
218 #if $options_type.optional_inputs.A:
|
|
219 --cnv-map "${options_type.optional_inputs.A}"
|
|
220 #end if
|
|
221
|
|
222 #if str( $options_type.optional_inputs.input_variant_type.input_variant_type_selector ) == "provide_vcf":
|
16
|
223 --variant-input "input_variant_vcf.vcf.gz" ## input_variant_vcf.vcf.gz is symlinked to a galaxy-generated dataset in "Tabixize optional input_varinat_vcf file" section of the command line above
|
13
|
224 ${options_type.optional_inputs.input_variant_type.only_use_input_alleles}
|
|
225 #end if
|
|
226
|
|
227 #if $options_type.optional_inputs.haplotype_basis_alleles:
|
|
228 --haplotype-basis-alleles "${options_type.optional_inputs.haplotype_basis_alleles}"
|
|
229 #end if
|
|
230
|
|
231 #if $options_type.optional_inputs.observation_bias:
|
|
232 --observation-bias "${options_type.optional_inputs.observation_bias}"
|
|
233 #end if
|
|
234
|
|
235 #if $options_type.optional_inputs.contamination_estimates:
|
|
236 --contamination-estimates "${options_type.optional_inputs.contamination_estimates}"
|
|
237 #end if
|
|
238
|
|
239 #end if
|
|
240 </token>
|
|
241 <xml name="optional_file_inputs">
|
|
242 <conditional name="optional_inputs">
|
|
243 <param name="optional_inputs_selector" type="boolean" truevalue="set" falsevalue="do_not_set" label="Do you want to provide additional inputs?" help="Sets --samples, --populations, --cnv-map, --trace, --failed-alleles, --varinat-input, --only-use-input-alleles, --haplotype-basis-alleles, --report-all-haplotype-alleles, --report-monomorphic options, --observation-bias, and --contamination-estimates" />
|
|
244 <when value="set">
|
|
245 <param name="output_failed_alleles_option" type="boolean" truevalue="--failed-alleles" falsevalue="" checked="False" label="Write out failed alleles file" help="--failed-alleles" />
|
|
246 <param name="output_trace_option" type="boolean" truevalue="--trace" falsevalue="" checked="False" label="Write out algorithm trace file" help="--trace"/>
|
|
247 <param name="samples" type="data" format="txt" label="Limit analysis to samples listed (one per line) in the FILE" optional="True" help="-s --samples; default=By default FreeBayes will analyze all samples in its input BAM files"/>
|
|
248 <param name="populations" type="data" format="txt" label="Populations File" optional="True" help="--populations; default=False. Each line of FILE should list a sample and a population which it is part of. The population-based bayesian inference model will then be partitioned on the basis of the populations" />
|
|
249 <param name="A" type="data" format="bed" label="Read a copy number map from the BED file FILE" optional="True" help="-A --cnv-map; default=copy number is set to as specified by --ploidy. Read a copy number map from the BED file FILE, which has the format: reference sequence, start, end, sample name, copy number ... for each region in each sample which does not have the default copy number as set by --ploidy."/>
|
|
250 <conditional name="input_variant_type">
|
|
251 <param name="input_variant_type_selector" type="select" label="Provide variants file">
|
|
252 <option value="do_not_provide" selected="True">Do not provide</option>
|
|
253 <option value="provide_vcf">Provide VCF file</option>
|
|
254 </param>
|
|
255 <when value="do_not_provide">
|
|
256 <!-- Do nothing here -->
|
|
257 </when>
|
|
258 <when value="provide_vcf">
|
|
259 <param name="input_variant_vcf" type="data" format="vcf_bgzip" label="Use variants reported in VCF file as input to the algorithm">
|
|
260 <conversion name="Tabixized_input" type="tabix" />
|
|
261 </param>
|
|
262 <param name="only_use_input_alleles" type="boolean" truevalue="--only-use-input-alleles" falsevalue="" checked="False" label="Only provide variant calls and genotype likelihoods for sites in VCF" />
|
|
263 </when>
|
|
264 </conditional>
|
|
265 <param name="haplotype_basis_alleles" type="data" format="vcf" label="Only use variant alleles provided in this input VCF for the construction of complex or haplotype alleles" optional="True" help="--haplotype-basis-alleles" />
|
|
266 <param name="report_monomorphic" type="boolean" truevalue="--report-monomorphic" falsevalue="" checked="False" label="Report even loci which appear to be monomorphic, and report all considered alleles, even those which are not in called genotypes." help="--report-monomorphic " />
|
|
267 <param name="observation_bias" optional="True" type="data" format="tabular" label="Load read length-dependent allele observation biases from" help="--observation-bias; The format is [length] [alignment efficiency relative to reference] where the efficiency is 1 if there is no relative observation bias" />
|
|
268 <param name="contamination_estimates" optional="True" type="data" format="tabular" label="Upload per-sample estimates of contamination from" help="--contamination-estimates; The format should be: sample p(read=R|genotype=AR) p(read=A|genotype=AA) Sample '*' can be used to set default contamination estimates." />
|
|
269 </when>
|
|
270 <when value="do_not_set">
|
|
271 <!-- do nothing -->
|
|
272 </when>
|
|
273 </conditional>
|
|
274 </xml>
|
|
275 </macros>
|
|
276
|
|
277 <inputs>
|
|
278 <conditional name="reference_source">
|
|
279 <param name="reference_source_selector" type="select" label="Load reference genome from">
|
|
280 <option value="cached">Local cache</option>
|
|
281 <option value="history">History</option>
|
|
282 </param>
|
|
283 <when value="cached">
|
|
284 <repeat name="input_bams" title="Sample BAM file" min="1">
|
|
285 <param name="input_bam" type="data" format="bam" label="BAM file">
|
|
286 <validator type="unspecified_build" />
|
16
|
287 <validator type="dataset_metadata_in_data_table" table_name="fasta_indexes" metadata_name="dbkey" metadata_column="1" message="Sequences are not currently available for the specified build." />
|
13
|
288 </param>
|
|
289 </repeat>
|
16
|
290
|
13
|
291 <param name="ref_file" type="select" label="Using reference genome">
|
16
|
292 <options from_data_table="fasta_indexes"></options>
|
13
|
293 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
|
|
294 </param>
|
|
295 </when>
|
|
296 <when value="history"> <!-- FIX ME!!!! -->
|
|
297 <repeat name="input_bams" title="Sample BAM file" min="1">
|
|
298 <param name="input_bam" type="data" format="bam" label="BAM file" />
|
|
299 </repeat>
|
16
|
300 <param name="ref_file" type="data" format="fasta" label="Use the following dataset as the reference sequence" help="You can upload a FASTA sequence to the history and use it as reference" />
|
13
|
301 </when>
|
|
302 </conditional>
|
|
303
|
|
304 <conditional name="target_limit_type">
|
|
305 <param name="target_limit_type_selector" type="select" label="Limit variant calling to a set of regions?" help="Sets --targets or --region options">
|
|
306 <option value="do_not_limit" selected="True">Do not limit</option>
|
|
307 <option value="limit_by_target_file">Limit by target file</option>
|
|
308 <option value="limit_by_region">Limit to region</option>
|
|
309 </param>
|
|
310 <when value="do_not_limit">
|
|
311 <!-- Do nothing here -->
|
|
312 </when>
|
|
313 <when value="limit_by_target_file">
|
|
314 <param name="input_target_bed" type="data" format="bed" label="Limit analysis to targets listed in the BED-format FILE." help="-t --targets"/>
|
|
315 </when>
|
|
316 <when value="limit_by_region">
|
|
317 <param name="region_chromosome" type="text" label="Region Chromosome" value="" help="-r --region"/> <!--only once? -->
|
|
318 <param name="region_start" type="integer" label="Region Start" value="" />
|
|
319 <param name="region_end" type="integer" label="Region End" value="" />
|
|
320 </when>
|
|
321 </conditional>
|
|
322
|
|
323 <conditional name="options_type">
|
|
324 <param name="options_type_selector" type="select" label="Choose parameter selection level" help="Select how much control over the freebayes run you need" >
|
|
325 <option value="simple" selected="True">1:Simple diploid calling</option>
|
|
326 <option value="simple_w_filters">2:Simple diploid calling with filtering and coverage</option>
|
|
327 <option value="naive">3:Frequency-based pooled calling</option>
|
|
328 <option value="naive_w_filters">4:Frequency-based pooled calling with filtering and coverage</option>
|
|
329 <option value="full">5:Complete list of all options</option>
|
16
|
330 <!-- We will not alloow command line text boxes at this time
|
13
|
331 <option value="cline">6:Input parameters on the command line</option>
|
16
|
332 -->
|
13
|
333 </param>
|
|
334 <when value="full">
|
|
335
|
|
336 <expand macro="optional_file_inputs" /> <!-- see macros section -->
|
|
337
|
|
338 <!-- reporting -->
|
|
339
|
|
340 <conditional name="reporting">
|
|
341 <param name="reporting_selector" type="boolean" truevalue="set" falsevalue="do_not_set" label="Set reporting option?" help="Sets -P --pvar option" />
|
|
342 <when value="set">
|
|
343 <param name="pvar" type="float" value="0.0" label="Report sites if the probability that there is a polymorphism at the site is greater than" help="-P --pvar; default=0.0. Note that post-filtering is generally recommended over the use of this parameter. " />
|
|
344 </when>
|
|
345 <when value="do_not_set">
|
|
346 <!-- do nothing -->
|
|
347 </when>
|
|
348 </conditional>
|
|
349
|
|
350 <!-- population model -->
|
|
351
|
|
352 <conditional name="population_model">
|
|
353 <param name="population_model_selector" type="boolean" truevalue="set" falsevalue="do_not_set" label="Set population model?" help="Sets --theta, --ploidy, --pooled-discrete, and --pooled-continuous options " />
|
|
354 <when value="set">
|
|
355 <param name="T" type="float" value="0.001" label="The expected mutation rate or pairwise nucleotide diversity among the population under analysis" help="-T --theta; default = 0.001. This serves as the single parameter to the Ewens Sampling Formula prior model." />
|
|
356 <param name="P" type="integer" value="2" label="Set ploidy for the analysis" help="-p --ploidy; default=2" />
|
|
357 <param name="J" type="boolean" truevalue="-J" falsevalue="" checked="False" label="Assume that samples result from pooled sequencing" help="-J --pooled-discrete; default=False. Model pooled samples using discrete genotypes across pools. When using this flag, set --ploidy to the number of alleles in each sample or use the --cnv-map to define per-sample ploidy." />
|
|
358 <param name="K" type="boolean" truevalue="-K" falsevalue="" checked="False" label="Output all alleles which pass input filters, regardles of genotyping outcome or model" help="-K, --poled-continuous; default=False. " />
|
|
359 </when>
|
|
360 <when value="do_not_set">
|
|
361 <!-- do nothing -->
|
|
362 </when>
|
|
363 </conditional>
|
|
364
|
|
365 <!-- reference allele -->
|
|
366
|
|
367 <conditional name="reference_allele">
|
|
368 <param name="reference_allele_selector" type="boolean" truevalue="set" falsevalue="do_not_set" label="Use reference allele?" help="Sets --use-reference-allele and --reference-quality options " />
|
|
369 <when value="set">
|
|
370 <param name="Z" type="boolean" truevalue="-Z" falsevalue="" checked="False" label="Include the reference allele in the analysis as if it is another sample from the same population" help="-Z --use-reference-allele; default=False" />
|
|
371 <param name="reference_quality" type="text" size="8" value="100,60" label="Assign mapping quality of MQ (100) to the reference allele at each site and base quality of BQ (60)" help="--reference-quality; default=100,60 " />
|
|
372 </when>
|
|
373 <when value="do_not_set">
|
|
374 <!-- do nothing -->
|
|
375 </when>
|
|
376 </conditional>
|
|
377
|
|
378 <!-- allelic scope -->
|
|
379
|
|
380 <conditional name="allele_scope">
|
15
|
381 <param name="allele_scope_selector" type="boolean" truevalue="set" falsevalue="do_not_set" label="Set allelic scope?" help="Sets -I, i, -X, -u, -n, --haplotype-length, --min-repeat-size, --min-repeat-entropy, and --no-partial-observations options " />
|
13
|
382 <when value="set">
|
|
383 <param name="I" type="boolean" truevalue="-I" falsevalue="" checked="False" label="Ignore SNP alleles" help="-I --no-snps; default=False" />
|
|
384 <param name="i" type="boolean" truevalue="-i" falsevalue="" checked="False" label="Ignore indels alleles" help="-i --no-indels; default=False" />
|
|
385 <param name="X" type="boolean" truevalue="-X" falsevalue="" checked="False" label="Ignore multi-nucleotide polymorphisms, MNPs" help="-X --no-mnps; default=False" />
|
|
386 <param name="u" type="boolean" truevalue="-u" falsevalue="" checked="False" label="Ignore complex events (composites of other classes)." help="-u --no-complex; default=False" />
|
|
387 <param name="n" type="integer" value="0" label="How many best SNP alleles to evaluate" help="-n --use-best-n-alleles; default=0 (all). Alleles are ranked by the sum of supporting quality scores. Set to 0 to evaluate all" />
|
15
|
388 <param name="haplotype_length" type="integer" value="3" label="Allow haplotype calls with contiguous embedded matches of up to (nucleotides)" help="-E --max-complex-gap --haplotype-length; default=3." />
|
|
389 <param name="min_repeat_length" type="integer" value="5" label="When assembling observations across repeats, require the total repeat length at least this many bp" help="--min-repeat-size; default=5." />
|
|
390 <param name="min_repeat_entropy" type="integer" value="0" label="To detect interrupted repeats, build across sequence until it has entropy > (bits per bp)" help="--min-repeat-entropy; default=0 (off)." />
|
13
|
391 <param name="no_partial_observations" type="boolean" truevalue="--no-partial-observations" falsevalue="" checked="False" label="Exclude observations which do not fully span the dynamically-determined detection window" help="--no-partial-observations; default=use all observations, dividing partial support across matching haplotypes when generating haplotypes. " />
|
|
392 </when>
|
|
393 <when value="do_not_set">
|
|
394 <!-- do nothing -->
|
|
395 </when>
|
|
396 </conditional>
|
|
397
|
|
398 <!-- indel realignment -->
|
|
399
|
|
400 <param name="O" type="boolean" truevalue="-O" falsevalue="" checked="False" label="Turn off left-alignment of indels?" help="-O --dont-left-align-indels; default=False (do left align). " />
|
|
401
|
|
402 <!-- input filters -->
|
|
403
|
|
404 <conditional name="input_filters">
|
|
405 <param name="input_filters_selector" type="boolean" truevalue="set" falsevalue="do_not_set" label="Set input filters?" help="Sets -4, -m, -q, -R, -Y, -Q, -U, -z, -$, -e, -0, -F, -C, -3, -G, and -! options " />
|
|
406 <when value="set">
|
|
407 <param name="use_duplicate_reads" type="boolean" truevalue="--use-duplicate-reads" falsevalue="" checked="False" label="Include duplicate-marked alignments in the analysis." help="-4 --use-duplicate-reads; default=False (exclude duplicates marked as such in alignments)." />
|
|
408 <param name="m" type="integer" value="1" label="Exclude alignments from analysis if they have a mapping quality less than" help="-m --min-mapping-quality; default=1" />
|
|
409 <param name="q" type="integer" value="0" label="Exclude alleles from analysis if their supporting base quality less than" help="-q --min-base-quality; default=0" />
|
|
410 <param name="R" type="integer" value="0" label="Consider any allele in which the sum of qualities of supporting observations is at least" help="-R --min-supporting-allele-qsum; default=0" />
|
|
411 <param name="Y" type="integer" value="0" label="Consider any allele in which and the sum of mapping qualities of supporting reads is at least" help="-Y --min-supporting-mapping-qsum; default=0" />
|
|
412 <conditional name="mismatch_filters">
|
|
413 <param name="mismatch_filters_selector" type="boolean" truevalue="set" falsevalue="do_not_set" label="Perform mismatch filtering?" help="Sets -Q, -U, -z, and $ options" />
|
|
414 <when value="set">
|
|
415 <param name="Q" type="integer" value="10" label="Count mismatches toward -U (option below) if the base quality of the mismatch is >=" help="-Q --mismatch-base-quality-threshold; default=10" />
|
|
416 <param name="U" type="integer" value="1000" optional="True" label="Exclude reads with more than N mismatches where each mismatch has base quality >= Q (option above)" help="-U --read-mismatch-limit; default=~unbound" />
|
|
417 <param name="z" type="float" value="1.0" min="0.0" max="1.0" label="Exclude reads with more than N [0,1] fraction of mismatches where each mismatch has base quality >= Q (second option above)" help="-z --read-max-mismatch-fraction; default=1.0" />
|
|
418 <param name="read_snp_limit" type="integer" value="1000" label="Exclude reads with more than N base mismatches, ignoring gaps with quality >= Q (third option abobe)" help="-$amp; --read-snp-limit N " />
|
|
419 </when>
|
|
420 <when value="do_not_set">
|
|
421 <!-- do nothing -->
|
|
422 </when>
|
|
423 </conditional>
|
|
424 <param name="e" type="integer" value="1000" label="Exclude reads with more than this number of separate gaps" help="-e --read-snp-limit; default=~unbounded" />
|
|
425 <param name="standard_filters" type="boolean" truevalue="-0" falsevalue="" checked="False" label="Use stringent input base and mapping quality filters" help="-0 --standard-filters; default=False. Equivalent to -m 30 -q 20 -R 0 -S 0" />
|
|
426 <param name="F" type="float" value="0.2" label="Require at least this fraction of observations supporting an alternate allele within a single individual in the in order to evaluate the position" help="-F --min-alternate-fraction; default=0.2" />
|
|
427 <param name="C" type="integer" value="2" label="Require at least this count of observations supporting an alternate allele within a single individual in order to evaluate the position" help="-C --min-alternate-count; default=2" />
|
|
428 <param name="min_alternate_qsum" type="integer" value="0" label="Require at least this sum of quality of observations supporting an alternate allele within a single individual in order to evaluate the position" help="-3 --min-alternate-qsum; default=0" />
|
|
429 <param name="G" type="integer" value="1" label="Require at least this count of observations supporting an alternate allele within the total population in order to use the allele in analysis" help="-G --min-alternate-total N; default=1" />
|
|
430 <param name="min_coverage" type="integer" value="0" label="Require at least this coverage to process a site" help="-! --min-coverage; default=0 " />
|
|
431 </when>
|
|
432 <when value="do_not_set">
|
|
433 <!-- do nothing -->
|
|
434 </when>
|
|
435 </conditional>
|
|
436
|
|
437 <!-- population and mappability priors -->
|
|
438
|
|
439 <conditional name="population_mappability_priors">
|
|
440 <param name="population_mappability_priors_selector" type="boolean" truevalue="set" falsevalue="do_not_set" label="Set population and mappability priors?" help="Sets -k, -w, -V, and -a options " />
|
|
441 <when value="set">
|
|
442 <param name="k" type="boolean" truevalue="-k" falsevalue="" checked="False" label="No population priors" help="-k --no-population-priors; default=False. Equivalent to --pooled-discrete --hwe-priors-off and removal of Ewens Sampling Formula component of priors." />
|
|
443 <param name="w" type="boolean" truevalue="-w" falsevalue="" checked="False" label="Disable estimation of the probability of the combination arising under HWE given the allele frequency as estimated by observation frequency" help="-w --hwe-priors-off; default=False" />
|
|
444 <param name="V" type="boolean" truevalue="-V" falsevalue="" checked="False" label="Disable incorporation of prior expectations about observations" help="-V --binomial-obs-priors-off; default=False. Uses read placement probability, strand balance probability, and read position (5''-3'') probability." />
|
|
445 <param name="a" type="boolean" truevalue="-a" falsevalue="" checked="False" label="isable use of aggregate probability of observation balance between alleles as a component of the priors" help="-a --allele-balance-priors-off; default=False " />
|
|
446 </when>
|
|
447 <when value="do_not_set">
|
|
448 <!-- do nothing -->
|
|
449 </when>
|
|
450 </conditional>
|
|
451
|
|
452 <!-- genotype likelihoods -->
|
|
453
|
|
454 <conditional name="genotype_likelihoods">
|
|
455 <param name="genotype_likelihoods_selector" type="boolean" truevalue="set" falsevalue="do_not_set" label="Tweak genotype likelihoods?" help="Sets --base-quality-cap, --experimental-gls, and --prob-contamination options. " />
|
|
456 <when value="set">
|
|
457 <param name="base_quality_cap" type="integer" value="0" label="Limit estimated observation quality by capping base quality at" help="--base-quality-cap" />
|
|
458 <param name="experimental_gls" type="boolean" truevalue="--experimental-gls" falsevalue="" checked="False" label="Generate genotype likelihoods using 'effective base depth' metric qual = 1-BaseQual * 1-MapQual" help="--experimental-gls; Incorporate partial observations. This is the default when contamination estimates are provided. Optimized for diploid samples." />
|
|
459 <param name="prob_contamination" type="float" value="10e-9" label="An estimate of contamination to use for all samples. " help="--prob-contamination; default=10e-9." />
|
|
460 </when>
|
|
461 <when value="do_not_set">
|
|
462 <!-- do nothing -->
|
|
463 </when>
|
|
464 </conditional>
|
|
465
|
|
466 <!-- algorithmic features -->
|
|
467
|
|
468 <conditional name="algorithmic_features">
|
15
|
469 <param name="algorithmic_features_selector" type="boolean" truevalue="set" falsevalue="do_not_set" label="Tweak algorithmic features?" help="Sets --report-genotypes-likelihood-max, -B, --genotyping-max-banddepth, -W, -N, S, -j, -H, -D, -= options " />
|
13
|
470 <when value="set">
|
|
471 <param name="report_genotype_likelihood_max" type="boolean" truevalue="--report-genotype-likelihood-max" falsevalue="" checked="False" label="Report genotypes using the maximum-likelihood estimate provided from genotype likelihoods." help="--report-genotype-likelihood-max; default=False" />
|
|
472 <param name="B" type="integer" value="1000" label="Iterate no more than N times during genotyping step" help="-B --genotyping-max-iterations; default=1000." />
|
|
473 <param name="genotyping_max_banddepth" type="integer" value="6" label="Integrate no deeper than the Nth best genotype by likelihood when genotyping" help="--genotyping-max-banddepth; default=6" />
|
|
474 <param name="W" type="text" size="8" value="1,3" label="Integrate all genotype combinations in our posterior space which include no more than N (1) samples with their Mth (3) best data likelihood" help="-W --posterior-integration-limits; default=1,3" />
|
|
475 <param name="N" type="boolean" truevalue="--exclude-unobserved-genotypes" falsevalue="" checked="False" label="Skip sample genotypings for which the sample has no supporting reads" help="-N --exclude-unobserved-genotypes; default=False" />
|
|
476 <conditional name="genotype_variant_threshold">
|
|
477 <param name="genotype_variant_threshold_selector" type="boolean" truevalue="set" falsevalue="do_not_set" label="Do you want to to limit posterior integration" help="-S --genotype-variant-threshold" />
|
|
478 <when value="do_not_set">
|
|
479 <!-- do nothing -->
|
|
480 </when>
|
|
481 <when value="set">
|
|
482 <param name="S" value="" type="integer" label="Limit posterior integration to samples where the second-best genotype likelihood is no more than log(N) from the highest genotype likelihood for the sample." help="-S --genotype-variant-threshold; default=~unbounded" />
|
|
483 </when>
|
|
484 </conditional>
|
|
485 <param name="j" type="boolean" truevalue="-j" falsevalue="" checked="False" label="Use mapping quality of alleles when calculating data likelihoods" help="-j --use-mapping-quality; default=False" />
|
|
486 <param name="H" type="boolean" truevalue="-H" falsevalue="" checked="False" label="Use a weighted sum of base qualities around an indel, scaled by the distance from the indel" help="-H --harmonic-indel-quality; default=use a minimum Base Quality in flanking sequence." />
|
|
487 <param name="D" type="float" value="0.9" label="Incorporate non-independence of reads by scaling successive observations by this factor during data likelihood calculations" help="-D --read-dependence-factor; default=0.9." />
|
|
488 <param name="genotype_qualities" type="boolean" truevalue="--genotype-qualities" falsevalue="" checked="False" label="Calculate the marginal probability of genotypes and report as GQ in each sample field in the VCF output" help="-= --genotype-qualities; default=False " />
|
|
489 </when>
|
|
490 <when value="do_not_set">
|
|
491 <!-- do nothing -->
|
|
492 </when>
|
|
493 </conditional>
|
|
494 </when>
|
|
495 <when value="simple">
|
|
496 <!-- do nothing -->
|
|
497 </when>
|
|
498 <when value="simple_w_filters">
|
|
499 <!-- add standard-filters to command line -->
|
|
500 <param name="min_coverage" type="integer" value="0" label="Require at least this coverage to process a site" help="-! --min-coverage; default=0 " />
|
|
501 </when>
|
|
502 <when value="naive">
|
|
503 <!-- do nothing build command line using haplotype-length 0 min-alternate-count 1 min-alternate-fraction 0 pooled-continuous report-monomorphic -->
|
|
504 </when>
|
|
505 <when value="naive_w_filters">
|
|
506 <!-- do nothing build command line using haplotype-length 0 min-alternate-count 1 min-alternate-fraction 0 pooled-continuous report-monomorphic standard-filters-->
|
|
507 <param name="min_coverage" type="integer" value="0" label="Require at least this coverage to process a site" help="-! --min-coverage; default=0 " />
|
|
508 </when>
|
16
|
509
|
|
510 <!-- We will not allow command line textboxes at this time
|
13
|
511 <when value="cline">
|
|
512
|
16
|
513 <expand macro="optional_file_inputs" />
|
13
|
514
|
|
515 <param name="cline" size="60" type="text" value="-m 20 -q 30" label="Type command line tags here" help="All paremeters that DO NOT involve filenames can be typed here. Use "Do you want to provide additional inputs?" section above to control input and output files. For full syntax check help section below">
|
|
516 <sanitizer>
|
|
517 <valid initial="string.printable">
|
|
518 <remove value="'"/>
|
|
519 </valid>
|
|
520 <mapping initial="none">
|
|
521 <add source="'" target="__sq__"/>
|
|
522 </mapping>
|
|
523 </sanitizer>
|
|
524 </param>
|
|
525 </when>
|
16
|
526 -->
|
13
|
527
|
|
528 </conditional>
|
|
529
|
|
530 </inputs>
|
|
531 <outputs>
|
|
532 <data format="vcf" name="output_vcf" label="${tool.name} on ${on_string} (variants)" />
|
|
533 <data format="bed" name="output_failed_alleles_bed" label="${tool.name} on ${on_string} (failed alleles)">
|
|
534 <filter>( options_type['options_type_selector'] == 'cline' or options_type['options_type_selector'] == 'full' ) and options_type['optional_inputs']['optional_inputs_selector'] is True and options_type['optional_inputs']['output_failed_alleles_option'] is True</filter>
|
|
535 </data>
|
|
536 <data format="txt" name="output_trace" label="${tool.name} on ${on_string} (trace)">
|
|
537 <filter>( options_type['options_type_selector'] == 'cline' or options_type['options_type_selector'] == 'full' ) and options_type['optional_inputs']['optional_inputs_selector'] is True and options_type['optional_inputs']['output_trace_option'] is True</filter>
|
|
538 </data>
|
|
539 </outputs>
|
|
540 <tests>
|
|
541 <test>
|
|
542 <param name="reference_source_selector" value="history" />
|
|
543 <param name="ref_file" ftype="fasta" value="freebayes-phix174.fasta"/>
|
|
544 <param name="input_bam" ftype="bam" value="freebayes-phix174.bam"/>
|
|
545 <param name="options_type_selector" value="simple"/>
|
|
546 <output name="output_vcf" file="freebayes-phix174-test1.vcf" compare="contains"/>
|
|
547 </test>
|
|
548 </tests>
|
|
549 <stdio>
|
|
550 <exit_code range="1:" />
|
|
551 </stdio>
|
|
552 <help>
|
|
553 **What it does**
|
|
554
|
|
555 FreeBayes is a Bayesian genetic variant detector designed to find small polymorphisms, specifically SNPs (single-nucleotide polymorphisms), indels (insertions and deletions), MNPs (multi-nucleotide polymorphisms), and complex events (composite insertion and substitution events) smaller than the length of a short-read sequencing alignment.
|
|
556
|
|
557 See https://github.com/ekg/freebayes for details on FreeBayes.
|
|
558
|
16
|
559 This Galaxy instance of FreeBayes corresponds to release 0.9.18
|
13
|
560
|
|
561 ------
|
|
562
|
|
563 **Description**
|
|
564
|
|
565 Privided BAM file(s) and a reference. FreeBayes will provide VCF output on standard out describing SNPs, indels, and complex variants in samples in the input alignments.
|
|
566
|
|
567 By default, FreeBayes will consider variants supported by at least 2 observations in a single sample (-C) and also by at least 20% of the reads from a single sample (-F). These settings are suitable to low to high depth sequencing in haploid and diploid samples, but users working with polyploid or pooled samples may wish to adjust them depending on the characteristics of their sequencing data.
|
|
568
|
|
569 FreeBayes is capable of calling variant haplotypes shorter than a read length where multiple polymorphisms segregate on the same read. The maximum distance between polymorphisms phased in this way is determined by the --max-complex-gap, which defaults to 3bp. In practice, this can comfortably be set to half the read length.
|
|
570
|
|
571 Ploidy may be set to any level (-p), but by default all samples are assumed to be diploid. FreeBayes can model per-sample and per-region variation in copy-number (-A) using a copy-number variation map.
|
|
572
|
|
573 FreeBayes can act as a frequency-based pooled caller and describe variants and haplotypes in terms of observation frequency rather than called genotypes. To do so, use --pooled-continuous and set input filters to a suitable level. Allele observation counts will be described by AO and RO fields in the VCF output.
|
|
574
|
|
575 -------
|
|
576
|
|
577 **Galaxy-specific options**
|
|
578
|
|
579 Galaxy allows six levels of control over FreeBayes options provided by **Choose parameter selection level** menu option. These are:
|
|
580
|
|
581 1. *Simple diploid calling*: The simples possible FreeBayes application. Equvalent of using FreeBayes with only a BAM input and no other parameter options.
|
|
582 2. *Simple diploid calling with filtering and coverage*: Same as #1 plus two additional options: -0 (standard filters: --min-mapping-quality 30 --min-base-quality 20 --min-supporting-allele-qsum 0 --genotype-varinat-threshold 0) and --min-coverage.
|
|
583 3. *Frequency-based pooled calling*: This is equivalent to using FreeBayes with the following options: --haplotype-length 0 --min-alternate-count 1 --min-alternate-fraction 0 --pooled-continuous --report-monomorphic. This is the best choice for calling varinats in mixtures such as viral, bacterial, or organellar genomes.
|
|
584 4. *Frequency-based pooled calling with filtering and coverage*: Same as #3 but adds -0 and --min-coverage like in #2.
|
|
585 5. *Complete list of all options*: Gives you full control by exposing all FreeBayes options as Galaxy widgets.
|
|
586
|
|
587 -----
|
|
588
|
|
589 **FreeBayes options**
|
|
590
|
|
591 .. class:: infomark
|
|
592
|
|
593 Note that each Galaxy parameter widget corresponding to command line flags listed below:
|
|
594
|
|
595 Input and output::
|
|
596
|
|
597 -t --targets FILE
|
|
598 Limit analysis to targets listed in the BED-format FILE.
|
|
599 -r --region chrom:start_position-end_position
|
|
600 Limit analysis to the specified region, 0-base coordinates,
|
|
601 end_position included. Either '-' or '..' maybe used as a separator.
|
|
602 -s --samples FILE
|
|
603 Limit analysis to samples listed (one per line) in the FILE.
|
|
604 By default FreeBayes will analyze all samples in its input
|
|
605 BAM files.
|
|
606 --populations FILE
|
|
607 Each line of FILE should list a sample and a population which
|
|
608 it is part of. The population-based bayesian inference model
|
|
609 will then be partitioned on the basis of the populations.
|
|
610 -A --cnv-map FILE
|
|
611 Read a copy number map from the BED file FILE, which has
|
|
612 the format:
|
|
613 reference sequence, start, end, sample name, copy number
|
|
614 ... for each region in each sample which does not have the
|
|
615 default copy number as set by --ploidy.
|
|
616 --trace FILE Output an algorithmic trace to FILE.
|
|
617 --failed-alleles FILE
|
|
618 Write a BED file of the analyzed positions which do not
|
|
619 pass --pvar to FILE.
|
|
620 -@ --variant-input VCF
|
|
621 Use variants reported in VCF file as input to the algorithm.
|
|
622 Variants in this file will be treated as putative variants
|
|
623 even if there is not enough support in the data to pass
|
|
624 input filters.
|
|
625 -l --only-use-input-alleles
|
|
626 Only provide variant calls and genotype likelihoods for sites
|
|
627 and alleles which are provided in the VCF input, and provide
|
|
628 output in the VCF for all input alleles, not just those which
|
|
629 have support in the data.
|
|
630 --haplotype-basis-alleles VCF
|
|
631 When specified, only variant alleles provided in this input
|
|
632 VCF will be used for the construction of complex or haplotype
|
|
633 alleles.
|
|
634 --report-all-haplotype-alleles
|
|
635 At sites where genotypes are made over haplotype alleles,
|
|
636 provide information about all alleles in output, not only
|
|
637 those which are called.
|
|
638 --report-monomorphic
|
|
639 Report even loci which appear to be monomorphic, and report all
|
|
640 considered alleles, even those which are not in called genotypes.
|
|
641 Loci which do not have any potential alternates have '.' for ALT.
|
|
642
|
|
643 Reporting::
|
|
644
|
|
645 -P --pvar N Report sites if the probability that there is a polymorphism
|
|
646 at the site is greater than N. default: 0.0. Note that post-
|
|
647 filtering is generally recommended over the use of this parameter.
|
|
648
|
|
649 Population model::
|
|
650
|
|
651 -T --theta N The expected mutation rate or pairwise nucleotide diversity
|
|
652 among the population under analysis. This serves as the
|
|
653 single parameter to the Ewens Sampling Formula prior model
|
|
654 default: 0.001
|
|
655 -p --ploidy N Sets the default ploidy for the analysis to N. default: 2
|
|
656 -J --pooled-discrete
|
|
657 Assume that samples result from pooled sequencing.
|
|
658 Model pooled samples using discrete genotypes across pools.
|
|
659 When using this flag, set --ploidy to the number of
|
|
660 alleles in each sample or use the --cnv-map to define
|
|
661 per-sample ploidy.
|
|
662 -K --pooled-continuous
|
|
663 Output all alleles which pass input filters, regardles of
|
|
664 genotyping outcome or model.
|
|
665
|
|
666 Reference allele::
|
|
667
|
|
668 -Z --use-reference-allele
|
|
669 This flag includes the reference allele in the analysis as
|
|
670 if it is another sample from the same population.
|
|
671 --reference-quality MQ,BQ
|
|
672 Assign mapping quality of MQ to the reference allele at each
|
|
673 site and base quality of BQ. default: 100,60
|
|
674
|
|
675 Allele scope::
|
|
676
|
|
677 -I --no-snps Ignore SNP alleles.
|
|
678 -i --no-indels Ignore insertion and deletion alleles.
|
|
679 -X --no-mnps Ignore multi-nuceotide polymorphisms, MNPs.
|
|
680 -u --no-complex Ignore complex events (composites of other classes).
|
|
681 -n --use-best-n-alleles N
|
|
682 Evaluate only the best N SNP alleles, ranked by sum of
|
|
683 supporting quality scores. (Set to 0 to use all; default: all)
|
|
684 -E --max-complex-gap N
|
|
685 --haplotype-length N
|
|
686 Allow haplotype calls with contiguous embedded matches of up
|
|
687 to this length. (default: 3)
|
15
|
688 --min-repeat-size N
|
13
|
689 When assembling observations across repeats, require the total repeat
|
|
690 length at least this many bp. (default: 5)
|
|
691 --min-repeat-entropy N
|
|
692 To detect interrupted repeats, build across sequence until it has
|
|
693 entropy > N bits per bp. (default: 0, off)
|
|
694 --no-partial-observations
|
|
695 Exclude observations which do not fully span the dynamically-determined
|
|
696 detection window. (default, use all observations, dividing partial
|
|
697 support across matching haplotypes when generating haplotypes.)
|
|
698
|
|
699 Indel realignment::
|
|
700
|
|
701 -O --dont-left-align-indels
|
|
702 Turn off left-alignment of indels, which is enabled by default.
|
|
703
|
|
704 Input filters::
|
|
705
|
|
706 -4 --use-duplicate-reads
|
|
707 Include duplicate-marked alignments in the analysis.
|
|
708 default: exclude duplicates marked as such in alignments
|
|
709 -m --min-mapping-quality Q
|
|
710 Exclude alignments from analysis if they have a mapping
|
|
711 quality less than Q. default: 1
|
|
712 -q --min-base-quality Q
|
|
713 Exclude alleles from analysis if their supporting base
|
|
714 quality is less than Q. default: 0
|
|
715 -R --min-supporting-allele-qsum Q
|
|
716 Consider any allele in which the sum of qualities of supporting
|
|
717 observations is at least Q. default: 0
|
|
718 -Y --min-supporting-mapping-qsum Q
|
|
719 Consider any allele in which and the sum of mapping qualities of
|
|
720 supporting reads is at least Q. default: 0
|
|
721 -Q --mismatch-base-quality-threshold Q
|
|
722 Count mismatches toward --read-mismatch-limit if the base
|
|
723 quality of the mismatch is >= Q. default: 10
|
|
724 -U --read-mismatch-limit N
|
|
725 Exclude reads with more than N mismatches where each mismatch
|
|
726 has base quality >= mismatch-base-quality-threshold.
|
|
727 default: ~unbounded
|
|
728 -z --read-max-mismatch-fraction N
|
|
729 Exclude reads with more than N [0,1] fraction of mismatches where
|
|
730 each mismatch has base quality >= mismatch-base-quality-threshold
|
|
731 default: 1.0
|
|
732 -$ --read-snp-limit N
|
|
733 Exclude reads with more than N base mismatches, ignoring gaps
|
|
734 with quality >= mismatch-base-quality-threshold.
|
|
735 default: ~unbounded
|
|
736 -e --read-indel-limit N
|
|
737 Exclude reads with more than N separate gaps.
|
|
738 default: ~unbounded
|
|
739 -0 --standard-filters Use stringent input base and mapping quality filters
|
|
740 Equivalent to -m 30 -q 20 -R 0 -S 0
|
|
741 -F --min-alternate-fraction N
|
|
742 Require at least this fraction of observations supporting
|
|
743 an alternate allele within a single individual in the
|
|
744 in order to evaluate the position. default: 0.2
|
|
745 -C --min-alternate-count N
|
|
746 Require at least this count of observations supporting
|
|
747 an alternate allele within a single individual in order
|
|
748 to evaluate the position. default: 2
|
|
749 -3 --min-alternate-qsum N
|
|
750 Require at least this sum of quality of observations supporting
|
|
751 an alternate allele within a single individual in order
|
|
752 to evaluate the position. default: 0
|
|
753 -G --min-alternate-total N
|
|
754 Require at least this count of observations supporting
|
|
755 an alternate allele within the total population in order
|
|
756 to use the allele in analysis. default: 1
|
|
757 -! --min-coverage N
|
|
758 Require at least this coverage to process a site. default: 0
|
|
759
|
|
760 Population priors::
|
|
761
|
|
762 -k --no-population-priors
|
|
763 Equivalent to --pooled-discrete --hwe-priors-off and removal of
|
|
764 Ewens Sampling Formula component of priors.
|
|
765
|
|
766 Mappability priors::
|
|
767
|
|
768 -w --hwe-priors-off
|
|
769 Disable estimation of the probability of the combination
|
|
770 arising under HWE given the allele frequency as estimated
|
|
771 by observation frequency.
|
|
772 -V --binomial-obs-priors-off
|
|
773 Disable incorporation of prior expectations about observations.
|
|
774 Uses read placement probability, strand balance probability,
|
|
775 and read position (5'-3') probability.
|
|
776 -a --allele-balance-priors-off
|
|
777 Disable use of aggregate probability of observation balance between alleles
|
|
778 as a component of the priors.
|
|
779
|
|
780 Genotype likelihoods::
|
|
781
|
|
782 --observation-bias FILE
|
|
783 Read length-dependent allele observation biases from FILE.
|
|
784 The format is [length] [alignment efficiency relative to reference]
|
|
785 where the efficiency is 1 if there is no relative observation bias.
|
|
786 --base-quality-cap Q
|
|
787 Limit estimated observation quality by capping base quality at Q.
|
|
788 --experimental-gls
|
|
789 Generate genotype likelihoods using 'effective base depth' metric
|
|
790 qual = 1-BaseQual * 1-MapQual. Incorporate partial observations.
|
|
791 This is the default when contamination estimates are provided.
|
|
792 Optimized for diploid samples.
|
|
793 --prob-contamination F
|
|
794 An estimate of contamination to use for all samples. default: 10e-9
|
|
795 --contamination-estimates FILE
|
|
796 A file containing per-sample estimates of contamination, such as
|
|
797 those generated by VerifyBamID. The format should be:
|
|
798 sample p(read=R|genotype=AR) p(read=A|genotype=AA)
|
|
799 Sample '*' can be used to set default contamination estimates.
|
|
800
|
|
801 Algorithmic features::
|
|
802
|
|
803 --report-genotype-likelihood-max
|
|
804 Report genotypes using the maximum-likelihood estimate provided
|
|
805 from genotype likelihoods.
|
|
806 -B --genotyping-max-iterations N
|
|
807 Iterate no more than N times during genotyping step. default: 1000.
|
|
808 --genotyping-max-banddepth N
|
|
809 Integrate no deeper than the Nth best genotype by likelihood when
|
|
810 genotyping. default: 6.
|
|
811 -W --posterior-integration-limits N,M
|
|
812 Integrate all genotype combinations in our posterior space
|
|
813 which include no more than N samples with their Mth best
|
|
814 data likelihood. default: 1,3.
|
|
815 -N --exclude-unobserved-genotypes
|
|
816 Skip sample genotypings for which the sample has no supporting reads.
|
|
817 -S --genotype-variant-threshold N
|
|
818 Limit posterior integration to samples where the second-best
|
|
819 genotype likelihood is no more than log(N) from the highest
|
|
820 genotype likelihood for the sample. default: ~unbounded
|
|
821 -j --use-mapping-quality
|
|
822 Use mapping quality of alleles when calculating data likelihoods.
|
|
823 -H --harmonic-indel-quality
|
|
824 Use a weighted sum of base qualities around an indel, scaled by the
|
|
825 distance from the indel. By default use a minimum BQ in flanking sequence.
|
|
826 -D --read-dependence-factor N
|
|
827 Incorporate non-independence of reads by scaling successive
|
|
828 observations by this factor during data likelihood
|
|
829 calculations. default: 0.9
|
|
830 -= --genotype-qualities
|
|
831 Calculate the marginal probability of genotypes and report as GQ in
|
|
832 each sample field in the VCF output.
|
|
833
|
|
834
|
|
835 ------
|
|
836
|
|
837 **Citation**
|
|
838
|
|
839 For the underlying tool, please cite `Erik Garrison and Gabor Marth. Haplotype-based variant detection from short-read sequencing <http://arxiv.org/abs/1207.3907>`_.
|
|
840
|
|
841 The initial version of the wrapper was produced by Dan Blankenberg and upgraded by Anton Nekrutenko.
|
|
842
|
|
843 </help>
|
16
|
844
|
|
845 <citations>
|
|
846 <citation type="bibtex">@misc{1207.3907,
|
|
847 Author = {Erik Garrison},
|
|
848 Title = {Haplotype-based variant detection from short-read sequencing},
|
|
849 Year = {2012},
|
|
850 Eprint = {arXiv:1207.3907},
|
|
851 url = {http://arxiv.org/abs/1207.3907},
|
|
852 }</citation>
|
|
853 </citations>
|
13
|
854 </tool>
|