Repository 'vcfleftalign'
hg clone https://toolshed.g2.bx.psu.edu/repos/devteam/vcfleftalign

Changeset 2:8e02d116b0f9 (2016-09-15)
Previous changeset 1:4dba4b988d0a (2015-11-11) Next changeset 3:d2406f98a782 (2018-03-26)
Commit message:
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcfleftalign commit 0b9b6512272b82637c2f1e831367e89aed77ae79
modified:
macros.xml
vcfleftalign.xml
removed:
tool_dependencies.xml
b
diff -r 4dba4b988d0a -r 8e02d116b0f9 macros.xml
--- a/macros.xml Wed Nov 11 13:00:42 2015 -0500
+++ b/macros.xml Thu Sep 15 16:06:01 2016 -0400
b
@@ -1,7 +1,7 @@
 <macros>
     <xml name="requirements">
         <requirements>
-            <requirement type="package" version="8a5602bf07">vcflib</requirement>
+            <requirement type="package" version="1.0.0_rc1">vcflib</requirement>
             <yield/>
         </requirements>
     </xml>
@@ -10,6 +10,7 @@
             <exit_code range="1:" level="fatal" />
         </stdio>
     </xml>
+   <token name="@WRAPPER_VERSION@">1.0.0_rc1</token>
     <xml name="citations">
          <citations>
              <citation type="bibtex">
b
diff -r 4dba4b988d0a -r 8e02d116b0f9 tool_dependencies.xml
--- a/tool_dependencies.xml Wed Nov 11 13:00:42 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
b
@@ -1,6 +0,0 @@
-<?xml version="1.0"?>
-<tool_dependency>
-    <package name="vcflib" version="8a5602bf07">
-        <repository changeset_revision="7e67466b033e" name="package_vcflib_8a5602bf07" owner="iuc" toolshed="https://toolshed.g2.bx.psu.edu" />
-    </package>
-</tool_dependency>
b
diff -r 4dba4b988d0a -r 8e02d116b0f9 vcfleftalign.xml
--- a/vcfleftalign.xml Wed Nov 11 13:00:42 2015 -0500
+++ b/vcfleftalign.xml Thu Sep 15 16:06:01 2016 -0400
b
@@ -1,57 +1,57 @@
-<tool id="vcfleftalign" name="VCFleftAlign:" version="0.0.3">
-  <description>Left-align indels and complex variants in VCF dataset</description>
-  <macros>
-    <import>macros.xml</import>
-  </macros>
-  <expand macro="requirements"></expand>
-  <expand macro="stdio"></expand>
-  <command>
-    #set $reference_fasta_filename = "localref.fa"
-    #if str( $reference_source.reference_source_selector ) == "history":
-       ln -s "${reference_source.ref_file}" "${reference_fasta_filename}" &amp;&amp;
-    #else:
-       #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path )
-    #end if    
-   vcfleftalign -r "${reference_fasta_filename}" -w "${window_size}" "${input_vcf}" > "${out_file1}"</command>
-  <inputs>
-<param name="input_vcf" type="data" format="vcf" label="VCF dataset to left-align" />
-    <conditional name="reference_source">
-       <param name="reference_source_selector" type="select" label="Choose the source for the reference genome">
-         <option value="cached">Locally cached</option>
-         <option value="history">History</option>
-       </param>
-       <when value="cached">
-         <param name="ref_file" type="select" label="Select reference genome">
-           <options from_data_table="fasta_indexes">
-           </options>
-    <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
-         </param>
-       </when>
-       <when value="history"> <!-- FIX ME!!!! -->
-         <param name="ref_file" type="data" format="fasta" label="Using reference file" />
-       </when>
-     </conditional>
-     <param name="window_size" type="integer" value="150" label="Use a window of this many bp when left-aligning" help="default = 150 bp" />
-  </inputs>
-  <outputs>
-    <data format="vcf" name="out_file1" />
-  </outputs>
-  <tests>
-    <test>
-      <param name="reference_source_selector" value="history" />
-      <param name="input_vcf" value="vcflib-phix.vcf"/>
-      <param name="ref_file" value="vcflib-test-genome-phix.fa" />
-      <param name="window_size" value="150" />
-      <output name="out_file1" file="vcfleftalign-test1.vcf"/>
-    </test>
-    </tests>
-  <help>
-
-Left-aligns variants in VCF dataset.  Window size is determined dynamically according to the entropy of the regions flanking the indel.  These must have entropy > 1 bit/bp, or be shorter than ~5kb.
-
-----
-
-Vcfleftalign @IS_PART_OF_VCFLIB@
-</help>
-  <expand macro="citations" />
-</tool>
+<tool id="vcfleftalign" name="VCFleftAlign:" version="@WRAPPER_VERSION@.0">
+  <description>Left-align indels and complex variants in VCF dataset</description>
+  <macros>
+    <import>macros.xml</import>
+  </macros>
+  <expand macro="requirements"/>
+  <expand macro="stdio" />
+  <command>
+    #set $reference_fasta_filename = "localref.fa"
+    #if str( $reference_source.reference_source_selector ) == "history":
+       ln -s "${reference_source.ref_file}" "${reference_fasta_filename}" &amp;&amp;
+    #else:
+       #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path )
+    #end if    
+   vcfleftalign -r "${reference_fasta_filename}" -w "${window_size}" "${input_vcf}" > "${out_file1}"</command>
+  <inputs>
+<param name="input_vcf" type="data" format="vcf" label="VCF dataset to left-align" />
+    <conditional name="reference_source">
+       <param name="reference_source_selector" type="select" label="Choose the source for the reference genome">
+         <option value="cached">Locally cached</option>
+         <option value="history">History</option>
+       </param>
+       <when value="cached">
+         <param name="ref_file" type="select" label="Select reference genome">
+           <options from_data_table="fasta_indexes">
+           </options>
+    <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
+         </param>
+       </when>
+       <when value="history"> <!-- FIX ME!!!! -->
+         <param name="ref_file" type="data" format="fasta" label="Using reference file" />
+       </when>
+     </conditional>
+     <param name="window_size" type="integer" value="150" label="Use a window of this many bp when left-aligning" help="default = 150 bp" />
+  </inputs>
+  <outputs>
+    <data format="vcf" name="out_file1" />
+  </outputs>
+  <tests>
+    <test>
+      <param name="reference_source_selector" value="history" />
+      <param name="input_vcf" value="vcflib-phix.vcf"/>
+      <param name="ref_file" value="vcflib-test-genome-phix.fa" />
+      <param name="window_size" value="150" />
+      <output name="out_file1" file="vcfleftalign-test1.vcf"/>
+    </test>
+    </tests>
+  <help>
+
+Left-aligns variants in VCF dataset.  Window size is determined dynamically according to the entropy of the regions flanking the indel.  These must have entropy > 1 bit/bp, or be shorter than ~5kb.
+
+----
+
+Vcfleftalign @IS_PART_OF_VCFLIB@
+</help>
+  <expand macro="citations" />
+</tool>