comparison pangolin.xml @ 23:77402759b866 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pangolin commit d7751920c666de56e21cf48ffe19191b2d19d534
author iuc
date Mon, 18 Jul 2022 14:50:35 +0000
parents a2099fb98cdb
children 007ffbb11881
comparison
equal deleted inserted replaced
22:a2099fb98cdb 23:77402759b866
1 <tool id="pangolin" name="Pangolin" version="@TOOL_VERSION@+galaxy0" profile="20.01"> 1 <tool id="pangolin" name="Pangolin" version="@TOOL_VERSION@+galaxy0" profile="20.01">
2 <description>Phylogenetic Assignment of Outbreak Lineages</description> 2 <description>Phylogenetic Assignment of Outbreak Lineages</description>
3 <macros> 3 <macros>
4 <token name="@TOOL_VERSION@">4.1.1</token> 4 <token name="@TOOL_VERSION@">4.1.2</token>
5 <token name="@PANGOLIN_DATA_VERSION@">1.11</token> 5 <token name="@PANGOLIN_DATA_VERSION@">1.12</token>
6 <token name="@CONSTELLATIONS_VERSION@">0.1.10</token> 6 <token name="@CONSTELLATIONS_VERSION@">0.1.10</token>
7 <token name="@MIN_COMPATIBLE_PANGOLIN_DATA_FORMAT@">4</token> 7 <token name="@MIN_COMPATIBLE_PANGOLIN_DATA_FORMAT@">4</token>
8 <!-- a regex describing the scorpio versions that this wrapper version 8 <!-- a regex describing the scorpio versions that this wrapper version
9 is backwards-compatible with; can be used with the min_scorpio_version 9 is backwards-compatible with; can be used with the min_scorpio_version
10 column of the constellations data table to offer only compatible 10 column of the constellations data table to offer only compatible
151 #end if 151 #end if
152 ## Report all data package versions that will be used in this run of the tool 152 ## Report all data package versions that will be used in this run of the tool
153 echo "Running pangolin with the following possibly updated data packages:" && 153 echo "Running pangolin with the following possibly updated data packages:" &&
154 pangolin --datadir datadir $use_old_datadir --all-versions | grep -E "pangolin-data|assignment|constellations" && 154 pangolin --datadir datadir $use_old_datadir --all-versions | grep -E "pangolin-data|assignment|constellations" &&
155 #end if 155 #end if
156 ## Since v4.0.6 pangolin can handle compressed fasta as input,
157 ## but recognizes file type by suffix.
158 #if $input1.is_of_type('fasta.gz'):
159 #set $query = 'query.fa.gz'
160 #else:
161 #set $query = 'query.fa'
162 #end if
163 ln -s '$input1' $query &&
156 ## Finally run the pangolin analysis 164 ## Finally run the pangolin analysis
157 pangolin 165 pangolin
158 --threads \${GALAXY_SLOTS:-1} 166 --threads \${GALAXY_SLOTS:-1}
159 --tempdir "\${TMPDIR:-.}" 167 --tempdir "\${TMPDIR:-.}"
160 #if str($engine.pangolin_data.source) != 'default' or str($constellations.source) != 'default': 168 #if str($engine.pangolin_data.source) != 'default' or str($constellations.source) != 'default':
175 #end if 183 #end if
176 --outfile report.csv 184 --outfile report.csv
177 --max-ambig $max_ambig 185 --max-ambig $max_ambig
178 --min-length $min_length 186 --min-length $min_length
179 $expanded_lineage 187 $expanded_lineage
180 '$input1' 188 $query
181 && csvtk csv2tab report.csv 189 && csvtk csv2tab report.csv
182 #if not $include_header: 190 #if not $include_header:
183 | tail -n+2 191 | tail -n+2
184 #end if 192 #end if
185 > '$output1' 193 > '$output1'
186 ]]></command> 194 ]]></command>
187 <inputs> 195 <inputs>
188 <param type="data" name="input1" format="fasta" label="Input FASTA File(s)" /> 196 <param type="data" name="input1" format="fasta,fasta.gz" label="Input FASTA File(s)" />
189 <conditional name="engine"> 197 <conditional name="engine">
190 <param argument="--analysis-mode" type="select" label="Analysis mode" 198 <param argument="--analysis-mode" type="select" label="Analysis mode"
191 help="The analysis engine to use for lineage assignment. UShER is considered more accurate, but pangoLEARN is faster"> 199 help="The analysis engine to use for lineage assignment. UShER is considered more accurate, but pangoLEARN is faster">
192 <option value="usher">UShER</option> 200 <option value="usher">UShER</option>
193 <option value="pangolearn">pangoLEARN</option> 201 <option value="pangolearn">pangoLEARN</option>