# HG changeset patch # User iuc # Date 1651606026 0 # Node ID 14ae456b8cc537afb10cd24ffd644c7f6f5cbead # Parent abf6dbe8c9d7352d7be31eeae0fe9c22c26af4f2 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pangolin commit 21834c24b94f942ed759bd7a2fcf0b3b4b5fd839" diff -r abf6dbe8c9d7 -r 14ae456b8cc5 pangolin.xml --- a/pangolin.xml Thu Apr 21 11:40:56 2022 +0000 +++ b/pangolin.xml Tue May 03 19:27:06 2022 +0000 @@ -1,4 +1,4 @@ - + Phylogenetic Assignment of Outbreak Lineages 4.0.5 @@ -10,6 +10,11 @@ &2; exit 1 + #else: + ## Sanity chceck was ok, lets do the real thing ... #if str($db.source) == "download" ## Pangolin version 4 tries to update from an existing directory mkdir datadir && @@ -17,6 +22,21 @@ #else if str($db.source) == "builtin" ln -s $db.db_release.fields.path datadir && #end if + #if $engine.use_assignment_cache: + ## We need to install also the latest UShER assignment cache data. + ## Pangolin has functionality to do so, but uses it incorrectly. + ## We use the pangolin function to install into --datadir here, + ## then point pangolin to the downloaded file later using + ## its --assignment-cache parameter + + ## Create a "honeypot" package that will be picked up by pangolin, + ## but will trigger a download because of missing __version__ info. + mkdir pangolin_assignment && + touch pangolin_assignment/__init__.py && + ## Call pangolin's assignment cache install function, but + ## override pip's install path + PIP_TARGET="datadir" PIP_UPGRADE=1 python -c "from pangolin.utils import update; update.install_pangolin_assignment()" && + #end if pangolin --threads \${GALAXY_SLOTS:-1} --tempdir "\${TMPDIR:-.}" @@ -26,20 +46,25 @@ --analysis-mode $engine.analysis_mode #if str($engine.analysis_mode) == 'usher': $engine.use_assignment_cache + #if $engine.use_assignment_cache: + ## Point pangolin to the assignment cache file we've downloaded before + --assignment-cache datadir/pangolin_assignment/usher_assignments.cache.csv.gz + #end if #end if #if $alignment: $alignment --alignment-file '$align1' #end if - --outfile report.csv + --outfile report.csv --max-ambig $max_ambig --min-length $min_length $expanded_lineage '$input1' && csvtk csv2tab report.csv #if not $include_header: - | tail -n+2 + | tail -n+2 #end if > '$output1' + #end if ]]> @@ -50,8 +75,8 @@ - + @@ -82,7 +107,7 @@ - +