diff bcftools_concat.xml @ 8:62ca6da715bf draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bcftools commit 2684e1443f03bfe2ae20c31d23817415ec8f7e69
author iuc
date Thu, 21 Feb 2019 16:06:33 -0500
parents 2d95ed0b720a
children 398d2ccc4233
line wrap: on
line diff
--- a/bcftools_concat.xml	Tue Dec 12 14:03:19 2017 -0500
+++ b/bcftools_concat.xml	Thu Feb 21 16:06:33 2019 -0500
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='utf-8'?>
-<tool name="bcftools @EXECUTABLE@" id="bcftools_@EXECUTABLE@" version="@VERSION@.1">
+<tool name="bcftools @EXECUTABLE@" id="bcftools_@EXECUTABLE@" version="@TOOL_VERSION@">
     <description>Concatenate or combine VCF/BCF files</description>
     <macros>
         <token name="@EXECUTABLE@">concat</token>
@@ -19,19 +19,19 @@
 #set $section = $sec_default
 
 #if $section.mode.naive == "yes":
-  --naive
-#else: 
-  #if $section.mode.overlaps.allow_overlaps == 'yes':
-    --allow-overlaps
-    #if $section.mode.overlaps.rm_dups:
-      --rm-dups $section.mode.overlaps.rm_dups
+    --naive
+#else:
+    #if $section.mode.overlaps.allow_overlaps == 'yes':
+        --allow-overlaps
+        #if $section.mode.overlaps.rm_dups:
+            --rm-dups $section.mode.overlaps.rm_dups
+        #end if
     #end if
-  #end if
-  ${section.mode.ligate}
+    ${section.mode.ligate}
 #end if
 ${section.compact_PS}
-#if $section.min_PQ:
-  --min-PQ "${section.min_PQ}"
+#if str($section.min_PQ):
+    --min-PQ ${section.min_PQ}
 #end if
 
 #set $section = $sec_restrict
@@ -41,14 +41,13 @@
 @THREADS@
 
 ## Primary Input/Outputs
-@INPUT_FILES@ 
+@INPUT_FILES@
 #if $sec_default.mode.naive == "yes" and $output_type == 'v':
-> output.gz && bcftools index output.gz && bcftools view -O v -o '$output_file' output.gz
+    > output.gz && bcftools index output.gz && bcftools view -O v -o '$output_file' output.gz
 #else:
-> '$output_file'
+    > '$output_file'
 #end if
-]]>
-    </command>
+    ]]></command>
     <inputs>
         <expand macro="macro_inputs" />
         <section name="sec_restrict" expanded="false" title="Restrict to">
@@ -56,9 +55,9 @@
         </section>
         <section name="sec_default" expanded="true" title="Concat Options">
             <conditional name="mode">
-                <param name="naive" type="select" label="naive concat">   
+                <param name="naive" type="select" label="naive concat">
                     <help><![CDATA[
---naive concatenates VCF or BCF files without recompression. This can be used used to combine results that were generated separately for each chromosome.  This is very fast but requires that all files are of the same type (all VCF or all BCF) and have the same headers. This is because all tags and chromosome names in the BCF body rely on the implicit order of the contig and tag definitions in the header. Currently no sanity checks are in place. Dangerous, use with caution. 
+--naive concatenates VCF or BCF files without recompression. This can be used used to combine results that were generated separately for each chromosome.  This is very fast but requires that all files are of the same type (all VCF or all BCF) and have the same headers. This is because all tags and chromosome names in the BCF body rely on the implicit order of the contig and tag definitions in the header. Currently no sanity checks are in place. Dangerous, use with caution.
                     ]]></help>
                     <option value="no">No </option>
                     <option value="yes">Yes </option>
@@ -66,17 +65,17 @@
                 <when value="yes"/>
                 <when value="no">
                     <conditional name="overlaps">
-                        <param name="allow_overlaps" type="select" label="Allow Overlaps">   
+                        <param name="allow_overlaps" type="select" label="Allow Overlaps">
                             <help>
