diff snpSift_macros.xml @ 2:9ba6e2c298ab draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 44b3b8a31f9f912a3b754aef1d467a90a4ed3504
author iuc
date Mon, 19 Sep 2016 14:43:55 -0400
parents 0af41de4eda1
children 847db7b39bdc
line wrap: on
line diff
--- a/snpSift_macros.xml	Tue Jun 07 10:05:20 2016 -0400
+++ b/snpSift_macros.xml	Mon Sep 19 14:43:55 2016 -0400
@@ -10,8 +10,13 @@
         <exit_code range="1:"  level="fatal" description="Error" />
     </stdio>
   </xml>
+  <token name="@CONDA_SNPEFF_JAR_PATH@">if [ -z "\$SNPEFF_JAR_PATH" ]; then export SNPEFF_JAR_PATH=\$(dirname \$(readlink -e \$(which snpEff))); fi</token>
   <xml name="version_command">
-    <version_command>java -jar "$SNPEFF_JAR_PATH/snpEff.jar" -version</version_command>
+    <version_command><![CDATA[
+    if [ -z "$SNPEFF_JAR_PATH" ]; then
+        export SNPEFF_JAR_PATH=$(dirname $(readlink -e $(which snpEff)));
+    fi && java -jar "$SNPEFF_JAR_PATH/snpEff.jar" -version
+    ]]></version_command>
   </xml>
   <token name="@WRAPPER_VERSION@">4.1</token>
   <token name="@EXTERNAL_DOCUMENTATION@">