Mercurial > repos > ifb-elixirfr > abromics_galaxy_json_extractor
comparison abromics_galaxy_json_extractor.xml @ 0:b77b0b1e6c74 draft
planemo upload commit fd67555ae5bcff6d9052259771f805c4cd8124d3-dirty
author | ifb-elixirfr |
---|---|
date | Mon, 24 Jul 2023 14:58:43 +0000 |
parents | |
children | 857426567aca |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b77b0b1e6c74 |
---|---|
1 <tool id="abromics_galaxy_json_extractor" name="abromics_galaxy_json_extractor" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> | |
2 <description> | |
3 Result extractor to json format | |
4 </description> | |
5 <macros> | |
6 <import>macro.xml</import> | |
7 </macros> | |
8 <expand macro='edam'/> | |
9 <expand macro="requirements"/> | |
10 <expand macro="version_command"/> | |
11 <command detect_errors="aggressive"><![CDATA[ | |
12 #import re | |
13 mkdir "abromics_extracted_folder" && | |
14 #*================================================================= | |
15 Paramaters to add Database and tool version if available | |
16 =================================================================*# | |
17 #set $counter = len($tool_section.tools)-1 | |
18 | |
19 #*====================================================== | |
20 Loop to include some different tool in one time | |
21 ======================================================*# | |
22 #for $i, $tool in enumerate( $tool_section.tools ) | |
23 abromics_extract | |
24 $tool.select_tool.tool_list | |
25 --hid $tool.select_tool.input.hid | |
26 "$tool.select_tool.input" | |
27 --analysis_software_version "$tool.select_tool.analysis_software_version" | |
28 --reference_database_version "$tool.select_tool.reference_database_version" | |
29 #if $tool.select_tool.tool_list == "bakta" | |
30 #if str($tool.select_tool.annotation_tabular_path) != 'None' | |
31 --annotation_tabular_path '$tool.select_tool.annotation_tabular_path' | |
32 --annotation_tabular_hid '$tool.select_tool.annotation_tabular_path.hid' | |
33 #end if | |
34 #if str($tool.select_tool.annotation_genbank_path) != 'None' | |
35 --annotation_genbank_path '$tool.select_tool.annotation_genbank_path' | |
36 --annotation_genbank_hid '$tool.select_tool.annotation_genbank_path.hid' | |
37 #end if | |
38 #if str($tool.select_tool.annotation_embl_path) != 'None' | |
39 --annotation_embl_path '$tool.select_tool.annotation_embl_path' | |
40 --annotation_embl_hid '$tool.select_tool.annotation_embl_path.hid' | |
41 #end if | |
42 #if str($tool.select_tool.contig_sequences_path) != 'None' | |
43 --contig_sequences_path '$tool.select_tool.contig_sequences_path' | |
44 --contig_sequences_hid '$tool.select_tool.contig_sequences_path.hid' | |
45 #end if | |
46 #if str($tool.select_tool.nucleotide_annotation_path) != 'None' | |
47 --nucleotide_annotation_path '$tool.select_tool.nucleotide_annotation_path' | |
48 --nucleotide_annotation_hid '$tool.select_tool.nucleotide_annotation_path.hid' | |
49 #end if | |
50 #if str($tool.select_tool.amino_acid_annotation_path) != 'None' | |
51 --amino_acid_annotation_path '$tool.select_tool.amino_acid_annotation_path' | |
52 --amino_acid_annotation_hid '$tool.select_tool.amino_acid_annotation_path.hid' | |
53 #end if | |
54 #if str($tool.select_tool.summary_result_path) != 'None' | |
55 --summary_result_path '$tool.select_tool.summary_result_path' | |
56 --summary_result_hid '$tool.select_tool.summary_result_path.hid' | |
57 #end if | |
58 #if str($tool.select_tool.gff_file_path) != 'None' | |
59 --gff_file_path "$tool.select_tool.gff_file_path" | |
60 --gff_file_hid "$tool.select_tool.gff_file_path.hid" | |
61 #end if | |
62 #if str($tool.select_tool.hypothetical_protein_path) != 'None' | |
63 --hypothetical_protein_path '$tool.select_tool.hypothetical_protein_path' | |
64 --hypothetical_protein_hid '$tool.select_tool.hypothetical_protein_path.hid' | |
65 #end if | |
66 #if str($tool.select_tool.hypothetical_tabular_path) != 'None' | |
67 --hypothetical_tabular_path '$tool.select_tool.hypothetical_tabular_path' | |
68 --hypothetical_tabular_hid '$tool.select_tool.hypothetical_tabular_path.hid' | |
69 #end if | |
70 #if str($tool.select_tool.plot_file_path) != 'None' | |
71 --plot_file_path '$tool.select_tool.plot_file_path' | |
72 --plot_file_hid '$tool.select_tool.plot_file_path.hid' | |
73 #end if | |
74 #elif $tool.select_tool.tool_list == "bandage" | |
75 #if str($tool.select_tool.bandage_plot_path) != 'None' | |
76 --bandage_plot_path '$tool.select_tool.bandage_plot_path' | |
77 --bandage_plot_hid '$tool.select_tool.bandage_plot_path.hid' | |
78 #end if | |
79 #elif $tool.select_tool.tool_list == "bracken" | |
80 #if str($tool.select_tool.kraken_report_path) != 'None' | |
81 --kraken_report_path "$tool.select_tool.kraken_report_path" | |
82 --kraken_report_hid "$tool.select_tool.kraken_report_path.hid" | |
83 #end if | |
84 --threshold "$tool.select_tool.threshold" | |
85 --read_len "$tool.select_tool.read_len" | |
86 --level "$tool.select_tool.level" | |
87 #elif $tool.select_tool.tool_list == "fastp" | |
88 #if str($tool.select_tool.trimmed_forward_R1_path) != 'None' | |
89 --trimmed_forward_R1_path '$tool.select_tool.trimmed_forward_R1_path' | |
90 --trimmed_forward_R1_hid '$tool.select_tool.trimmed_forward_R1_path.hid' | |
91 #end if | |
92 #if str($tool.select_tool.trimmed_reverse_R2_path) != 'None' | |
93 --trimmed_reverse_R2_path '$tool.select_tool.trimmed_reverse_R2_path' | |
94 --trimmed_reverse_R2_hid '$tool.select_tool.trimmed_reverse_R2_path.hid' | |
95 #end if | |
96 #if str($tool.select_tool.html_report_path) != 'None' | |
97 --html_report_path '$tool.select_tool.html_report_path' | |
98 --html_report_hid '$tool.select_tool.html_report_path.hid' | |
99 #end if | |
100 #elif $tool.select_tool.tool_list == "integronfinder2" | |
101 #if str($tool.select_tool.summary_file_path) != 'None' | |
102 --summary_file_path "$tool.select_tool.summary_file_path" | |
103 --summary_file_hid "$tool.select_tool.summary_file_path.hid" | |
104 #end if | |
105 #elif $tool.select_tool.tool_list == "isescan" | |
106 #if str($tool.select_tool.summary_path) != 'None' | |
107 --summary_path '$tool.select_tool.summary_path' | |
108 --summary_hid '$tool.select_tool.summary_path.hid' | |
109 #end if | |
110 #if str($tool.select_tool.annotation_path) != 'None' | |
111 --annotation_path '$tool.select_tool.annotation_path' | |
112 --annotation_hid '$tool.select_tool.annotation_path.hid' | |
113 #end if | |
114 #if str($tool.select_tool.orf_fna_path) != 'None' | |
115 --orf_fna_path "$tool.select_tool.orf_fna_path" | |
116 --orf_fna_hid "$tool.select_tool.orf_fna_path.hid" | |
117 #end if | |
118 #if str($tool.select_tool.orf_faa_path) != 'None' | |
119 --orf_faa_path "$tool.select_tool.orf_faa_path" | |
120 --orf_faa_hid "$tool.select_tool.orf_faa_path.hid" | |
121 #end if | |
122 #if str($tool.select_tool.is_fna_path) != 'None' | |
123 --is_fna_path "$tool.select_tool.is_fna_path" | |
124 --is_fna_hid "$tool.select_tool.is_fna_path.hid" | |
125 #end if | |
126 #elif $tool.select_tool.tool_list == "kraken2" | |
127 #if str($tool.select_tool.seq_classification_file_path) != 'None' | |
128 --seq_classification_file_path "$tool.select_tool.seq_classification_file_path" | |
129 --seq_classification_file_hid "$tool.select_tool.seq_classification_file_path.hid" | |
130 #end if | |
131 #elif $tool.select_tool.tool_list == "plasmidfinder" | |
132 #if str($tool.select_tool.genome_hit_path) != 'None' | |
133 --genome_hit_path "$tool.select_tool.genome_hit_path" | |
134 --genome_hit_hid "$tool.select_tool.genome_hit_path.hid" | |
135 #end if | |
136 #if str($tool.select_tool.plasmid_hit_path) != 'None' | |
137 --plasmid_hit_path "$tool.select_tool.plasmid_hit_path" | |
138 --plasmid_hit_hid "$tool.select_tool.plasmid_hit_path.hid" | |
139 #end if | |
140 #elif $tool.select_tool.tool_list == "quast" | |
141 #if str($tool.select_tool.quast_html_path) != 'None' | |
142 --quast_html_path "$tool.select_tool.quast_html_path" | |
143 --quast_html_hid "$tool.select_tool.quast_html_path.hid" | |
144 #end if | |
145 #elif $tool.select_tool.tool_list == "recentrifuge" | |
146 #if str($tool.select_tool.rcf_stat_path) != 'None' | |
147 --rcf_stat_path "$tool.select_tool.rcf_stat_path" | |
148 --rcf_stat_hid "$tool.select_tool.rcf_stat_path.hid" | |
149 #end if | |
150 #if str($tool.select_tool.rcf_html_path) != 'None' | |
151 --rcf_html_path "$tool.select_tool.rcf_html_path" | |
152 --rcf_html_hid "$tool.select_tool.rcf_html_path.hid" | |
153 #end if | |
154 #elif $tool.select_tool.tool_list == "shovill" | |
155 #if str($tool.select_tool.contig_graph_path) != 'None' | |
156 --contig_graph_path "$tool.select_tool.contig_graph_path" | |
157 --contig_graph_hid "$tool.select_tool.contig_graph_path.hid" | |
158 #end if | |
159 #if str($tool.select_tool.bam_file_path) != 'None' | |
160 --bam_file_path "$tool.select_tool.bam_file_path" | |
161 --bam_file_hid "$tool.select_tool.bam_file_path.hid" | |
162 #end if | |
163 #elif $tool.select_tool.tool_list == "staramr" | |
164 #if str($tool.select_tool.mlst_file_path) != 'None' | |
165 --mlst_file_path "$tool.select_tool.mlst_file_path" | |
166 --mlst_hid "$tool.select_tool.mlst_file_path.hid" | |
167 #end if | |
168 #if str($tool.select_tool.plasmidfinder_file_path) != 'None' | |
169 --plasmidfinder_file_path "$tool.select_tool.plasmidfinder_file_path" | |
170 --plasmidfinder_hid "$tool.select_tool.plasmidfinder_file_path.hid" | |
171 #end if | |
172 #if str($tool.select_tool.pointfinder_file_path) != 'None' | |
173 --pointfinder_file_path "$tool.select_tool.pointfinder_file_path" | |
174 --pointfinder_hid "$tool.select_tool.pointfinder_file_path.hid" | |
175 #end if | |
176 #if str($tool.select_tool.setting_file_path) != 'None' | |
177 --setting_file_path "$tool.select_tool.setting_file_path" | |
178 --setting_hid "$tool.select_tool.setting_file_path.hid" | |
179 #end if | |
180 #elif $tool.select_tool.tool_list == "tabular_file" | |
181 --analysis_software_name "$tool.select_tool.analysis_software_name" | |
182 #end if | |
183 -o "abromics_extracted_folder/$($tool.select_tool.tool_list)_$(i)_output.json" | |
184 | tee "$logfile" | |
185 #if $i < $counter | |
186 && | |
187 #end if | |
188 #end for | |
189 && ls abromics_extracted_folder | |
190 ]]> | |
191 </command> | |
192 <inputs> | |
193 <section name="tool_section" title="Available tools" expanded="true"> | |
194 <repeat name="tools" title="Tool" min="0"> | |
195 <conditional name="select_tool"> | |
196 <param name="tool_list" type="select" label="Available tools"> | |
197 <option value="abricate">abricate</option> | |
198 <option value="bakta">bakta</option> | |
199 <option value="bandage">bandage</option> | |
200 <option value="bracken">bracken</option> | |
201 <option value="fastp">fastp</option> | |
202 <option value="integronfinder2">integronfinder2</option> | |
203 <option value="isescan">isescan</option> | |
204 <option value="kraken2">kraken2</option> | |
205 <option value="multiqc">MultiQC</option> | |
206 <option value="plasmidfinder">plasmidfinder</option> | |
207 <option value="quast">quast</option> | |
208 <option value="recentrifuge">recentrifuge</option> | |
209 <option value="refseqmasher">refseqmasher</option> | |
210 <option value="shovill">shovill</option> | |
211 <option value="staramr">staramr</option> | |
212 <option value="tabular_file">tabular_generic_file</option> | |
213 </param> | |
214 <when value="abricate"> | |
215 <param name="input" type="data" format="tabular" multiple="false" label="Abricate report file" help="Tabular file from abricate output"/> | |
216 <expand macro="analysis_software_version"/> | |
217 <expand macro="reference_database_version"/> | |
218 </when> | |
219 <when value="bakta"> | |
220 <param name="input" type="data" format="json" multiple="false" label="Bakta report file" help="Json file from bakta output"/> | |
221 <param argument="--annotation_tabular_path" type="data" format="tabular" multiple="false" optional="true" label="Bakta annotation file" help="Tabular annotation file"/> | |
222 <param argument="--annotation_genbank_path" type="data" format="txt" multiple="false" optional="true" label="Bakta genbank file" help="Genbank annotation file"/> | |
223 <param argument="--annotation_embl_path" type="data" format="txt" multiple="false" optional="true" label="Bakta embl file" help="EMBL annotation file"/> | |
224 <param argument="--contig_sequences_path" type="data" format="fasta" multiple="false" optional="true" label="Contig sequences" help="Contig sequences files"/> | |
225 <param argument="--hypothetical_protein_path" type="data" format="fasta" multiple="false" optional="true" label="Hypothetical protein" help="Hypothetical protein fasta file"/> | |
226 <param argument="--hypothetical_tabular_path" type="data" format="tabular" multiple="false" optional="true" label="Hypothetical annotation" help="Hypothetical protein annotation"/> | |
227 <param argument="--plot_file_path" type="data" format="svg" multiple="false" optional="true" label="Contig sequences" help="Contig sequences files"/> | |
228 <param argument="--summary_result_path" type="data" format="txt" multiple="false" optional="true" label="Bakta summary file" help="Summary file from bakta output"/> | |
229 <param argument="--nucleotide_annotation_path" type="data" format="fasta" multiple="false" optional="true" label="Bakta nucleotide annotation" help="Nucleotide sequence annotation file"/> | |
230 <param argument="--amino_acid_annotation_path" type="data" format="fasta" multiple="false" optional="true" label="Bakta protein annotation" help="Amino acid sequence annotation file"/> | |
231 <param argument="--gff_file_path" type="data" format="gff3" multiple="false" optional="true" label="Bakta annotation file" help="Annotation file"/> | |
232 <expand macro="analysis_software_version"/> | |
233 <expand macro="reference_database_version"/> | |
234 </when> | |
235 <when value="bandage"> | |
236 <param name="input" type="data" format="txt,tabular" multiple="false" label="Bandage report file" help="Tabular file from bandage output"/> | |
237 <param argument="--bandage_plot_path" type="data" format="svg" multiple="false" optional="true" label="Bandage plot" help="Bandage visualisation file"/> | |
238 <expand macro="analysis_software_version"/> | |
239 <expand macro="reference_database_version"/> | |
240 </when> | |
241 <when value="bracken"> | |
242 <param name="input" type="data" format="txt,tabular" multiple="false" label="Bracken report file" help="Tabular file from bracken output"/> | |
243 <expand macro="analysis_software_version"/> | |
244 <expand macro="reference_database_version"/> | |
245 <param argument="--kraken_report_path" type="data" format="txt,tabular" multiple="false" optional="true" label="Kraken re-estimated report" help="New kraken report from bracken tool"/> | |
246 <param argument="--threshold" type="integer" min="0" optional="true" label="PRIOR on read numbers" help="Prior of read for estimation, default is 0"/> | |
247 <param argument="--read_len" type="integer" min="0" optional="true" label="Read length"/> | |
248 <param argument="--level" type="select" label="Taxonomic level estimation" optional="true" help="Level of final abundance (from Domain to subspecies, default on species)"> | |
249 <option value="D">Domain</option> | |
250 <option value="P">Phylum</option> | |
251 <option value="C">Class</option> | |
252 <option value="O">Order</option> | |
253 <option value="F">Family</option> | |
254 <option value="G">Genus</option> | |
255 <option value="S">Species</option> | |
256 <option value="S+">Subspecies</option> | |
257 </param> | |
258 </when> | |
259 <when value="fastp"> | |
260 <param name="input" type="data" format="json" multiple="false" label="Fastp report file" help="Fastp result in json format"/> | |
261 <param argument="--trimmed_forward_R1_path" type="data" format="fastq,fastq.gz" optional="true" multiple="false" label="Fastp trimmed R1" help="trimmed file R1"/> | |
262 <param argument="--trimmed_reverse_R2_path" type="data" format="fastq,fastq.gz" optional="true" multiple="false" label="Fastp trimmed R2" help="trimmed file R2"/> | |
263 <param argument="--html_report_path" type="data" format="html" multiple="false" optional="true" label="Fastp report html" help="Fastp result in html format"/> | |
264 <expand macro="analysis_software_version"/> | |
265 <expand macro="reference_database_version"/> | |
266 </when> | |
267 <when value="integronfinder2"> | |
268 <param name="input" type="data" format="txt,tabular" multiple="false" label="Integronfinder report" help="Integron file from integronfinder2"/> | |
269 <param argument="--summary_file_path" type="data" format="txt,tabular" multiple="false" optional="true" label="Summary report" help="Summary file from integronfinder2"/> | |
270 <expand macro="analysis_software_version"/> | |
271 <expand macro="reference_database_version"/> | |
272 </when> | |
273 <when value="isescan"> | |
274 <param name="input" type="data" format="txt,tabular" multiple="false" label="Isescan report" help="IseScan file from integronfinder2"/> | |
275 <param argument="--summary_path" type="data" format="tabular" optional="true" multiple="false" label="summary file" help="ISEscan summary"/> | |
276 <param argument="--annotation_path" type="data" format="gff" optional="true" multiple="false" label="annotation results" help="Annotation in gff file format"/> | |
277 <param argument="--orf_fna_path" type="data" format="fasta" optional="true" multiple="false" label="ORF fna file" help="Nuleotide sequence to the ORFs"/> | |
278 <param argument="--orf_faa_path" type="data" format="fasta" optional="true" multiple="false" label="ORF faa file" help="Amino acid sequence to the ORFs"/> | |
279 <param argument="--is_fna_path" type="data" format="fasta" optional="true" multiple="false" label="IS fna file" help="Nuleotide sequence to the inserted elements"/> | |
280 <expand macro="analysis_software_version"/> | |
281 <expand macro="reference_database_version"/> | |
282 </when> | |
283 <when value="kraken2"> | |
284 <param name="input" type="data" format="txt,tabular" multiple="false" label="kraken report" help="Taxonomic assignation file from kraken2"/> | |
285 <param argument="--seq_classification_file_path" type="data" format="txt,tabular" optional="true" multiple="false" label="Sequence assignation" help="Reads assignation file"/> | |
286 <expand macro="analysis_software_version"/> | |
287 <expand macro="reference_database_version"/> | |
288 </when> | |
289 <when value="multiqc"> | |
290 <param name="input" type="data" format="html" multiple="false" label="MultiQC report" help="Html report from MultiQC"/> | |
291 <expand macro="analysis_software_version"/> | |
292 <expand macro="reference_database_version"/> | |
293 </when> | |
294 <when value="plasmidfinder"> | |
295 <param name="input" type="data" format="json" multiple="false" label="Json report" help="Plasmidfinder result from json file"/> | |
296 <param argument="--genome_hit_path" type="data" format="fasta" optional="true" multiple="false" label="Genome hits" help="Sequence hit in the analyzed genome"/> | |
297 <param argument="--plasmid_hit_path" type="data" format="fasta" optional="true" multiple="false" label="Plasmid hits" help="Plasmid sequence identified"/> | |
298 <expand macro="analysis_software_version"/> | |
299 <expand macro="reference_database_version"/> | |
300 </when> | |
301 <when value="quast"> | |
302 <param name="input" type="data" format="txt,tabular" multiple="false" label="Quast report" help="Tabular Quast report"/> | |
303 <param argument="--quast_html_path" type="data" format="html" multiple="false" optional="true" label="Quast html report" help="Quast html report"/> | |
304 <expand macro="analysis_software_version"/> | |
305 <expand macro="reference_database_version"/> | |
306 </when> | |
307 <when value="recentrifuge"> | |
308 <param name="input" type="data" format="txt,tabular" multiple="false" label="Recentrifuge data file"/> | |
309 <param argument="--rcf_stat_path" type="data" format="txt,tabular" optional="true" multiple="false" label="Recentrifuge stat file"/> | |
310 <param argument="--rcf_html_path" type="data" format="html" optional="true" multiple="false" label="Recentrifuge html report file"/> | |
311 <expand macro="analysis_software_version"/> | |
312 <expand macro="reference_database_version"/> | |
313 </when> | |
314 <when value="refseqmasher"> | |
315 <param name="input" type="data" format="txt,tabular" multiple="false" label="RefsesMasher results"/> | |
316 <expand macro="analysis_software_version"/> | |
317 <expand macro="reference_database_version"/> | |
318 </when> | |
319 <when value="shovill"> | |
320 <param name="input" type="data" format="fasta" multiple="false" label="Contigs file" help="Contig fasta file from assembly"/> | |
321 <param argument="--contig_graph_path" type="data" format="txt" optional="true" multiple="false" label="Contig graph file" help="Graphic file assembly"/> | |
322 <param argument="--bam_file_path" type="data" format="bam" optional="true" multiple="false" label="Bam file" help="Alignemnt file in bam format"/> | |
323 <expand macro="analysis_software_version"/> | |
324 <expand macro="reference_database_version"/> | |
325 </when> | |
326 <when value="staramr"> | |
327 <param name="input" type="data" format="txt,tabular" multiple="false" label="Resfinder report" help="Resfinder result from starAMR"/> | |
328 <param argument="--mlst_file_path" type="data" format="txt,tabular" optional="true" multiple="false" label="MLST results" help="mlst scheme file result from starAMR"/> | |
329 <param argument="--plasmidfinder_file_path" type="data" optional="true" format="txt,tabular" multiple="false" label="Plasmid results" help="Plasmidfinder result from starAMR"/> | |
330 <param argument="--pointfinder_file_path" type="data" optional="true" format="txt,tabular" multiple="false" label="Pointfinder results" help="PointFinder result from starAMR"/> | |
331 <param argument="--setting_file_path" type="data" optional="true" format="txt,tabular" multiple="false" label="Setting informations" help="Settings file from starAMR"/> | |
332 <expand macro="analysis_software_version"/> | |
333 <expand macro="reference_database_version"/> | |
334 </when> | |
335 <when value="tabular_file"> | |
336 <param name="input" type="data" format="txt,tabular" multiple="false" label="Tabular file type" help="Generic result file in tabular format with header"/> | |
337 <param argument="--analysis_software_name" type="text" multiple="false" optional="true" label="Tool name" help="Tool name which generated the result file"/> | |
338 <expand macro="analysis_software_version"/> | |
339 <expand macro="reference_database_version"/> | |
340 </when> | |
341 </conditional> | |
342 </repeat> | |
343 </section> | |
344 <param name="log" type="boolean" truevalue="true" falsevalue="" label="Add log" help="Activate/Deactivate the log"/> | |
345 </inputs> | |
346 <outputs> | |
347 <collection name="output_json" type="list" label="${tool.name} on ${on_string}: abromics formated json results"> | |
348 <discover_datasets pattern="(?P<designation>.+)\.json" format="json" directory="abromics_extracted_folder" /> | |
349 </collection> | |
350 <data name="logfile" format="txt" label="${tool.name} on ${on_string}: log file"> | |
351 <filter> log == True </filter> | |
352 </data> | |
353 </outputs> | |
354 <tests> | |
355 <test expect_num_outputs="2"> <!-- TEST_1 abricate with logfile --> | |
356 <section name="tool_section"> | |
357 <repeat name="tools"> | |
358 <conditional name="select_tool"> | |
359 <param name="tool_list" value="abricate"/> | |
360 <param name="input" value="abricate/report.tsv" ftype="tabular"/> | |
361 <param name="analysis_software_version" value="1.0"/> | |
362 <param name="reference_database_version" value="2.0" /> | |
363 </conditional> | |
364 </repeat> | |
365 </section> | |
366 <param name="log" value="true"/> | |
367 <output_collection name="output_json" type="list"> | |
368 <expand macro="element_assert" name="abricate_0_output" text="Enterococcus faecalis V583"/> | |
369 </output_collection> | |
370 <output name="logfile" value="abricate_logfile.txt"/> | |
371 </test> | |
372 <test expect_num_outputs="1"> <!-- TEST_2 bakta all files --> | |
373 <section name="tool_section"> | |
374 <repeat name="tools"> | |
375 <conditional name="select_tool"> | |
376 <param name="tool_list" value="bakta"/> | |
377 <param name="input" value="bakta/bakta.json" ftype="json"/> | |
378 <param name="annotation_tabular_path" value="bakta/bakta_summary.txt" ftype="txt"/> | |
379 <param name="annotation_genbank_path" value="bakta/bakta_summary.txt" ftype="txt"/> | |
380 <param name="annotation_embl_path" value="bakta/bakta_summary.txt" ftype="txt"/> | |
381 <param name="contig_sequences_path" value="bakta/bakta_summary.txt" ftype="txt"/> | |
382 <param name="hypothetical_protein_path" value="bakta/bakta_summary.txt" ftype="txt"/> | |
383 <param name="hypothetical_tabular_path" value="bakta/bakta_summary.txt" ftype="txt"/> | |
384 <param name="summary_result_path" value="bakta/bakta_summary.txt" ftype="txt"/> | |
385 <param name="nucleotide_annotation_path" value="bakta/bakta_nucleotide_annotation.ffn" ftype="fasta"/> | |
386 <param name="amino_acid_annotation_path" value="bakta/bakta_aminoacid.faa" ftype="fasta"/> | |
387 <param name="gff_file_path" value="bakta/bakta_annotation.gff3" ftype="gff3"/> | |
388 <param name="analysis_software_version" value="1.8.1"/> | |
389 <param name="reference_database_version" value="5.0"/> | |
390 </conditional> | |
391 </repeat> | |
392 </section> | |
393 <output_collection name="output_json" type="list" count="1"> | |
394 <expand macro="element_assert" name="bakta_0_output" text="UniRef50_A0A0H2ZNL3"/> | |
395 </output_collection> | |
396 </test> | |
397 <test expect_num_outputs="1"> <!-- TEST_3 bakta with no files --> | |
398 <section name="tool_section"> | |
399 <repeat name="tools"> | |
400 <conditional name="select_tool"> | |
401 <param name="tool_list" value="bakta"/> | |
402 <param name="input" value="bakta/bakta.json" ftype="json"/> | |
403 </conditional> | |
404 </repeat> | |
405 </section> | |
406 <output_collection name="output_json" type="list" count="1"> | |
407 <expand macro="element_assert" name="bakta_0_output" text="UniRef50_A0A0H2ZNL3"/> | |
408 </output_collection> | |
409 </test> | |
410 <test expect_num_outputs="1"> <!-- TEST_4 All tool in repeat --> | |
411 <section name="tool_section"> | |
412 <repeat name="tools"> | |
413 <conditional name="select_tool"> | |
414 <param name="tool_list" value="abricate"/> | |
415 <param name="input" value="abricate/report.tsv" ftype="tabular"/> | |
416 <param name="analysis_software_version" value="1.0"/> | |
417 <param name="reference_database_version" value="2.0" /> | |
418 </conditional> | |
419 </repeat> | |
420 <repeat name="tools"> | |
421 <conditional name="select_tool"> | |
422 <param name="tool_list" value="bakta"/> | |
423 <param name="input" value="bakta/bakta.json" ftype="json"/> | |
424 <param name="annotation_tabular_path" value="bakta/bakta_annotation.tsv" ftype="tabular"/> | |
425 <param name="annotation_genbank_path" value="bakta/bakta_gbff.gbff"/> | |
426 <param name="annotation_embl_path" value="bakta/bakta_embl.embl"/> | |
427 <param name="contig_sequences_path" value="bakta/bakta_contigs_sequences.fna" ftype="fasta"/> | |
428 <param name="hypothetical_protein_path" value="bakta/bakta_hypothetical.faa" ftype="fasta"/> | |
429 <param name="hypothetical_tabular_path" value="bakta/bakta_hypothetical.tsv" ftype="tabular"/> | |
430 <param name="plot_file_path" value="bakta/bakta_plot.svg"/> | |
431 <param name="summary_result_path" value="bakta/bakta_summary.txt" ftype="txt"/> | |
432 <param name="nucleotide_annotation_path" value="bakta/bakta_nucleotide_annotation.ffn" ftype="fasta"/> | |
433 <param name="amino_acid_annotation_path" value="bakta/bakta_aminoacid.faa" ftype="fasta"/> | |
434 <param name="gff_file_path" value="bakta/bakta_annotation.gff3" ftype="gff3"/> | |
435 <param name="analysis_software_version" value="1.8.1"/> | |
436 <param name="reference_database_version" value="5.0"/> | |
437 </conditional> | |
438 </repeat> | |
439 <repeat name="tools"> | |
440 <conditional name="select_tool"> | |
441 <param name="tool_list" value="bandage"/> | |
442 <param name="input" value="bandage/bandage_info.txt" ftype="txt"/> | |
443 <param name="bandage_plot_path" value="bandage/bandage_plot.svg"/> | |
444 <param name="analysis_software_version" value="1.0"/> | |
445 <param name="reference_database_version" value="1.0"/> | |
446 </conditional> | |
447 </repeat> | |
448 <repeat name="tools"> | |
449 <conditional name="select_tool"> | |
450 <param name="tool_list" value="bracken"/> | |
451 <param name="input" value="bracken/bracken_report.tsv" ftype="tabular"/> | |
452 <param name="kraken_report_path" value="bracken/bracken_kraken_report.tsv"/> | |
453 <param name="read_len" value="100"/> | |
454 <param name="level" value="S"/> | |
455 <param name="threshold" value="1"/> | |
456 <param name="analysis_software_version" value="1.0"/> | |
457 <param name="reference_database_version" value="1.0"/> | |
458 </conditional> | |
459 </repeat> | |
460 <repeat name="tools"> | |
461 <conditional name="select_tool"> | |
462 <param name="tool_list" value="fastp"/> | |
463 <param name="input" value="fastp/fastp_report.json" ftype="json"/> | |
464 <param name="trimmed_forward_R1_path" value="fastp/trimmed_R1.fastq.gz"/> | |
465 <param name="trimmed_reverse_R2_path" value="fastp/trimmed_R2.fastq.gz"/> | |
466 <param name="html_report_path" value="fastp/fastp_report.html"/> | |
467 <param name="analysis_software_version" value="1.0"/> | |
468 <param name="reference_database_version" value="1.0"/> | |
469 </conditional> | |
470 </repeat> | |
471 <repeat name="tools"> | |
472 <conditional name="select_tool"> | |
473 <param name="tool_list" value="integronfinder2"/> | |
474 <param name="input" value="integronfinder2/results.integrons" ftype="tabular"/> | |
475 <param name="summary_file_path" value="integronfinder2/results.summary" ftype="tabular"/> | |
476 <param name="analysis_software_version" value="1.0"/> | |
477 <param name="reference_database_version" value="1.0"/> | |
478 | |
479 </conditional> | |
480 </repeat> | |
481 <repeat name="tools"> | |
482 <conditional name="select_tool"> | |
483 <param name="tool_list" value="isescan"/> | |
484 <param name="input" value="isescan/results.tsv" ftype="tabular"/> | |
485 <param name="summary_path" value="isescan/summary.tsv"/> | |
486 <param name="annotation_path" value="isescan/annotation.gff"/> | |
487 <param name="orf_fna_path" value="isescan/orf.fna"/> | |
488 <param name="orf_faa_path" value="isescan/orf.faa"/> | |
489 <param name="is_fna_path" value="isescan/is.fna"/> | |
490 <param name="analysis_software_version" value="1.0"/> | |
491 <param name="reference_database_version" value="1.0"/> | |
492 </conditional> | |
493 </repeat> | |
494 <repeat name="tools"> | |
495 <conditional name="select_tool"> | |
496 <param name="tool_list" value="kraken2"/> | |
497 <param name="input" value="kraken2/taxonomy_report.tsv" ftype="tabular"/> | |
498 <param name="seq_classification_file_path" value="kraken2/taxonomy_result.tsv" ftype="tabular"/> | |
499 <param name="analysis_software_version" value="1.0"/> | |
500 <param name="reference_database_version" value="1.0"/> | |
501 </conditional> | |
502 </repeat> | |
503 <repeat name="tools"> | |
504 <conditional name="select_tool"> | |
505 <param name="tool_list" value="plasmidfinder"/> | |
506 <param name="input" value="plasmidfinder/plasmidfinder_result.json" ftype="json"/> | |
507 <param name="genome_hit_path" value="plasmidfinder/genome_hit.fasta" ftype="fasta"/> | |
508 <param name="plasmid_hit_path" value="plasmidfinder/plasmid_hit.fasta" ftype="fasta"/> | |
509 <param name="analysis_software_version" value="1.0"/> | |
510 <param name="reference_database_version" value="1.0"/> | |
511 </conditional> | |
512 </repeat> | |
513 <repeat name="tools"> | |
514 <conditional name="select_tool"> | |
515 <param name="tool_list" value="quast"/> | |
516 <param name="input" value="quast/quast_result.tsv" ftype="tabular"/> | |
517 <param name="quast_html_path" value="quast/quast_report.html"/> | |
518 <param name="analysis_software_version" value="1.0"/> | |
519 <param name="reference_database_version" value="1.0"/> | |
520 </conditional> | |
521 </repeat> | |
522 <repeat name="tools"> | |
523 <conditional name="select_tool"> | |
524 <param name="tool_list" value="recentrifuge"/> | |
525 <param name="input" value="recentrifuge/rcf_data.tsv" ftype="tabular"/> | |
526 <param name="rcf_stat_path" value="recentrifuge/rcf_stat.tsv" ftype="tabular"/> | |
527 <param name="rcf_html_path" value="recentrifuge/rcf_report.html"/> | |
528 <param name="analysis_software_version" value="1.0"/> | |
529 <param name="reference_database_version" value="1.0"/> | |
530 </conditional> | |
531 </repeat> | |
532 <repeat name="tools"> | |
533 <conditional name="select_tool"> | |
534 <param name="tool_list" value="refseqmasher"/> | |
535 <param name="input" value="refseqmasher/refsesqmasher.tsv" ftype="tabular"/> | |
536 <param name="analysis_software_version" value="1.0"/> | |
537 <param name="reference_database_version" value="1.0"/> | |
538 </conditional> | |
539 </repeat> | |
540 <repeat name="tools"> | |
541 <conditional name="select_tool"> | |
542 <param name="tool_list" value="shovill"/> | |
543 <param name="input" value="shovill/contigs.fa" ftype="fasta"/> | |
544 <param name="contig_graph_path" value="shovill/contigs.gfa" ftype="txt"/> | |
545 <param name="bam_file_path" value="shovill/alignment.bam" ftype="bam"/> | |
546 <param name="analysis_software_version" value="1.0"/> | |
547 <param name="reference_database_version" value="1.0"/> | |
548 </conditional> | |
549 </repeat> | |
550 <repeat name="tools"> | |
551 <conditional name="select_tool"> | |
552 <param name="tool_list" value="staramr"/> | |
553 <param name="input" value="staramr/resfinder.tsv" ftype="tabular"/> | |
554 <param name="mlst_file_path" value="staramr/mlst.tsv" ftype="tabular"/> | |
555 <param name="plasmidfinder_file_path" value="staramr/plasmidfinder.tsv" ftype="tabular"/> | |
556 <param name="pointfinder_file_path" value="staramr/pointfinder.tsv" ftype="tabular"/> | |
557 <param name="setting_file_path" value="staramr/settings.txt" ftype="tabular"/> | |
558 <param name="analysis_software_version" value="1.0"/> | |
559 <param name="reference_database_version" value="1.0"/> | |
560 </conditional> | |
561 </repeat> | |
562 <repeat name="tools"> | |
563 <conditional name="select_tool"> | |
564 <param name="tool_list" value="tabular_file"/> | |
565 <param name="input" value="tabular_file/report.tsv" ftype="tabular"/> | |
566 <param name="analysis_software_name" value="test_galaxy"/> | |
567 <param name="analysis_software_version" value="1.0"/> | |
568 <param name="reference_database_version" value="1.0"/> | |
569 </conditional> | |
570 </repeat> | |
571 </section> | |
572 <output_collection name="output_json" type="list" count="15"> | |
573 <expand macro="element_assert" name="abricate_0_output" text="Enterococcus faecalis V583"/> | |
574 <expand macro="element_assert" name="bakta_1_output" text="UniRef50_A0A0H2ZNL3"/> | |
575 <expand macro="element_assert" name="bandage_2_output" text="3042326"/> | |
576 <expand macro="element_assert" name="bracken_3_output" text="Staphylococcus_aureus"/> | |
577 <expand macro="element_assert" name="fastp_4_output" text="705053822"/> | |
578 <expand macro="element_assert" name="integronfinder2_5_output" text="2353.0"/> | |
579 <expand macro="element_assert" name="isescan_6_output" text="IS200/IS605"/> | |
580 <expand macro="element_assert" name="kraken2_7_output" text="Enterococcus_faecalis_ATCC_29212"/> | |
581 <expand macro="element_assert" name="plasmidfinder_8_output" text="repUS40_1_repB"/> | |
582 <expand macro="element_assert" name="quast_9_output" text="2944723"/> | |
583 <expand macro="element_assert" name="recentrifuge_10_output" text="6.4917947578"/> | |
584 <expand macro="element_assert" name="refseqmasher_11_output" text="GCF_000519925.1"/> | |
585 <expand macro="element_assert" name="shovill_12_output" text="436224"/> | |
586 <expand macro="element_assert" name="staramr_13_output" text="10_Enterococcus_faecalis_S17_L001"/> | |
587 <expand macro="element_assert" name="tabular_file_14_output" text="NP_814691"/> | |
588 </output_collection> | |
589 </test> | |
590 | |
591 </tests> | |
592 <help><![CDATA[**What it does** | |
593 ** Tool input** | |
594 abromics_galaxy_json_extractor can use several input type from at least 14 different tools : | |
595 | |
596 | Tools | Version | Default input file| Optional files | | |
597 | -: | :-: | :- | :- | | |
598 | Abricate | 1.0.1 | output.tsv | | | |
599 | Bakta | 1.7.0 | output.json | protein.faa, nucleotide.fna, annotation.gff3, summary.txt | | |
600 | Bandage | 0.8.1 | info.txt | | | |
601 | Bracken | 2.8 | output.tsv | taxonomy.tsv | | |
602 | Fastp | 0.23.2 | output.json | | | |
603 | Integronfinder2| 2.0.2 | output.integrons | output.summary | | |
604 | ISEScan | 1.7.2.3 | output.tsv | is.fna, orf.faa, orf.fna | | |
605 | Kraken2 | 2.1.2 | taxonomy.tsv | reads_assignation.txt | | |
606 | Plasmidfinder | 2.1.6 | output.json | genome_hits.fasta, plasmid_hits.fasta | | |
607 | Quast | 5.2.0 | output.tsv | | | |
608 | Recentrifuge | 1.10.0 | data.tsv | report.html, stat.tsv | | |
609 | Refseqmasher | 0.1.2 | output.tsv | | | |
610 | Shovill | 1.1.0 | contigs.fasta | alignment.bam, contigs.gfa | | |
611 | Staramr | 0.9.1 | resfinder.tsv | mlst.tsv, pointfinder.tsv, plasmidfinder.tsv, settings.tsv | | |
612 | tabular_file | 0 | output.tsv | no optional files | | |
613 | |
614 ** Options ** | |
615 You can add a tool version and a database version for related tools. | |
616 For some tools you can add optional files previously produced by the tool | |
617 ]]></help> | |
618 <expand macro="citations"/> | |
619 </tool> |