Repository 'pangolin'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/pangolin

Changeset 28:9d61d3fa046c (2023-07-11)
Previous changeset 27:03ed9524dcd1 (2023-01-15) Next changeset 29:2f1019071464 (2023-07-20)
Commit message:
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pangolin commit f93f921e3c2d0002ff0c152d90b9221533ad22e9
modified:
pangolin.xml
b
diff -r 03ed9524dcd1 -r 9d61d3fa046c pangolin.xml
--- a/pangolin.xml Sun Jan 15 12:35:01 2023 +0000
+++ b/pangolin.xml Tue Jul 11 22:32:30 2023 +0000
[
b'@@ -1,21 +1,23 @@\n <tool id="pangolin" name="Pangolin" version="@TOOL_VERSION@+galaxy0" profile="20.01">\n     <description>Phylogenetic Assignment of Outbreak Lineages</description>\n     <macros>\n-        <token name="@TOOL_VERSION@">4.2</token>\n-        <token name="@PANGOLIN_DATA_VERSION@">1.17</token>\n-        <token name="@CONSTELLATIONS_VERSION@">0.1.10</token>\n-        <token name="@MIN_COMPATIBLE_PANGOLIN_DATA_FORMAT@">4</token>\n+        <token name="@TOOL_VERSION@">4.3</token>\n+        <token name="@PANGOLIN_DATA_VERSION@">1.21</token>\n+        <token name="@CONSTELLATIONS_VERSION@">0.1.12</token>\n+        <!-- a regex describing the pangolin-data versions that this wrapper version\n+        is backwards-compatible with; can be used with the min_pangolin_version\n+        column of the pangolin_data and pangolin_assignment data table to offer\n+        only compatible versions of that data. -->\n+        <token name="@MIN_COMPATIBLE_PANGOLIN_DATA_FORMAT@"><![CDATA[^4$|^4\\.3$]]></token>\n+        <!-- pangolin-data versions >=1.20 do not contain pangoLEARN models anymore.\n+        This version of pangolin still supports pangolearn analysis mode, but only when using\n+        older versions of pangolin-data. -->\n+        <token name="@MIN_COMPATIBLE_PANGOLIN_DATA_FORMAT_FOR_PANGOLEARN@">4></token>\n         <!-- a regex describing the scorpio versions that this wrapper version\n         is backwards-compatible with; can be used with the min_scorpio_version\n-        column of the constellations data table to offer only compatible\n+        column of the pangolin_constellations data table to offer only compatible\n         versions of constellations data. -->\n         <token name="@COMPATIBLE_SCORPIO_DATA_FORMAT@"><![CDATA[(^0\\.[1-3]$|^0\\.[0-2]\\.\\d+$|^0\\.3\\.\\d$|^0\\.3\\.1[0-7]$|^0$)]]></token>\n-        <xml name="usher_download_option">\n-            <when value="download">\n-                <param argument="--use-assignment-cache" type="boolean" truevalue="--use-assignment-cache" falsevalue="" label="Download and use also latest UShER assignment cache?"\n-                help="Get the latest UShER assignment cache from the pangolin-assignment online repository and use it to speed up UShER lineage assignment. Note: Downloading the cached assignments will only pay off for large numbers of input samples." />\n-            </when>\n-        </xml>\n         <xml name="cached_usher_assignment_cache">\n             <param name="assignment_cache_release" type="select" optional="true" label="Use corresponding UShER assignment cache?"\n             help="If the server offers a copy of the UShER assignment cache along with the specified version of pangolin-data, you can select it here to speed up UShER lineage assignment. If no suitable assignment cache is available, it is perfectly fine to proceed without one, and the performance difference will only become obvious with very large numbers of samples.">\n@@ -23,38 +25,11 @@\n                     <column name="value" index="0" />\n                     <column name="description" index="1" />\n                     <column name="path" index="4" />\n-                    <filter type="static_value" column="2" value="@MIN_COMPATIBLE_PANGOLIN_DATA_FORMAT@" />\n+                    <filter type="regexp" column="2" value="@MIN_COMPATIBLE_PANGOLIN_DATA_FORMAT@" />\n                     <filter type="param_value" ref="release" column="0" />\n                 </options>\n             </param>\n         </xml>\n-        <xml name="cached_pangolin_data">\n-            <when value="cached">\n-                <param name="release" label="Cached release of pangolin-data" type="select">\n-                    <options from_data_table="pangolin_data">\n-                        <column name="value" index="0" />\n-                        <column name="description" index="1" />\n-                        <column name="date" index="3" />\n-                        <column name="path" index="4" />\n-                        <filter type="sort_by" '..b'                        <filter type="sort_by" column="3" />\n+                                <filter type="regexp" column="2" value="@MIN_COMPATIBLE_PANGOLIN_DATA_FORMAT@" />\n+                                <validator type="no_options" message="No compatible cached pangolin-data release available" />\n+                            </options>\n+                        </param>\n                         <expand macro="cached_usher_assignment_cache" />\n-                    </expand>\n-                    <expand macro="usher_download_option" />\n-                </expand>\n+                    </when>\n+                    <when value="download">\n+                        <param argument="--use-assignment-cache" type="boolean" truevalue="--use-assignment-cache" falsevalue="" label="Download and use also latest UShER assignment cache?"\n+                        help="Get the latest UShER assignment cache from the pangolin-assignment online repository and use it to speed up UShER lineage assignment. Note: Downloading the cached assignments will only pay off for large numbers of input samples." />\n+                    </when>\n+                </conditional>\n             </when>\n             <when value="pangolearn">\n-                <expand macro="pangolin_data_sources">\n-                    <expand macro="cached_pangolin_data" />\n-                    <when value="download" />\n-                </expand>\n+                <conditional name="pangolin_data">\n+                    <param name="source" type="select" label="Version of pangolin-data to use"\n+                    help="Please note: pangoLEARN mode is considered deprecated and the underlying machine learning model has been removed from recent versions of pangolin-data. If you really still want to use this mode, you are restricted to the compatible historic pangolin-data versions cached on this Galaxy server.">\n+                        <option value="cached">Use specific pangolin-data version cached on this Galaxy server</option>\n+                    </param>\n+                    <when value="cached">\n+                        <param name="release" label="Cached release of pangolin-data" type="select">\n+                            <options from_data_table="pangolin_data">\n+                                <column name="value" index="0" />\n+                                <column name="description" index="1" />\n+                                <column name="date" index="3" />\n+                                <column name="path" index="4" />\n+                                <filter type="sort_by" column="3" />\n+                                <filter type="static_value" column="2" value="@MIN_COMPATIBLE_PANGOLIN_DATA_FORMAT_FOR_PANGOLEARN@" />\n+                                <validator type="no_options" message="No compatible cached pangolin-data release available" />\n+                            </options>\n+                        </param>\n+                    </when>\n+                </conditional>\n             </when>\n         </conditional>\n         <conditional name="constellations">\n@@ -231,7 +241,7 @@\n                         <column name="path" index="4" />\n                         <filter type="sort_by" column="3" />\n                         <filter type="regexp" column="2" value="@COMPATIBLE_SCORPIO_DATA_FORMAT@" />\n-                        <validator type="no_options" message="No cached constellations release available" />\n+                        <validator type="no_options" message="No compatible cached constellations release available" />\n                     </options>\n                 </param>\n             </when>\n@@ -257,7 +267,7 @@\n                 </conditional>\n             </actions>\n         </data>\n-        <data name="align1" format="fasta" label="pangolin alignment on ${on_string}">\n+        <data name="align1" format="fasta" from_work_dir="aln.fa" label="pangolin alignment on ${on_string}">\n             <filter>alignment</filter>\n         </data>\n     </outputs>\n'