comparison bcftools_mpileup.xml @ 13:37757ffb4c5f draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bcftools commit db275932cbb485cb44ae91e0b421d6f57698db49
author iuc
date Tue, 20 Sep 2022 12:50:07 +0000
parents 31ea13dfe5e6
children
comparison
equal deleted inserted replaced
12:31ea13dfe5e6 13:37757ffb4c5f
1 <?xml version='1.0' encoding='utf-8'?> 1 <?xml version='1.0' encoding='utf-8'?>
2 <tool name="bcftools @EXECUTABLE@" id="bcftools_@EXECUTABLE@" version="@TOOL_VERSION@+galaxy2"> 2 <tool name="bcftools @EXECUTABLE@" id="bcftools_@EXECUTABLE@" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
3 <description>Generate VCF or BCF containing genotype likelihoods for one or multiple alignment (BAM or CRAM) files</description> 3 <description>Generate VCF or BCF containing genotype likelihoods for one or multiple alignment (BAM or CRAM) files</description>
4 <macros> 4 <macros>
5 <token name="@EXECUTABLE@">mpileup</token> 5 <token name="@EXECUTABLE@">mpileup</token>
6 <import>macros.xml</import> 6 <import>macros.xml</import>
7 <xml name="bam_flag_options"> 7 <xml name="bam_flag_options">
95 #if len( $section.perform_indel_calling.platform_list_repeat ): 95 #if len( $section.perform_indel_calling.platform_list_repeat ):
96 -P "${ ",".join( [ str( platform.platform_entry ) for platform in $section.perform_indel_calling.platform_list_repeat ] ) }" 96 -P "${ ",".join( [ str( platform.platform_entry ) for platform in $section.perform_indel_calling.platform_list_repeat ] ) }"
97 #end if 97 #end if
98 #end if 98 #end if
99 99
100 #if $section.ambig_reads
101 --ambig-reads $section.ambig_reads
102 #end if
103
104 #if $section.indel_bias
105 --indel-bias $section.indel_bias
106 #end if
107
108 #if $section.indel_size
109 --indel-size $section.indel_size
110 #end if
111
100 ## Filter section 112 ## Filter section
101 #set $section = $sec_filtering 113 #set $section = $sec_filtering
102 #if str( $section.filter_by_flags.filter_flags ) == "filter": 114 #if str( $section.filter_by_flags.filter_flags ) == "filter":
103 #if $section.filter_by_flags.require_flags: 115 #if $section.filter_by_flags.skip_all_set:
104 --rf ${sum([int(flag) for flag in str($section.filter_by_flags.require_flags).split(',')])} 116 --skip-all-set ${sum([int(flag) for flag in str($section.filter_by_flags.skip_all_set).split(',')])}
105 #end if 117 #end if
106 #if $section.filter_by_flags.exclude_flags: 118 #if $section.filter_by_flags.skip_any_set:
107 --ff ${sum([int(flag) for flag in str($section.filter_by_flags.exclude_flags).split(',')])} 119 --skip-any-set ${sum([int(flag) for flag in str($section.filter_by_flags.skip_any_set).split(',')])}
120 #end if
121 #if $section.filter_by_flags.skip_all_unset:
122 --skip-all-unset ${sum([int(flag) for flag in str($section.filter_by_flags.skip_all_unset).split(',')])}
123 #end if
124 #if $section.filter_by_flags.skip_any_unset:
125 --skip-any-unset ${sum([int(flag) for flag in str($section.filter_by_flags.skip_any_unset).split(',')])}
108 #end if 126 #end if
109 #end if 127 #end if
110 -d "${section.max_reads_per_bam}" 128 -d "${section.max_reads_per_bam}"
111 $section.ignore_overlaps 129 $section.ignore_overlaps
112 ${section.skip_anomalous_read_pairs} 130 ${section.skip_anomalous_read_pairs}
138 156
139 ## Restrict section 157 ## Restrict section
140 #set $section = $sec_restrict 158 #set $section = $sec_restrict
141 @REGIONS@ 159 @REGIONS@
142 @TARGETS@ 160 @TARGETS@
143
144 @THREADS@ 161 @THREADS@
145
146 @OUTPUT_TYPE@ 162 @OUTPUT_TYPE@
147 163
148 ## Primary Input/Outputs 164 ## Primary Input/Outputs
149 #echo ' '.join($bam_list)# 165 #echo ' '.join($bam_list)#
150 > '$output_file' 166 > '$output_file'
219 <param name="platform_entry" type="text" value="" label="Platform to use for INDEL candidates" help="It is recommended to collect indel candidates from sequencing technologies that have low indel error rate such as ILLUMINA"/> 235 <param name="platform_entry" type="text" value="" label="Platform to use for INDEL candidates" help="It is recommended to collect indel candidates from sequencing technologies that have low indel error rate such as ILLUMINA"/>
220 </repeat> 236 </repeat>
221 </when> 237 </when>
222 <when value="do_not_perform_indel_calling" /> 238 <when value="do_not_perform_indel_calling" />
223 </conditional> 239 </conditional>
240 <param argument="--ambig-reads" type="select" optional="true" label="Ambiguous indel reads" help="What to do with ambiguous indel reads that do not span an entire short tandem repeat region: discard ambiguous reads from calling and do not increment high-quality AD depth counters (drop), exclude from calling but increment AD counters proportionally (incAD), exclude from calling and increment the first value of the AD counter (incAD0) ">
241 <option value="drop">Drop</option>
242 <option value="incAD">IncAD</option>
243 <option value="incAD0">IncAD0</option>
244 </param>
245 <param argument="--indel-bias" type="float" min="0" value="" optional="true" label="Indel bias" help="Skews the indel scores up or down, trading recall (low false-negative) vs precision (low false-positive) [1.0]. In Bcftools 1.12 and earlier this parameter didn’t exist, but had an implied value of 1.0. If you are planning to do heavy filtering of variants, selecting the best quality ones only (favouring precision over recall), it is advisable to set this lower (such as 0.75) while higher depth samples or where you favour recall rates over precision may work better with a higher value such as 2.0" />
246 <param argument="--indel-size" type="integer" min="0" value="" optional="true" label="Indel size" help="Indel window size to use when assessing the quality of candidate indels. Note that although the window size approximately corresponds to the maximum indel size considered, it is not an exact threshold. Default: 110" />
224 </section> 247 </section>
225 248
226 <section name="sec_filtering" expanded="false" title="Input Filtering Options"> 249 <section name="sec_filtering" expanded="false" title="Input Filtering Options">
227 <param name="max_reads_per_bam" type="integer" value="250" min="1" label="Max reads per BAM" help="--max-depth; default=250"/> 250 <param name="max_reads_per_bam" type="integer" value="250" min="1" label="Max reads per BAM" help="--max-depth; default=250"/>
228 <param name="ignore_overlaps" type="boolean" truevalue="-x" falsevalue="" checked="False" label="Disable read-pair overlap detection" help="--ignore-overlaps"/> 251 <param name="ignore_overlaps" type="boolean" truevalue="-x" falsevalue="" checked="False" label="Disable read-pair overlap detection" help="--ignore-overlaps"/>
231 <param name="filter_flags" type="select" label="Set filter by flags"> 254 <param name="filter_flags" type="select" label="Set filter by flags">
232 <option selected="True" value="nofilter">Do not filter</option> 255 <option selected="True" value="nofilter">Do not filter</option>
233 <option value="filter">Filter by flags to exclude or require</option> 256 <option value="filter">Filter by flags to exclude or require</option>
234 </param> 257 </param>
235 <when value="filter"> 258 <when value="filter">
236 <param name="require_flags" type="select" display="checkboxes" label="Require" multiple="True" help="--incl-flags"> 259 <param argument="--skip-all-set" type="select" display="checkboxes" label="Skip reads with all of the FLAG bits set" multiple="True" help="--skip-all-set">
237 <expand macro="bam_flag_options" /> 260 <expand macro="bam_flag_options" />
238 </param> 261 </param>
239 <param name="exclude_flags" type="select" display="checkboxes" label="Exclude" multiple="True" help="--excl-flags"> 262 <param argument="--skip-any-set" type="select" display="checkboxes" label="Skip reads with any of the FLAG bits set" multiple="True" help="--skip-any-set">
263 <expand macro="bam_flag_options" />
264 </param>
265 <param argument="--skip-all-unset" type="select" display="checkboxes" label="Skip reads with all of the FLAG bits unset" multiple="True" help="--skip-all-unset">
266 <expand macro="bam_flag_options" />
267 </param>
268 <param argument="--skip-any-unset" type="select" display="checkboxes" label="Skip reads with any of the FLAG bits unset" multiple="True" help="--skip-any-unset">
240 <expand macro="bam_flag_options" /> 269 <expand macro="bam_flag_options" />
241 </param> 270 </param>
242 </when> 271 </when>
243 <when value="nofilter" /> 272 <when value="nofilter" />
244 </conditional> 273 </conditional>
301 <section name="sec_subset" expanded="false" title="Subset Options"> 330 <section name="sec_subset" expanded="false" title="Subset Options">
302 <expand macro="macro_samples" /> 331 <expand macro="macro_samples" />
303 </section> 332 </section>
304 333
305 <section name="sec_output_options" expanded="false" title="Output options"> 334 <section name="sec_output_options" expanded="false" title="Output options">
306 <param name="output_tags" optional="True" type="select" multiple="True" display="checkboxes" label="Optional tags to output" help="--output-tags"> 335 <expand macro="macro_output_tags">
307 <option value="DP">DP (Number of high-quality bases)</option> 336 <option value="DP">DP (Number of high-quality bases)</option>
308 <option value="AD">AD (Allelic depth)</option> 337 <option value="AD">AD (Allelic depth)</option>
309 <option value="ADF">ADF (Allelic depth on the forward strand)</option> 338 <option value="ADF">ADF (Allelic depth on the forward strand)</option>
310 <option value="ADR">ADR (Allelic depth on the reverse strand)</option> 339 <option value="ADR">ADR (Allelic depth on the reverse strand)</option>
311 <option value="INFO/AD">INFO/AD (Allelic depth)</option> 340 <option value="INFO/AD">INFO/AD (Allelic depth)</option>
312 <option value="INFO/ADF">INFO/ADF (Allelic depth on the forward strand)</option> 341 <option value="INFO/ADF">INFO/ADF (Allelic depth on the forward strand)</option>
313 <option value="INFO/ADR">INFO/ADR (Allelic depth on the reverse strand)</option> 342 <option value="INFO/ADR">INFO/ADR (Allelic depth on the reverse strand)</option>
314 <option value="SP">SP (Phred-scaled strand bias P-value)</option> 343 <option value="SP">SP (Phred-scaled strand bias P-value)</option>
315 <option value="DV">DV (Number of high-quality non-reference bases)</option> 344 <option value="DV">DV (Number of high-quality non-reference bases)</option>
345 <option value="QS">QS (Allele phred-score quality sum)</option>
316 <option value="DP4">DP4 (Number of high-quality ref-forward, ref-reverse, alt-forward and alt-reverse bases)</option> 346 <option value="DP4">DP4 (Number of high-quality ref-forward, ref-reverse, alt-forward and alt-reverse bases)</option>
317 <option value="DPR">DRP (Number of high-quality bases for each observed allele)</option> 347 <option value="DPR">DRP (Number of high-quality bases for each observed allele)</option>
318 <option value="INFO/DPR">INFO/DPR (Number of high-quality bases for each observed allele)</option> 348 <option value="INFO/DPR">INFO/DPR (Number of high-quality bases for each observed allele)</option>
319 </param> 349 </expand>
320 <param name="gvcf" type="text" value="" label="gVCF blocks of homozygous REF calls"> 350 <param name="gvcf" type="text" value="" label="gVCF blocks of homozygous REF calls">
321 <help> 351 <help>
322 output gVCF blocks of homozygous REF calls, with depth (DP) ranges specified by the list of integers. For example, passing 5,15 will group sites into two types of gVCF blocks, the first with minimum per-sample DP from the interval [5,15) and the latter with minimum depth 15 or more. In this example, sites with minimum per-sample depth less than 5 will be printed as separate records, outside of gVCF blocks. 352 output gVCF blocks of homozygous REF calls, with depth (DP) ranges specified by the list of integers. For example, passing 5,15 will group sites into two types of gVCF blocks, the first with minimum per-sample DP from the interval [5,15) and the latter with minimum depth 15 or more. In this example, sites with minimum per-sample depth less than 5 will be printed as separate records, outside of gVCF blocks.
323 </help> 353 </help>
324 <validator type="regex" message="integers separated by commas">^(\d+(,\d+)*)?$</validator> 354 <validator type="regex" message="integers separated by commas">^(\d+(,\d+)*)?$</validator>
449 <param name="stop" value="1060" /> 479 <param name="stop" value="1060" />
450 </repeat> 480 </repeat>
451 </conditional> 481 </conditional>
452 </section> 482 </section>
453 <param name="filter_flags" value="filter" /> 483 <param name="filter_flags" value="filter" />
454 <param name="exclude_flags" value="4,16" /> 484 <param name="skip_all_set" value="4,16" />
455 <param name="output_type" value="v" /> 485 <param name="output_type" value="v" />
456 <output name="output_file"> 486 <output name="output_file">
457 <assert_contents> 487 <assert_contents>
458 <has_text text="mpileup" /> 488 <has_text text="mpileup" />
459 <has_text text="HG00100" /> 489 <has_text text="HG00100" />
460 <has_text_matching expression="17\t1050\t.\tA\t...\t0\t.\tDP=12;" /> 490 <has_text_matching expression="17\t1050\t.\tA\t" />
461 </assert_contents> 491 </assert_contents>
462 </output> 492 </output>
493 <assert_command>
494 <has_text text="--skip-all-set" />
495 </assert_command>
496 </test>
497 <!-- Test indel options-->
498 <test>
499 <param name="input_number" value="single" />
500 <param name="input_bam" ftype="bam" value="mpileup.1.bam" />
501 <param name="reference_source_selector" value="history" />
502 <param name="ref_file" ftype="fasta" value="mpileup.ref.fa" />
503 <section name="sec_indel">
504 <param name="ambig_reads" value="drop"/>
505 <param name="indel_bias" value="1"/>
506 <param name="indel_size" value="110"/>
507 </section>
508 <param name="output_type" value="v" />
509 <output name="output_file">
510 <assert_contents>
511 <has_text text="mpileup" />
512 <has_text text="HG00100" />
513 <has_text_matching expression="17\t1\t.\tA\t...\t0\t.\tDP=5;" />
514 <has_text_matching expression="17\t100\t.\tC\t...\t0\t.\tDP=9;" />
515 </assert_contents>
516 </output>
517 <assert_command>
518 <has_text text="--ambig-reads" />
519 <has_text text="--indel-bias" />
520 <has_text text="--indel-size" />
521 </assert_command>
522
463 </test> 523 </test>
464 </tests> 524 </tests>
465 <help><![CDATA[ 525 <help><![CDATA[
466 ===================================== 526 =====================================
467 bcftools @EXECUTABLE@ 527 bcftools @EXECUTABLE@