comparison sistr_cmd.xml @ 6:cf767360ede1 draft default tip

planemo upload for repository https://github.com/phac-nml/sistr_cmd commit 4a9d0e766264aab4b92d8971b70112f84e28e8cd
author nml
date Fri, 20 Dec 2024 18:34:03 +0000
parents 24a7a95867b0
children
comparison
equal deleted inserted replaced
5:24a7a95867b0 6:cf767360ede1
1 <tool id="sistr_cmd" name="sistr_cmd" version="@VERSION@+galaxy1"> 1 <tool id="sistr_cmd" name="sistr_cmd" version="@VERSION@+galaxy0">
2 <description> 2 <description>
3 Salmonella In Silico Typing Resource commandline tool for serovar prediction 3 Salmonella In Silico Typing Resource command-line tool for serovar prediction
4 </description> 4 </description>
5 <macros> 5 <macros>
6 <token name="@VERSION@">1.1.1</token> 6 <token name="@VERSION@">1.1.3</token>
7 </macros> 7 </macros>
8 <xrefs>
9 <xref type="bio.tools">SISTR</xref>
10 </xrefs>
8 <requirements> 11 <requirements>
9 <requirement type="package" version="@VERSION@">sistr_cmd</requirement> 12 <requirement type="package" version="@VERSION@">sistr_cmd</requirement>
10 </requirements> 13 </requirements>
11 <stdio> 14 <stdio>
12 <exit_code range="1:" /> 15 <exit_code range="1:" />
13 </stdio> 16 </stdio>
14 <command><![CDATA[ 17 <command><![CDATA[
18
15 sistr 19 sistr
16 #for $fasta in $input_fastas 20 #for $fasta in $input_fastas
17 -i '$fasta' '${$fasta.element_identifier.replace("." + $fasta.ext, "")}' 21 -i '$fasta' '${$fasta.element_identifier.replace("." + $fasta.ext, "")}'
18 #end for 22 #end for
19 -f $output_format 23 -f $output_format
23 -a $alleles_output 27 -a $alleles_output
24 $use_full_cgmlst_db 28 $use_full_cgmlst_db
25 $no_cgmlst 29 $no_cgmlst
26 $run_mash 30 $run_mash
27 $qc 31 $qc
32 #if $serovar_list.selection_mode == "default"
33 --list-of-serovars
34 #elif $serovar_list.selection_mode == "custom"
35 --list-of-serovars $serovar_list.custom_list_of_serovars_file
36 #end if
28 --threads "\${GALAXY_SLOTS:-1}" 37 --threads "\${GALAXY_SLOTS:-1}"
29 -T "\${TMPDIR:-/tmp}" 38 -T "\${TMPDIR:-/tmp}"
30 $keep_tmp 39 $keep_tmp
31 $more_output 40 $more_output
32 $verbosity 41 $verbosity
84 type="boolean" 93 type="boolean"
85 checked="true" 94 checked="true"
86 truevalue="--qc" 95 truevalue="--qc"
87 falsevalue="" 96 falsevalue=""
88 label="Basic QC of results" 97 label="Basic QC of results"
89 /> 98 />
99 <conditional name="serovar_list">
100 <param label="Check predicted SISTR serovar against the list of serovars?" name="selection_mode" type="select">
101 <option value="none">Not selected</option>
102 <option selected="true" value="default">Use the default list</option>
103 <option value="custom">Use a custom list</option>
104 </param>
105 <when value="none"/>
106 <when value="default"/>
107 <when value="custom">
108 <param name="custom_list_of_serovars_file" type="data" format="text" optional="true" label="Custom list of serovars (optional)"
109 help="if no file selected, the default one is used available at https://raw.githubusercontent.com/phac-nml/sistr_cmd/v1.1.3/sistr/data/serovar-list.txt"
110 />
111 </when>
112 </conditional>
90 <param 113 <param
91 name="more_output" 114 name="more_output"
92 type="select" 115 type="select"
93 label="Results verbosity"> 116 label="Results verbosity">
94 <option value="" selected="true"> 117 <option value="" selected="true">
129 </inputs> 152 </inputs>
130 <outputs> 153 <outputs>
131 <data 154 <data
132 name="output_prediction_csv" 155 name="output_prediction_csv"
133 format="csv" 156 format="csv"
134 label="SISTR Results" 157 label="${tool.name} on ${input_fastas[0].element_identifier}: Main Report (csv)"
135 from_work_dir="sistr-report.csv"> 158 from_work_dir="sistr-report.csv">
136 <filter>output_format == "csv"</filter> 159 <filter>output_format == "csv"</filter>
137 </data> 160 </data>
138 <data 161 <data
139 name="output_prediction_json" 162 name="output_prediction_json"
140 format="json" 163 format="json"
141 label="SISTR Results" 164 label="${tool.name} on ${input_fastas[0].element_identifier}: Main Report (json)"
142 from_work_dir="sistr-report.json"> 165 from_work_dir="sistr-report.json">
143 <filter>output_format == "json"</filter> 166 <filter>output_format == "json"</filter>
144 </data> 167 </data>
145 <data 168 <data
146 name="output_prediction_tab" 169 name="output_prediction_tab"
147 format="tabular" 170 format="tabular"
148 label="SISTR Results" 171 label="${tool.name} on ${input_fastas[0].element_identifier}: Main Report (tab)"
149 from_work_dir="sistr-report.tab"> 172 from_work_dir="sistr-report.tab">
150 <filter>output_format == "tab"</filter> 173 <filter>output_format == "tab"</filter>
151 </data> 174 </data>
152 <data 175 <data
153 name="cgmlst_profiles" 176 name="cgmlst_profiles"
154 format="csv" 177 format="csv"
155 label="cgMLST results" /> 178 label="${tool.name} on ${input_fastas[0].element_identifier}: cgMLST allele match results (csv)" />
156 <data 179 <data
157 name="novel_alleles" 180 name="novel_alleles"
158 format="fasta" 181 format="fasta"
159 label="Novel cgMLST alleles" /> 182 label="${tool.name} on ${input_fastas[0].element_identifier}: Novel cgMLST alleles (fasta)" />
160 <data 183 <data
161 name="alleles_output" 184 name="alleles_output"
162 format="json" 185 format="json"
163 label="cgMLST allele match results" /> 186 label="${tool.name} on ${input_fastas[0].element_identifier}: cgMLST allele match results (json)" />
164 </outputs> 187 </outputs>
165 <tests> 188 <tests>
166 <test> 189 <test expect_num_outputs="4">
167 <param name="input_fastas" value="AE014613-699860.fasta" ftype="fasta"/> 190 <param name="input_fastas" value="AE014613-699860.fasta" ftype="fasta"/>
168 <param name="output_format" value="tab"/> 191 <param name="output_format" value="tab"/>
192 <param name="selection_mode" value="none"/>
169 <output 193 <output
170 name="cgmlst_profiles" 194 name="cgmlst_profiles"
171 value="cgmlst-profiles.csv" 195 value="cgmlst-profiles-AE014613.csv"
172 ftype="csv" 196 ftype="csv"
173 compare="diff"> 197 compare="diff">
174 </output> 198 </output>
175 <output name="output_prediction_tab" 199 <output name="output_prediction_tab"
176 ftype="tabular" 200 ftype="tabular"
177 value="sistr-results.tabular" 201 value="sistr-results-AE014613-699860.tabular"
178 compare="sim_size"> 202 compare="sim_size">
179 <assert_contents> 203 <assert_contents>
180 <has_text text="AE014613-699860" /> 204 <has_text text="AE014613-699860" />
181 <has_text text="Typhi" /> 205 <has_text text="Typhi" />
182 <has_text text="enterica" /> 206 <has_text text="enterica" />
183 <has_text_matching expression="FAIL\t-\t-:-:-\t-:-:-"/> 207 <has_text_matching expression="FAIL\t-\t-:-:-\t-:-:-"/>
184 <has_text text="2014-LET-0419"/> 208 <has_text text="2014-LET-0419"/>
185 <has_n_columns n="22" /> 209 <has_n_columns n="23" />
186 </assert_contents> 210 </assert_contents>
187 </output> 211 </output>
188 <output 212 <output
189 name="alleles_output" 213 name="alleles_output"
190 value="alleles-output.json" 214 value="alleles-output-AE014613.json"
191 ftype="json" 215 ftype="json"
192 compare="sim_size"> 216 compare="sim_size">
193 <assert_contents> 217 <assert_contents>
194 <has_text text="NZ_AOXE01000059.1"/> 218 <has_text text="NZ_AOXE01000059.1"/>
195 <has_text text="Salmonella enterica subsp. enterica serovar Typhi Ty2"/> 219 <has_text text="Salmonella enterica subsp. enterica serovar Typhi Ty2"/>
196 <has_text text="NZ_AOXE01000033.1"/> 220 <has_text text="NZ_AOXE01000033.1"/>
197 <has_text text="NZ_AOXE01000052.1"/> 221 <has_text text="NZ_AOXE01000052.1"/>
198 </assert_contents> 222 </assert_contents>
199 </output> 223 </output>
200 </test> 224 </test>
201 <test> 225 <test expect_num_outputs="4">
202 <param name="input_fastas" value="13-1101-Paratyphi_B.fasta" ftype="fasta"/> 226 <param name="input_fastas" value="13-1101-Paratyphi_B_varJava.fasta" ftype="fasta"/>
203 <param name="output_format" value="tab"/> 227 <param name="output_format" value="tab"/>
204 <output 228 <output
205 name="novel_alleles" 229 name="novel_alleles"
206 value="novel-alleles-13-1101.fasta" 230 value="novel-alleles-13-1101.fasta"
207 ftype="fasta" 231 ftype="fasta"
220 <assert_contents> 244 <assert_contents>
221 <has_text text="13-1101-Paratyphi_B"/> 245 <has_text text="13-1101-Paratyphi_B"/>
222 <has_text text="Paratyphi B var. Java"/> 246 <has_text text="Paratyphi B var. Java"/>
223 <has_text text="enterica"/> 247 <has_text text="enterica"/>
224 <has_text text="1,4,[5],12"/> 248 <has_text text="1,4,[5],12"/>
225 <has_text text="PASS"/> 249 <has_text text="1,4,[5],12:b:1,2"/>
226 <has_n_columns n="22"/> 250 <has_text text="FAIL"/>
251 <has_text text="Y"/>
252 <has_n_columns n="24"/>
227 </assert_contents> 253 </assert_contents>
228 </output> 254 </output>
229 <output 255 <output
230 name="alleles_output" 256 name="alleles_output"
231 value="alleles-output-13-1101.json" 257 value="alleles-output-13-1101.json"
253 SISTR (Salmonella In Silico Typing Resource) Command-line Tool 279 SISTR (Salmonella In Silico Typing Resource) Command-line Tool
254 ============================================================== 280 ==============================================================
255 Serovar predictions from whole-genome sequence assemblies by determination of antigen gene and cgMLST gene alleles using BLAST. 281 Serovar predictions from whole-genome sequence assemblies by determination of antigen gene and cgMLST gene alleles using BLAST.
256 282
257 Note about using the "--use-full-cgmlst-db" flag: 283 Note about using the "--use-full-cgmlst-db" flag:
258 The "centroid" allele database is ~10% the size of the full set so analysis is much quicker with the "centroid" vs "full" set of alleles. Results between 2 cgMLST allele sets should not differ. 284 The "centroid" allele database is ~10% the size of the full set so analysis is much quicker with the "centroid" vs "full" set of alleles.
285 Results between 2 cgMLST allele sets should not differ.
259 286
260 If you find this program useful in your research, please cite as: 287 If you find this program useful in your research, please cite as:
261 288 The Salmonella In Silico Typing Resource (SISTR): an open web-accessible tool for rapidly typing and subtyping draft Salmonella genome assemblies.
262 The Salmonella In Silico Typing Resource (SISTR): an open web-accessible tool for rapidly typing and subtyping draft Salmonella genome assemblies. 289 Catherine Yoshida, Peter Kruczkiewicz, Chad R. Laing, Erika J. Lingohr, Victor P.J. Gannon, John H.E. Nash, Eduardo N. Taboada.
263 Catherine Yoshida, Peter Kruczkiewicz, Chad R. Laing, Erika J. Lingohr, Victor P.J. Gannon, John H.E. Nash, Eduardo N. Taboada. 290 PLoS ONE 11(1): e0147101. doi: 10.1371/journal.pone.0147101
264 PLoS ONE 11(1): e0147101. doi: 10.1371/journal.pone.0147101
265 291
266 positional arguments: 292 positional arguments:
267 F Input genome FASTA file 293 F Input genome FASTA file
268 294
269 optional arguments: 295 optional arguments:
298 must be in accessible via $PATH (e.g. /usr/bin). 324 must be in accessible via $PATH (e.g. /usr/bin).
299 --qc Perform basic QC to provide level of confidence in 325 --qc Perform basic QC to provide level of confidence in
300 serovar prediction results. 326 serovar prediction results.
301 -t THREADS, --threads THREADS 327 -t THREADS, --threads THREADS
302 Number of parallel threads to run sistr_cmd analysis. 328 Number of parallel threads to run sistr_cmd analysis.
329 -l [LIST_OF_SEROVARS], --list-of-serovars [LIST_OF_SEROVARS]
330 A path to a single column text file containing list of
331 serovars to check SISTR serovar prediction against.
332 Result reported in the "predicted_serovar_in_list"
333 field as Y (present) or N (absent) value.
303 -v, --verbose Logging verbosity level (-v == show warnings; -vvv == 334 -v, --verbose Logging verbosity level (-v == show warnings; -vvv ==
304 show debug info) 335 show debug info)
305 -V, --version show program's version number and exit 336 -V, --version show program's version number and exit
306 ]]> 337 ]]>
307 338