-                            First coordinate of the next file can precede last record of the current file. 
+                            First coordinate of the next file can precede last record of the current file.
                             </help>
                             <option value="yes">Yes </option>
                             <option value="no">No </option>
                         </param>
                         <when value="yes">
-                            <param name="rm_dups" type="select" label="Remove duplicate" optional="True" >
+                            <param name="rm_dups" type="select" label="Remove duplicate" optional="true">
                                 <help><![CDATA[
-                                 Output duplicate records present in multiple files only once: 
+                                 Output duplicate records present in multiple files only once:
                                    rm-dups <snps|indels|both|all|none>
                                 ]]></help>
                                 <option value="snps">snps - SNP records</option>
@@ -88,13 +87,13 @@
                         </when>
                         <when value="no"/>
                     </conditional>
-                    <param name="ligate" type="boolean" truevalue="--ligate" falsevalue="" label="Ligate" 
+                    <param name="ligate" type="boolean" truevalue="--ligate" falsevalue="" label="Ligate"
                            help="Ligate phased VCFs by matching phase at overlapping haplotypes" />
                 </when>
             </conditional>
-            <param name="compact_PS" type="boolean" truevalue="--compact-PS" falsevalue="" label="Compact Ps" 
+            <param name="compact_PS" type="boolean" truevalue="--compact-PS" falsevalue="" label="Compact Ps"
                    help="Do not output PS tag at each site, only at the start of a new phase set block." />
-            <param name="min_PQ" type="integer" label="Min Pq" value="30" optional="True" 
+            <param name="min_PQ" type="integer" label="Min Pq" value="30" optional="true"
                    help="Break phase set if phasing quality is lower than &lt;int&gt;" />
         </section>
         <expand macro="macro_select_output_type" />
@@ -103,7 +102,7 @@
         <expand macro="macro_vcf_output"/>
     </outputs>
     <tests>
-       <test>
+        <test>
             <param name="input_files" ftype="vcf" value="concat.1.b.vcf,concat.1.a.vcf" />
             <param name="output_type" value="v" />
             <output name="output_file">
@@ -112,8 +111,8 @@
                     <has_text_matching expression="3\t192"/>
                 </assert_contents>
             </output>
-       </test>
-       <test>
+        </test>
+        <test>
             <param name="input_files" ftype="vcf" value="concat.1.b.vcf,concat.1.a.vcf" />
             <param name="naive" value="yes" />
             <param name="output_type" value="v" />
@@ -123,8 +122,8 @@
                     <has_text_matching expression="3\t192"/>
                 </assert_contents>
             </output>
-       </test>
-       <test>
+        </test>
+        <test>
             <param name="input_files" ftype="vcf" value="concat.2.b.vcf,concat.2.a.vcf" />
             <param name="allow_overlaps" value="yes" />
             <param name="output_type" value="v" />
@@ -135,7 +134,7 @@
                 </assert_contents>
             </output>
         </test>
-       <test>
+        <test>
             <param name="input_files" ftype="vcf" value="concat.2.b.vcf,concat.2.a.vcf" />
             <param name="allow_overlaps" value="yes" />
             <param name="rm_dups" value="none" />
@@ -155,7 +154,7 @@
 Concatenate or combine VCF/BCF files. All source files must have the same sample columns appearing in the same order. The program can be used, for example, to concatenate chromosome VCFs into one VCF, or combine a SNP VCF and an indel VCF into one. The input files must be sorted by chr and position. The files must be given in the correct order to produce sorted VCF on output unless the -a, --allow-overlaps option is specified.
 
 
-Naive concatenation is useful when using a galaxy workflow that splits a BAM file by chromosome, processes each in parallel, then bcftools concat merges the results into a single VCF file: 
+Naive concatenation is useful when using a galaxy workflow that splits a BAM file by chromosome, processes each in parallel, then bcftools concat merges the results into a single VCF file:
 
 BAM -> bamtools split => bcftools mpileup => bcftools call => bcftools concat -> VCF
 
@@ -165,7 +164,6 @@
 @BCFTOOLS_MANPAGE@#@EXECUTABLE@
 
 @BCFTOOLS_WIKI@
-]]>
-    </help>
+    ]]></help>
     <expand macro="citations" />
 </tool>