diff bcftools_call.xml @ 6:3296c3680d96 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bcftools commit 9d03fe38504a35d11660dadb44cb1beee32fcf4e
author iuc
date Thu, 13 Apr 2017 17:43:02 -0400
parents 0a564427739d
children 0fba2c15b40d
line wrap: on
line diff
--- a/bcftools_call.xml	Sat Mar 11 17:57:29 2017 -0500
+++ b/bcftools_call.xml	Thu Apr 13 17:43:02 2017 -0400
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='utf-8'?>
-<tool name="bcftools @EXECUTABLE@" id="bcftools_@EXECUTABLE@" version="1.3.2.0">
+<tool name="bcftools @EXECUTABLE@" id="bcftools_@EXECUTABLE@" version="@VERSION@">
     <description>SNP/indel variant calling from VCF/BCF</description>
     <macros>
         <token name="@EXECUTABLE@">call</token>
@@ -41,6 +41,8 @@
   @PREPARE_TARGETS_FILE@
  #end if
 #end if
+#set $section = $sec_restrict
+@PREPARE_REGIONS_FILE@
 
 bcftools @EXECUTABLE@
 
@@ -50,6 +52,9 @@
  #if str($section.gvcf) != '':
   --gvcf $section.gvcf
  #end if
+ #if str($section.prior_freqs) != '':
+  --prior-freqs $section.prior_freqs
+ #end if
  #if $section.genotypes.constrain == 'alleles':  
   --constrain alleles $section.genotypes.insert_missed
   #set $section = $sec_consensus_variant_calling.variant_calling.genotypes
@@ -104,7 +109,7 @@
 
 ## Primary Input/Outputs
 @INPUT_FILE@
-> "$output_file"
+> '$output_file'
 ]]>
     </command>
     <inputs>
@@ -138,6 +143,17 @@
                             <expand macro="macro_novel_rate" />
                         </when>
                     </conditional>
+                    <param name="prior_freqs" type="text" value="" optional="true" label="Use prior knowledge of population allele frequencies">
+                        <help>
+<![CDATA[
+For example: --prior-freqs REF_AN,REF_AC 
+<br>if the input VCF has the following INFO tags:
+<br>##INFO=&lt;ID=REF_AN,Number=1,Type=Integer,Description="Total number of alleles in reference genotypes"&gt;
+<br>##INFO=&lt;ID=REF_AC,Number=A,Type=Integer,Description="Allele count in reference genotypes for each ALT allele"&gt;
+]]>
+                        </help>
+                        <validator type="regex" message="The INFO tags (separated by a comma), e.g. AN,AC">^(\w+,\w+)?$</validator>
+                    </param>
                     <param name="gvcf" type="integer" label="gvcf" optional="True" help="group non-variant sites into gVCF blocks by minimum per-sample DP" />
                 </when>
                 <when value="consensus">
@@ -250,6 +266,7 @@
 
 The novel-rate option can be set to modify the likelihood of novel mutation for constrained -C trio calling. The trio genotype calling maximizes likelihood of a particular combination of genotypes for father, mother and the child P(F=i,M=j,C=k) = P(unconstrained) * Pn + P(constrained) * (1-Pn). By providing three values, the mutation rate Pn is set explicitly for SNPs, deletions and insertions, respectively. If two values are given, the first is interpreted as the mutation rate of SNPs and the second is used to calculate the mutation rate of indels according to their length as Pn=float*exp(-a-b*len), where a=22.8689, b=0.2994 for insertions and a=21.9313, b=0.2856 for deletions [pubmed:23975140]. If only one value is given, the same mutation rate Pn is used for SNPs and indels. 
 
+
 @REGIONS_HELP@
 @TARGETS_HELP@