changeset 2:02025c366fca draft

Uploaded
author greg
date Thu, 01 Nov 2018 09:11:57 -0400
parents a2f0931898be
children 6274184a8b84
files affy2vcf.xml macros.xml
diffstat 2 files changed, 33 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/affy2vcf.xml	Thu Oct 25 09:14:03 2018 -0400
+++ b/affy2vcf.xml	Thu Nov 01 09:11:57 2018 -0400
@@ -1,11 +1,14 @@
-<tool id="affr2vcf" name="Convert Affymetrix" version="1.9">
+<tool id="affr2vcf" name="Convert Affymetrix" version="@WRAPPER_VERSION@">
     <description>genotype calls and intensities to VCF</description>
+    <macros>
+        <import>macros.xml</import>
+    </macros>
     <requirements>
         <requirement type="package" version="1.9">bcftools-gtc2vcf-plugin</requirement>
     </requirements>
     <command detect_errors="exit_code"><![CDATA[
+@PREPARE_ENV@
 #set text_outputs_dir = 'text_outputs'
-export BCFTOOLS_PLUGINS=\$(dirname `which bcftools`)/../libexec/bcftools &&
 mkdir $text_outputs_dir &&
 bcftools +\$BCFTOOLS_PLUGINS/affy2vcf.so
 #if str($reference_genome_source_cond.reference_genome_source) == "history":
@@ -27,7 +30,7 @@
 #end if
 --output '$output'
 --output-type $output_type
---threads \${GALAXY_SLOTS:-4}
+@THREADS@
     ]]></command>
     <inputs>
         <param name="annot" type="data" format="csv" label="Probeset annotation file" />
@@ -76,7 +79,7 @@
         </param>
     </inputs>
     <outputs>
-        <data name="output" format="vcf" />
+        <expand macro="vcf_output"/>
         <data name="output_gender_estimate" format="txt" label="${tool.name} (gender estimate) on ${on_string}">
             <filter>output_gender_estimate_cond['output_gender_estimate'] == "yes"</filter>
         </data>
@@ -116,6 +119,7 @@
  * **Select format for output** - select one of uncompressed/compressed VCF/BCF.
     </help>
     <citations>
+        <expand macro="citation1"/>
         <citation type="bibtex">
             @misc{None,
             journal = {None},
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml	Thu Nov 01 09:11:57 2018 -0400
@@ -0,0 +1,25 @@
+<macros>
+    <token name="@WRAPPER_VERSION@">1.9</token>
+    <xml name="citation1">
+        <citation type="doi">10.1093/bioinformatics/btp352</citation>
+    </xml>
+    <token name="@PREPARE_ENV@">
+<![CDATA[
+export BCFTOOLS_PLUGINS=\$(dirname `which bcftools`)/../libexec/bcftools;
+]]>
+    </token>
+    <token name="@THREADS@">
+        --threads \${GALAXY_SLOTS:-4}
+    </token>
+    <xml name="vcf_output">
+        <data name="output" format="vcf">
+            <change_format>
+                <when input="output_type" value="b" format="bcf" />
+                <when input="output_type" value="u" format="bcf" />
+                <when input="output_type" value="z" format="vcf_bgzip" />
+                <when input="output_type" value="v" format="vcf" />
+            </change_format>
+        </data>
+    </xml>
+</macros>
+