diff data_manager/macros.xml @ 0:33158d21324d draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_pangolin_data commit 902cce06e30ffe8ccba5dc0c3b704eb39fb4c611
author iuc
date Wed, 20 Jul 2022 21:02:43 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/data_manager/macros.xml	Wed Jul 20 21:02:43 2022 +0000
@@ -0,0 +1,29 @@
+<macros>
+    <xml name="download_conditional" token_dt_name="db_name" token_database_name="db-name" token_software_name="pangolin">
+        <conditional name="@DT_NAME@">
+            <param name="enable" type="select" label="For @DATABASE_NAME@">
+                <option value="latest" selected="true">Download latest version</option>
+                <option value="versions">Download specific versions</option>
+                <option value="no">Don't download @DATABASE_NAME@</option>
+            </param>
+            <when value="latest">
+            </when>
+            <when value="versions">
+                <param name="compatibility_file" 
+                        type="data" format="csv"
+                        label="Version compatibility file"
+                        help="CSV dataset describing compatibility between @SOFTWARE_NAME@ releases and databases; typically, you would want to download fresh from https://raw.githubusercontent.com/cov-lineages/pangolin/master/pangolin/data/data_compatibility.csv" />
+                <param name="versions" type="select" multiple="true" label="Select @DATABASE_NAME@ release">
+                    <options from_dataset="compatibility_file" separator="," >
+                        <column name="name" index="1"/>
+                        <column name="value" index="1"/>
+                        <column name="min_@SOFTWARE_NAME@_version" index="3"/>
+                        <filter type="static_value" column="0" value="@DATABASE_NAME@"/>
+                    </options>
+                    </param>
+            </when>
+            <when value="no">
+            </when>
+        </conditional>
+    </xml>
+</macros>
\ No newline at end of file