diff pangolin.xml @ 6:437e28791761 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pangolin commit f53dc92d3cf6997da9ad21f01ad3fd3477aae068"
author iuc
date Wed, 07 Jul 2021 09:24:31 +0000
parents 42a174224817
children 7bb8726be37c
line wrap: on
line diff
--- a/pangolin.xml	Mon Jun 21 16:14:55 2021 +0000
+++ b/pangolin.xml	Wed Jul 07 09:24:31 2021 +0000
@@ -1,4 +1,4 @@
-<tool id="pangolin" name="Pangolin" version="@TOOL_VERSION@+galaxy0" profile="20.01">
+<tool id="pangolin" name="Pangolin" version="@TOOL_VERSION@+galaxy1" profile="20.01">
     <description>Phylogenetic Assignment of Outbreak Lineages</description>
     <macros>
         <token name="@TOOL_VERSION@">3.1.4</token>
@@ -9,7 +9,7 @@
     </requirements>
     <command detect_errors="exit_code"><![CDATA[
         #if str($db.source) == "download"
-            python '$__tool_directory__/fetch_latest_pangolearn.py' &&
+            python '$__tool_directory__/fetch_latest_pangolearn.py' --max_retries=$db.max_retries --timeout=$db.timeout &&
         #else if str($db.source) == "builtin"
             ln -s $db.db_release.fields.path datadir &&
         #end if
@@ -51,6 +51,8 @@
                 <option value="default">Use default database built in to pangolin (not recommended)</option>
             </param>
             <when value="download">
+                <param name="max_retries" label="Max download retries" help="How many times to retry downloading the pangoLEARN database" type="integer" value="5" />
+                <param name="timeout" label="Download timeout" help="How many seconds to wait when downloading the pangoLEARN database" type="float" value="60.0" />
             </when>
             <when value="builtin">
                 <param name="db_release" label="pangoLEARN release" type="select">
@@ -171,6 +173,17 @@
                 </assert_contents>
             </output>
         </test>
+        <test expect_failure="true">
+            <param name="input1" value="test1.fasta" />
+            <conditional name="db">
+                <param name="source" value="download" />
+                <param name="timeout" value="0.00001" />
+                <param name="max_retries" value="1" />
+            </conditional>
+            <assert_stderr>
+                <has_text text="timed out" />
+            </assert_stderr>
+        </test>
     </tests>
     <help><![CDATA[