comparison macros.xml @ 0:4098d42e27f7 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/DIMet commit 3dba8748fbc8cc8e89ffc08e5febe0a0527a96a5
author iuc
date Fri, 21 Jun 2024 18:46:51 +0000
parents
children bbd493f1ba07
comparison
equal deleted inserted replaced
-1:000000000000 0:4098d42e27f7
1 <macros>
2 <token name="@TOOL_VERSION@">0.2.4</token>
3 <token name="@VERSION_SUFFIX@">3</token>
4 <xml name="requirements">
5 <requirements>
6 <requirement type="package" version="@TOOL_VERSION@">dimet</requirement>
7 </requirements>
8 </xml>
9 <xml name="statistical_test_for_multigroup">
10 <param name="stat_test" type="select" value="KW" display="radio" label="Select statistical to apply" help="Please enter at max 1 statistical test by file">
11 <option value="KW">Kruskal-Wallis</option>
12 </param>
13 </xml>
14 <xml name="statistical_test_for_bivariate_analysis">
15 <param name="stat_test" type="select" value="pearson" display="radio" label="Select statistical to apply" help="Please enter at max 1 statistical test by file">
16 <option value="pearson">pearson</option>
17 <option value="spearman">spearman</option>
18 </param>
19 </xml>
20 <xml name="statistical_test">
21 <conditional name="statistics">
22 <param name="statistical_test_type" type="select" label="Choose which type of statistical test to perform" help="Choose which type of statistical test to perform">
23 <option value="parametric">parametric</option>
24 <option value="non-parametric-rank" selected="true">non-parametric (rank based)</option>
25 <option value="non-parametric-distribution">non-parametric (distribution based)</option>
26 </param>
27 <when value="parametric">
28 <param name="stat_test" type="select" display="radio" label="Select statistical to apply" help="Please enter at max 1 statistical test by file">
29 <option value="Tt" selected="true">t-test</option>
30 </param>
31 </when>
32 <when value="non-parametric-rank">
33 <param name="stat_test" type="select" display="radio" label="Select statistical to apply" help="Please enter at max 1 statistical test by file">
34 <option value="MW">Mann Whitney</option>
35 <option value="KW">Kruskal-Wallis</option>
36 <option value="ranksum" selected="true">Wilcoxon's rank sum test</option>
37 <option value="Wcox">Wilcoxon signed-rank test</option>
38 <option value="BrMu">Brunner-Munzel test</option>
39 </param>
40 </when>
41 <when value="non-parametric-distribution">
42 <param name="stat_test" type="select" display="radio" label="Select statistical to apply" help="Please enter at max 1 statistical test by file">
43 <option value="prm-scipy" selected="true">permutations test</option>
44 <option value="disfit">distribution fitting (of the z-score of the ratios), disfit needs several hundreds of metabolites to be trustful.</option>
45 </param>
46 </when>
47 </conditional>
48
49 </xml>
50 <xml name="citations">
51 <citations>
52 <citation type="bibtex">
53 @software{Galvis_Rodriguez_DIMet,
54 author = {Galvis Rodriguez, Johanna and Guyon, Joris and Dartigues, Benjamin and Specque, Florian and Daubon, Thomas and Karkar, Slim and Nikolski, Macha},
55 license = {MIT},
56 title = {{DIMet}},
57 url = {https://github.com/cbib/DIMet}
58 }
59
60 </citation>
61 </citations>
62
63 </xml>
64 <xml name="metadata_file_macros">
65 <param name="metadata_path" type="data" format="tabular" label="metadata file" help="The metadata, a unique file with the description of the samples in your measures' files. This is compulsory, see section Metadata File Information."/>
66 </xml>
67 <xml name="abundance_file_macros">
68 <param name="abundance_file" type="data" format="tabular" label="Metabolite abundance file" help="The total abundances file must be organized as a matrix: - The first column must contain Metabolite IDs that are unique (not repeated) within the file. - The rest of the columns correspond to the samples - The rows correspond to the metabolites - The values must be tab separated, with the first row containing the sample/column labels. (see help below for more details)"/>
69 </xml>
70 <xml name="enrichment_file_macros">
71 <param name="me_or_frac_contrib_file" type="data" format="tabular" label="Metabolite enrichment file" help="The mean enrichment file must be organized as a matrix: - The first column must contain Metabolite IDs that are unique (not repeated) within the file. - The rest of the columns correspond to the samples. - The rows correspond to the metabolites. - The values must be tab separated, with the first row containing the sample/column labels. (see help below for more details)"/>
72 </xml>
73 <xml name="isotopologue_prop_file_macros">
74 <param name="isotop_prop_file" type="data" format="tabular" label="Isotopologues proportion abundance file" help=" The isotopologue proportions file must be organized as a matrix: - The first column must contain isotopologues IDs that are unique (not repeated) within the file. - The rest of the columns correspond to the samples. - The rows correspond to the isotopologues. - The values must be tab separated, with the first row containing the sample/column labels (see help below for more details)."/>
75 </xml>
76 <xml name="isotopologue_abs_file_macros">
77 <param name="isotop_abs_file" type="data" format="tabular" label="Isotopologues absolute abundance file" help="The isotopologue absolute values file must be organized as a matrix: - The first column must contain isotopologues IDs that are unique (not repeated) within the file. - The rest of the columns correspond to the samples. - The rows correspond to the isotopologues. - The values must be tab separated, with the first row containing the sample/column labels (see help below for more details)."/>
78 </xml>
79 <xml name="input_parameters_pca">
80 <expand macro="abundance_file_macros"/>
81 <param name="me_or_frac_contrib_file" type="data" optional="true" format="tabular" label="Mean enrichment or fraction contribution file"/>
82 <expand macro="metadata_file_macros"/>
83 </xml>
84 <xml name="input_parameters_abundance">
85 <expand macro="abundance_file_macros"/>
86 <expand macro="metadata_file_macros"/>
87 </xml>
88 <xml name="input_parameters_enrichment">
89 <expand macro="enrichment_file_macros"/>
90 <expand macro="metadata_file_macros"/>
91 </xml>
92 <xml name="input_parameters_isotopologue">
93 <expand macro="isotopologue_prop_file_macros"/>
94 <expand macro="metadata_file_macros"/>
95 </xml>
96 <xml name="input_parameters_metabologram">
97 <conditional name="data_input">
98 <param name="data_input_selector" type="select" label="Abundance, Enrichment or Isotopologues quantification files" help="Select between raw abundance and mean enrichment files">
99 <option value="abundance" selected="True">abundance</option>
100 <option value="mean_enrichment">mean_enrichment</option>
101 </param>
102 <when value="abundance">
103 <expand macro="abundance_file_macros"/>
104 <param name="metabolites_list" type="select" optional="false" multiple="true"
105 label="Select Metabolite(s) for condition 1 to plot (1 Min.). You have to load a abundance file prior to have access to metabolite list">
106 <validator type="length" min="1" message="Please enter at max 2 compartments"/>
107 <options from_dataset="abundance_file">
108 <column name="metabolite_or_isotopologue" index="0"/>
109 <column name="value" index="0"/>
110 <filter type="unique_value" name="metabolite_or_isotopologue" column="0"/>
111 <filter type="remove_value" value="metabolite_or_isotopologue"/>
112 </options>
113 <sanitizer>
114 <valid initial="default">
115 <add preset="string.printable"/>
116 <add value="\t"/>
117 <remove value="&quot;"/>
118 <remove value="&apos;"/>
119 </valid>
120 </sanitizer>
121 </param>
122 <expand macro="statistical_test"/>
123 </when>
124 <when value="mean_enrichment">
125 <expand macro="enrichment_file_macros"/>
126 <param name="metabolites_list" type="select" optional="false" multiple="true"
127 label="Select Metabolite(s) for condition 1 to plot (1 Min.). You have to load a abundance file prior to have access to metabolite list">
128 <validator type="length" min="1" message="Please enter at max 2 compartments"/>
129 <options from_dataset="me_or_frac_contrib_file">
130 <column name="metabolite_or_isotopologue" index="0"/>
131 <column name="value" index="0"/>
132 <filter type="unique_value" name="metabolite_or_isotopologue" column="0"/>
133 <filter type="remove_value" value="metabolite_or_isotopologue"/>
134 </options>
135 <sanitizer>
136 <valid initial="default">
137 <add preset="string.printable"/>
138 <add value="\t"/>
139 <remove value="&quot;"/>
140 <remove value="&apos;"/>
141 </valid>
142 </sanitizer>
143 </param>
144 <expand macro="statistical_test"/>
145 </when>
146 </conditional>
147 <param name="path_kegg_metabolites" type="data" format="tabular" label="Pathways kegg metabolites file" help="A file with the pathways and respective metabolites ID, that must match with those in your metabolomics data. The names of the columns must be the pathways' names, see the minimal data example downloaded from zenodo as explained above. (see help below for more details)"/>
148 <param name="path_kegg_transcripts" type="data" format="tabular" label="Pathways kegg transcripts file" help="A file with the pathways and respective gene symbols, which must match with those present in the transcriptomics data. The names of the columns must be the pathways' names, see the minimal data example downloaded from zenodo as explained above. (see help below for more details)"/>
149 <expand macro="metadata_file_macros"/>
150 </xml>
151 <xml name="input_parameters_bivar_analysis">
152 <conditional name="data_input">
153 <param name="data_input_selector" type="select" label="Abundance, Enrichment or Isotopologues quantification files" help="Select between raw abundance, mean enrichment or isotopologue files">
154 <option value="abundance" selected="True">abundance</option>
155 <option value="mean_enrichment">mean_enrichment</option>
156 <option value="isotop_prop">isotop_prop</option>
157 <option value="isotop_abs">isotop_abs</option>
158 </param>
159 <when value="abundance">
160 <expand macro="abundance_file_macros"/>
161
162 </when>
163 <when value="mean_enrichment">
164 <expand macro="enrichment_file_macros"/>
165 </when>
166 <when value="isotop_prop">
167 <expand macro="isotopologue_prop_file_macros"/>
168 </when>
169 <when value="isotop_abs">
170 <expand macro="isotopologue_abs_file_macros"/>
171 </when>
172 </conditional>
173 <expand macro="metadata_file_macros"/>
174 <expand macro="statistical_test_for_bivariate_analysis"/>
175 </xml>
176 <xml name="input_parameters_diff_analysis">
177 <conditional name="data_input">
178 <param name="data_input_selector" type="select" label="Abundance, Enrichment or Isotopologues quantification files" help="Select between raw abundance, mean enrichment or isotopologue files">
179 <option value="abundance" selected="True">abundance</option>
180 <option value="mean_enrichment">mean_enrichment</option>
181 <option value="isotop_prop">isotop_prop</option>
182 <option value="isotop_abs">isotop_abs</option>
183 </param>
184 <when value="abundance">
185 <expand macro="abundance_file_macros"/>
186 <expand macro="statistical_test"/>
187
188 </when>
189 <when value="mean_enrichment">
190 <expand macro="enrichment_file_macros"/>
191 <expand macro="statistical_test"/>
192 </when>
193 <when value="isotop_prop">
194 <expand macro="isotopologue_prop_file_macros"/>
195 <expand macro="statistical_test"/>
196 </when>
197 <when value="isotop_abs">
198 <expand macro="isotopologue_abs_file_macros"/>
199 <expand macro="statistical_test"/>
200 </when>
201 </conditional>
202 <expand macro="metadata_file_macros"/>
203 </xml>
204 <xml name="input_parameters_multi_diff_analysis">
205 <conditional name="data_input">
206 <param name="data_input_selector" type="select" label="Abundance, Enrichment or Isotopologues quantification files" help="Select between raw abundance, mean enrichment or isotopologue files">
207 <option value="abundance" selected="True">abundance</option>
208 <option value="mean_enrichment">mean_enrichment</option>
209 <option value="isotop_prop">isotop_prop</option>
210 <option value="isotop_abs">isotop_abs</option>
211 </param>
212 <when value="abundance">
213 <expand macro="abundance_file_macros"/>
214 <expand macro="statistical_test_for_multigroup"/>
215
216 </when>
217 <when value="mean_enrichment">
218 <expand macro="enrichment_file_macros"/>
219 <expand macro="statistical_test_for_multigroup"/>
220 </when>
221 <when value="isotop_prop">
222 <expand macro="isotopologue_prop_file_macros"/>
223 <expand macro="statistical_test_for_multigroup"/>
224 </when>
225 <when value="isotop_abs">
226 <expand macro="isotopologue_abs_file_macros"/>
227 <expand macro="statistical_test_for_multigroup"/>
228 </when>
229 </conditional>
230 <expand macro="metadata_file_macros"/>
231 </xml>
232 <xml name="suffix">
233 <param name="suffix" type="text" optional="false" label="suffix to add to output files" >
234 <sanitizer invalid_char="">
235 <valid initial="string.ascii_letters,string.digits">
236 <add value="_" />
237 </valid>
238 </sanitizer>
239 </param>
240 </xml>
241 <xml name="conditions">
242 <param name="conditions" type="select" optional="false" multiple="true" label="Browse conditions from metadata file (1 min. only if two timepoints are set. 2 max.). You have to load a metadata file prior to have access to condition list">
243 <options from_dataset="metadata_path">
244 <column name="condition" index="1"/>
245 <column name="value" index="1"/>
246 <filter type="unique_value" name="condition" column="condition"/>
247 <filter type="remove_value" value="condition"/>
248 </options>
249 <sanitizer>
250 <valid initial="default">
251 <add preset="string.printable"/>
252 <add value="\t"/>
253 <remove value="&quot;"/>
254 <remove value="&apos;"/>
255 </valid>
256 </sanitizer>
257 </param>
258 </xml>
259 <xml name="conditions_multigroup">
260 <param name="conditions" type="select" optional="false" multiple="true" label="Browse conditions from metadata file. (1 min. only if three timepoints are set). You have to load a metadata file prior to have access to conditions">
261 <options from_dataset="metadata_path">
262 <column name="condition" index="1"/>
263 <column name="value" index="1"/>
264 <filter type="unique_value" name="condition" column="condition"/>
265 <filter type="remove_value" value="condition"/>
266 </options>
267 <sanitizer>
268 <valid initial="default">
269 <add preset="string.printable"/>
270 <add value="\t"/>
271 <remove value="&quot;"/>
272 <remove value="&apos;"/>
273 </valid>
274 </sanitizer>
275 </param>
276 </xml>
277 <xml name="timepoint_multigroup">
278 <param name="timepoint" type="select" optional="true" multiple="true" label="Browse timepoint from metadata file (1 min. only if three conditions are set). You have to load a metadata file prior to have access to conditions">
279 <options from_dataset="metadata_path">
280 <column name="timepoint" index="2"/>
281 <column name="value" index="2"/>
282 <filter type="unique_value" name="timepoint" column="2"/>
283 <filter type="remove_value" value="timepoint"/>
284 <filter type="sort_by" name="timepoint" column="1"/>
285 </options>
286 <sanitizer>
287 <valid initial="default">
288 <add preset="string.printable"/>
289 <add value="\t"/>
290 <remove value="&quot;"/>
291 <remove value="&apos;"/>
292 </valid>
293 </sanitizer>
294 </param>
295 </xml>
296 <xml name="timepoint">
297 <param name="timepoint" type="select" optional="false" multiple="true" label="Browse timepoint from metadata file (1 min.)">
298 <options from_dataset="metadata_path">
299 <column name="timepoint" index="2"/>
300 <column name="value" index="2"/>
301 <filter type="unique_value" name="timepoint" column="2"/>
302 <filter type="remove_value" value="timepoint"/>
303 <filter type="sort_by" name="timepoint" column="1"/>
304 </options>
305 <sanitizer>
306 <valid initial="default">
307 <add preset="string.printable"/>
308 <add value="\t"/>
309 <remove value="&quot;"/>
310 <remove value="&apos;"/>
311 </valid>
312 </sanitizer>
313 </param>
314 </xml>
315 <xml name="grouping">
316 <param name="grouping" type="select" optional="false" multiple="true" label="Browse group to compare">
317 <option value="condition" selected="true">condition</option>
318 <option value="timepoint" selected="true">timepoint</option>
319 </param>
320 </xml>
321 <xml name="correction_method">
322 <param name="correction_method" type="select" value="bonferroni" display="radio" label="Select multiple test correction to apply" help="Please enter at max 1 method">
323 <option value="bonferroni">bonferroni</option>
324 <option value="holm-sidak">holm-sidak</option>
325 <option value="holm">holm</option>
326 <option value="simes-hochberg">simes-hochberg</option>
327 <option value="hommel">hommel</option>
328 <option value="fdr_bh">fdr_bh</option>
329 <option value="fdr_by">fdr_by</option>
330 <option value="fdr_tsbh">fdr_tsbh</option>
331 <option value="fdr_tsbky">fdr_tsbky</option>
332 </param>
333 </xml>
334 <xml name="compartments_enrichment">
335 <param name="compartments" type="select" optional="false" multiple="true"
336 label="Browse compartments from metadata file (All needed). You have to load a metadata file prior to have access to compartments">
337 <options from_dataset="metadata_path">
338 <column name="compartment" index="4"/>
339 <column name="value" index="4"/>
340 <filter type="unique_value" name="compartment" column="4"/>
341 <filter type="remove_value" value="compartment"/>
342 </options>
343 <sanitizer>
344 <valid initial="default">
345 <add preset="string.printable"/>
346 <add value="\t"/>
347 <remove value="&quot;"/>
348 <remove value="&apos;"/>
349 </valid>
350 </sanitizer>
351 </param>
352 </xml>
353 <xml name="compartments_abundance">
354 <param name="compartments" type="select" optional="false" multiple="true"
355 label="Browse compartments from metadata file (All needed). You have to load a metadata file prior to have access to compartments">
356 <options from_dataset="metadata_path">
357 <column name="compartment" index="4"/>
358 <column name="value" index="4"/>
359 <filter type="unique_value" name="compartment" column="4"/>
360 <filter type="remove_value" value="compartment"/>
361 </options>
362 <sanitizer>
363 <valid initial="default">
364 <add preset="string.printable"/>
365 <add value="\t"/>
366 <remove value="&quot;"/>
367 <remove value="&apos;"/>
368 </valid>
369 </sanitizer>
370 </param>
371 </xml>
372 <xml name="compartments_metabologram">
373 <param name="compartments" type="select" optional="false" multiple="false"
374 label="Browse compartments from metadata file (1 max.). You have to load a metadata file prior to have access to compartments">
375 <options from_dataset="metadata_path">
376 <column name="compartment" index="4"/>
377 <column name="value" index="4"/>
378 <filter type="unique_value" name="compartment" column="4"/>
379 <filter type="remove_value" value="compartment"/>
380 </options>
381 <sanitizer>
382 <valid initial="default">
383 <add preset="string.printable"/>
384 <add value="\t"/>
385 <remove value="&quot;"/>
386 <remove value="&apos;"/>
387 </valid>
388 </sanitizer>
389 </param>
390 </xml>
391 <xml name="compartments">
392 <param name="compartments" type="select" optional="false" multiple="true"
393 label="Browse compartments from metadata file (1 min.). You have to load a metadata file prior to have access to compartments">
394 <options from_dataset="metadata_path">
395 <column name="compartment" index="4"/>
396 <column name="value" index="4"/>
397 <filter type="unique_value" name="compartment" column="4"/>
398 <filter type="remove_value" value="compartment"/>
399 </options>
400 <sanitizer>
401 <valid initial="default">
402 <add preset="string.printable"/>
403 <add value="\t"/>
404 <remove value="&quot;"/>
405 <remove value="&apos;"/>
406 </valid>
407 </sanitizer>
408 </param>
409 </xml>
410 <xml name="abundance_metabolites_list">
411 <param name="metabolites_list" type="select" optional="false" multiple="true"
412 label="Select Metabolite(s) for condition 1 to plot (1 min). You have to load a abundance file prior to have access to metabolite list">
413 <validator type="length" min="1" message="Please enter at max 2 compartments"/>
414 <options from_dataset="abundance_file">
415 <column name="metabolite_or_isotopologue" index="0"/>
416 <column name="value" index="0"/>
417 <filter type="unique_value" name="metabolite_or_isotopologue" column="0"/>
418 <filter type="remove_value" value="metabolite_or_isotopologue"/>
419 </options>
420 <sanitizer>
421 <valid initial="default">
422 <add preset="string.printable"/>
423 <add value="\t"/>
424 <remove value="&quot;"/>
425 <remove value="&apos;"/>
426 </valid>
427 </sanitizer>
428 </param>
429 </xml>
430 <xml name="enrichment_metabolites_list">
431 <param name="metabolites_list" type="select" optional="false" multiple="true"
432 label="Select Metabolite(s) for condition 1 to plot (1 Min.). You have to load a abundance file prior to have access to metabolite list">
433 <validator type="length" min="1" message="Please enter at min 1 metabolite"/>
434 <options from_dataset="me_or_frac_contrib_file">
435 <column name="ID" index="0"/>
436 <column name="value" index="0"/>
437 <filter type="unique_value" name="ID" column="0"/>
438 <filter type="remove_value" value="ID"/>
439 </options>
440 <sanitizer>
441 <valid initial="default">
442 <add preset="string.printable"/>
443 <add value="\t"/>
444 <remove value="&quot;"/>
445 <remove value="&apos;"/>
446 </valid>
447 </sanitizer>
448 </param>
449 </xml>
450 <xml name="isotopologue_metabolites_list">
451 <param name="metabolites_list" type="select" optional="false" multiple="true"
452 label="Select Metabolite(s) to plot (1 Min.). You have to load a abundance file prior to have access to metabolite list">
453 <validator type="length" min="1" message="Please enter at min 1 metabolite"/>
454 <options from_dataset="isotop_prop_file">
455 <column name="ID" index="0"/>
456 <column name="value" index="0"/>
457 <filter type="unique_value" name="ID" column="0"/>
458 <filter type="remove_value" value="ID"/>
459 </options>
460 <sanitizer>
461 <valid initial="default">
462 <add preset="string.printable"/>
463 <add value="\t"/>
464 <remove value="&quot;"/>
465 <remove value="&apos;"/>
466 </valid>
467 </sanitizer>
468 </param>
469 </xml>
470 <xml name="deg_list">
471 <repeat name="deg_list" title="Deregulated gene set" default="1" min="1">
472 <param name="input" type="data" format="tabular" label="Deregulated genes set"/>
473 <param name="idcol" type="data_column" data_ref="input" label="Column for id" use_header_names="true"/>
474 <param name="valuecol" type="data_column" data_ref="input" label="Column for values" use_header_names="true"/>
475 <param name="timepoint" type="select" optional="false" multiple="false" label="Browse timepoint from metadata file (1 min.)">
476 <options from_dataset="metadata_path">
477 <column name="timepoint" index="2"/>
478 <column name="value" index="2"/>
479 <filter type="unique_value" name="timepoint" column="2"/>
480 <filter type="remove_value" value="timepoint"/>
481 <filter type="sort_by" name="timepoint" column="1"/>
482 </options>
483 <sanitizer>
484 <valid initial="default">
485 <add preset="string.printable"/>
486 <add value="\t"/>
487 <remove value="&quot;"/>
488 <remove value="&apos;"/>
489 </valid>
490 </sanitizer>
491 </param>
492 <repeat name="factor_list" title="Conditions" default="2" min="2" max="2" help="Specify conditions to compare from metadata file (for each comparison, the last specified condition is the reference). You have to load a metadata file prior to have access to condition list">
493 <param name="condition" label="Condition" type="select" optional="false" multiple="false">
494 <options from_dataset="metadata_path">
495 <column name="condition" index="1"/>
496 <column name="value" index="1"/>
497 <filter type="unique_value" name="condition" column="condition"/>
498 <filter type="remove_value" value="condition"/>
499 </options>
500 <sanitizer>
501 <valid initial="default">
502 <add preset="string.printable"/>
503 <add value="\t"/>
504 <remove value="&quot;"/>
505 <remove value="&apos;"/>
506 </valid>
507 </sanitizer>
508 </param>
509 </repeat>
510
511 </repeat>
512 </xml>
513 <xml name="plot_abundance_factor_list">
514 <repeat name="plot_abundance_factor_list" title="Conditions" min="1" help="Specify conditions to compare from metadata file (1 min. only if two timepoints are set. 2 max.). You have to load a metadata file prior to have access to condition list">
515 <param name="condition" label="Condition" type="select" optional="false" multiple="false">
516 <options from_dataset="metadata_path">
517 <column name="condition" index="1"/>
518 <column name="value" index="1"/>
519 <filter type="unique_value" name="condition" column="condition"/>
520 <filter type="remove_value" value="condition"/>
521 </options>
522 <sanitizer>
523 <valid initial="default">
524 <add preset="string.printable"/>
525 <add value="\t"/>
526 <remove value="&quot;"/>
527 <remove value="&apos;"/>
528 </valid>
529 </sanitizer>
530 </param>
531 </repeat>
532 </xml>
533 <xml name="plot_factor_list">
534 <repeat name="plot_factor_list" title="Conditions" min="2" help="Specify conditions to compare from metadata file (1 min. only if two timepoints are set. 2 max.). You have to load a metadata file prior to have access to condition list">
535 <param name="condition" label="Condition" type="select" optional="false" multiple="false">
536 <options from_dataset="metadata_path">
537 <column name="condition" index="1"/>
538 <column name="value" index="1"/>
539 <filter type="unique_value" name="condition" column="condition"/>
540 <filter type="remove_value" value="condition"/>
541 </options>
542 <sanitizer>
543 <valid initial="default">
544 <add preset="string.printable"/>
545 <add value="\t"/>
546 <remove value="&quot;"/>
547 <remove value="&apos;"/>
548 </valid>
549 </sanitizer>
550 </param>
551 </repeat>
552 </xml>
553 <xml name="factor_list">
554 <repeat name="factor_list" title="Conditions" min="2" max="2" help="Specify conditions to be taken into account from metadata file (for each comparison, the last specified condition is the reference). You have to load a metadata file prior to have access to condition list">
555 <param name="condition" label="Condition" type="select" optional="false" multiple="false">
556 <options from_dataset="metadata_path">
557 <column name="condition" index="1"/>
558 <column name="value" index="1"/>
559 <filter type="unique_value" name="condition" column="condition"/>
560 <filter type="remove_value" value="condition"/>
561 </options>
562 <sanitizer>
563 <valid initial="default">
564 <add preset="string.printable"/>
565 <add value="\t"/>
566 <remove value="&quot;"/>
567 <remove value="&apos;"/>
568 </valid>
569 </sanitizer>
570 </param>
571 </repeat>
572 </xml>
573 <xml name="palette">
574 <param name="palette" type="select" value="pastel" display="radio" label="Select palette colormap to apply to abundance plot." help="For more information see https://seaborn.pydata.org/tutorial/color_palettes.html">
575 <option value="pastel" selected="true">pastel</option>
576 <option value="deep">deep</option>
577 <option value="muted">muted</option>
578 <option value="bright">bright</option>
579 <option value="dark">dark</option>
580 <option value="colorblind">colorblind</option>
581 </param>
582 </xml>
583 <token name="@INIT_PCA@"><![CDATA[
584 #import json
585 #import re
586
587 mkdir -p data &&
588
589 #if $metadata_path:
590 ln -s '$metadata_path' data/metadata.csv &&
591 #end if
592 #if $abundance_file:
593 ln -s '$abundance_file' data/abundance.csv &&
594 #end if
595 #if $me_or_frac_contrib_file:
596 ln -s '$me_or_frac_contrib_file' data/me_or_frac_contrib.csv &&
597 #end if
598
599 ]]></token>
600 <token name="@INIT_CONFIG@"><![CDATA[
601 mkdir -p 'config' &&
602 touch 'config/config.yaml' &&
603 ]]></token>
604 <token name="@REMOVE_CONFIG@"><![CDATA[
605 && rm -r 'config'
606 ]]></token>
607 <token name="@INIT_ABUNDANCE_PLOT@"><![CDATA[
608
609 mkdir -p data &&
610 #if $metadata_path:
611 ln -s '$metadata_path' data/metadata.csv &&
612 #end if
613 #if $abundance_file:
614 ln -s '$abundance_file' data/abundance.csv &&
615 #end if
616 #set $axisx = "condition"
617 #if str( $output_options.bar_color ) == "condition":
618 #set $axisx = "timepoint"
619 #end if
620
621 ]]></token>
622 <token name="@INIT_ENRICHMENT_PLOT@"><![CDATA[
623
624 mkdir -p data &&
625
626 #if $metadata_path:
627 ln -s '$metadata_path' data/metadata.csv &&
628 #end if
629 #if $me_or_frac_contrib_file:
630 ln -s '$me_or_frac_contrib_file' data/me_or_frac_contrib.csv &&
631 #end if
632 ]]></token>
633 <token name="@INIT_ISOTOPOLOGUE_PLOT@"><![CDATA[
634
635 mkdir -p data &&
636
637 #if $metadata_path:
638 ln -s '$metadata_path' data/metadata.csv &&
639 #end if
640 #if $isotop_prop_file:
641 ln -s '$isotop_prop_file' data/isotop_prop.csv &&
642 #end if
643 ]]></token>
644 <token name="@INIT_BI_ANALYSIS@"><![CDATA[
645
646 mkdir -p data &&
647
648 #if $metadata_path:
649 ln -s '$metadata_path' data/metadata.csv &&
650 #end if
651
652
653 #set conditions_MDV_comparison = {}
654 #set timepoints_MDV_comparison = {}
655 #set conditions_metabolite_time_profiles = {}
656
657 #if str( $stat_test ) == "pearson":
658 #silent $conditions_MDV_comparison['isotopologue_proportions']='pearson'
659 #silent $timepoints_MDV_comparison['isotopologue_proportions']='pearson'
660 #silent $conditions_metabolite_time_profiles['abundances']='pearson'
661 #silent $conditions_metabolite_time_profiles['mean_enrichment']='pearson'
662 #else
663 #silent $conditions_MDV_comparison['isotopologue_proportions']='spearman'
664 #silent $timepoints_MDV_comparison['isotopologue_proportions']='spearman'
665 #silent $conditions_metabolite_time_profiles['abundances']='spearman'
666 #silent $conditions_metabolite_time_profiles['mean_enrichment']='spearman'
667 #end if
668 #set $impute_values = {}
669 #if str( $data_input.data_input_selector ) == "abundance":
670 #if $data_input.abundance_file:
671 ln -s '$data_input.abundance_file' data/abundance.csv &&
672 #silent $impute_values['abundances']='min'
673 #end if
674 #elif str( $data_input.data_input_selector ) == "mean_enrichment":
675 #if $data_input.me_or_frac_contrib_file:
676 ln -s '$data_input.me_or_frac_contrib_file' data/me_or_frac_contrib.csv &&
677 #silent $impute_values['mean_enrichment']='min'
678 #end if
679 #elif str( $data_input.data_input_selector ) == "isotop_prop":
680 #if $data_input.isotop_prop_file:
681 ln -s '$data_input.isotop_prop_file' data/isotop_prop.csv &&
682 #silent $impute_values['isotopologue_proportions']='min'
683 #end if
684 #else
685 #if $data_input.isotop_abs_file:
686 ln -s '$data_input.isotop_abs_file' data/isotop_abs.csv &&
687 #silent $impute_values['isotopologues']='min'
688 #end if
689 #end if
690 ]]></token>
691 <token name="@INIT_DIFF_ANALYSIS@"><![CDATA[
692
693 mkdir -p data &&
694
695 #if $metadata_path:
696 ln -s '$metadata_path' data/metadata.csv &&
697 #end if
698
699 #set $impute_values = {}
700 #if str( $data_input.data_input_selector ) == "abundance":
701 #if $data_input.abundance_file:
702 ln -s '$data_input.abundance_file' data/abundance.csv &&
703 #silent $impute_values['abundances']='min'
704 #end if
705 #elif str( $data_input.data_input_selector ) == "mean_enrichment":
706 #if $data_input.me_or_frac_contrib_file:
707 ln -s '$data_input.me_or_frac_contrib_file' data/me_or_frac_contrib.csv &&
708 #silent $impute_values['mean_enrichment']='min'
709 #end if
710 #elif str( $data_input.data_input_selector ) == "isotop_prop":
711 #if $data_input.isotop_prop_file:
712 ln -s '$data_input.isotop_prop_file' data/isotop_prop.csv &&
713 #silent $impute_values['isotopologue_proportions']='min'
714 #end if
715 #else
716 #if $data_input.isotop_abs_file:
717 ln -s '$data_input.isotop_abs_file' data/isotop_abs.csv &&
718 #silent $impute_values['isotopologues']='min'
719 #end if
720 #end if
721 ]]></token>
722 <token name="@INIT_METABOLOGRAM@"><![CDATA[
723 #import json
724 #import re
725 #import os
726 #import csv
727 #import subprocess
728
729 mkdir -p data &&
730
731 #if $path_kegg_metabolites:
732 ln -s '$path_kegg_metabolites' data/pathways_kegg_metabolites.csv &&
733 #end if
734 #if $path_kegg_transcripts:
735 ln -s '$path_kegg_transcripts' data/pathways_kegg_transcripts.csv &&
736 #end if
737
738 #if $metadata_path:
739 ln -s '$metadata_path' data/metadata.csv &&
740 #end if
741
742 #set $impute_values = {}
743 #if str( $data_input.data_input_selector ) == "abundance":
744 #if $data_input.abundance_file:
745 ln -s '$data_input.abundance_file' data/abundance.csv &&
746 #silent $impute_values['abundances']='min'
747 #end if
748 #else:
749 #if $data_input.me_or_frac_contrib_file:
750 ln -s '$data_input.me_or_frac_contrib_file' data/me_or_frac_contrib.csv &&
751 #silent $impute_values['mean_enrichment']='min'
752 #end if
753 #end if
754
755 #for $i, $s in enumerate($deg_list)
756 #set $cpt = str($i+1)
757 ln -s '${s.input}' data/DEG_comparison'${cpt}'.csv &&
758 #end for
759
760
761 ]]></token>
762 <token name="@INIT_DIFF_MULTIGROUP_ANALYSIS@"><![CDATA[
763
764 mkdir -p data &&
765
766 #if $metadata_path:
767 ln -s '$metadata_path' data/metadata.csv &&
768 #end if
769
770 #set $impute_values = {}
771 #if str( $data_input.data_input_selector ) == "abundance":
772 #if $data_input.abundance_file:
773 ln -s '$data_input.abundance_file' data/abundance.csv &&
774 #silent $impute_values['abundances']='min'
775 #end if
776 #elif str( $data_input.data_input_selector ) == "mean_enrichment":
777 #if $data_input.me_or_frac_contrib_file:
778 ln -s '$data_input.me_or_frac_contrib_file' data/me_or_frac_contrib.csv &&
779 #silent $impute_values['mean_enrichment']='min'
780 #end if
781 #elif str( $data_input.data_input_selector ) == "isotop_prop":
782 #if $data_input.isotop_prop_file:
783 ln -s '$data_input.isotop_prop_file' data/isotop_prop.csv &&
784 #silent $impute_values['isotopologue_proportions']='min'
785 #end if
786 #else
787 #if $data_input.isotop_abs_file:
788 ln -s '$data_input.isotop_abs_file' data/isotop_abs.csv &&
789 #silent $impute_values['isotopologues']='min'
790 #end if
791 #end if
792 ]]></token>
793 <token name="@INIT_IMPUTE_VALUES@"><![CDATA[
794 #import re
795 #set $impute_values = {}
796 #if $abundance_file:
797 #silent $impute_values['abundances']='min'
798 #end if
799 #if $me_or_frac_contrib_file:
800 #silent $impute_values['mean_enrichment']='min'
801 #end if
802 ]]></token>
803 <token name="@INIT_DATATYPES@"><![CDATA[
804 #import re
805 #set $datatypes_avail = list()
806 #if str( $data_input.data_input_selector ) == "abundance":
807 #if $data_input.abundance_file:
808 $datatypes_avail.append(re.sub('"', '', "abundances"))
809 #end if
810 #elif str( $data_input.data_input_selector ) == "mean_enrichment":
811 #if $data_input.me_or_frac_contrib_file:
812 $datatypes_avail.append(re.sub('"', '', "mean_enrichment"))
813 #end if
814 #elif str( $data_input.data_input_selector ) == "isotop_prop":
815 #if $data_input.isotop_prop_file:
816 $datatypes_avail.append(re.sub('"', '', "isotopologue_proportions"))
817 #end if
818 #else
819 #if $data_input.isotop_abs_file:
820 $datatypes_avail.append(re.sub('"', '', "isotopologues"))
821 #end if
822 #end if
823 ]]></token>
824 <token name="@INIT_STAT_TEST@"><![CDATA[
825 #import re
826 #set $statistical_test = {}
827 #if str( $data_input.data_input_selector ) == "abundance":
828 #if $data_input.abundance_file:
829 #silent $statistical_test['abundances']=str($data_input.stat_test)
830 #end if
831 #elif str( $data_input.data_input_selector ) == "mean_enrichment":
832 #if $data_input.me_or_frac_contrib_file:
833 #silent $statistical_test['mean_enrichment']=str($data_input.stat_test)
834 #end if
835 #elif str( $data_input.data_input_selector ) == "isotop_prop":
836 #if $data_input.isotop_prop_file:
837 #silent $statistical_test['isotopologue_proportions']=str($data_input.stat_test)
838 #end if
839 #else
840 #if $data_input.isotop_abs_file:
841 #silent $statistical_test['isotopologues']=str($data_input.stat_test)
842 #end if
843 #end if
844 ]]></token>
845 <token name="@INIT_CONDITIONS@"><![CDATA[
846 #import re
847 #set $conds = list()
848 #for $co in $conditions:
849 $conds.append(re.sub('"', '', str($co)))
850 #end for
851 ]]></token>
852 <token name="@INIT_PLOT_CONDITIONS@"><![CDATA[
853 #set $conditions = list()
854 #for $i, $s in enumerate($plot_factor_list)
855 #set $cpt = str($i+1)
856 $conditions.append(re.sub('"', '', str($s.condition)))
857 #end for
858 ]]></token>
859 <token name="@INIT_ABUNDANCE_PLOT_CONDITIONS@"><![CDATA[
860 #set $conditions = list()
861 #for $i, $s in enumerate($plot_abundance_factor_list)
862 #set $cpt = str($i+1)
863 $conditions.append(re.sub('"', '', str($s.condition)))
864 #end for
865 ]]></token>
866 <token name="@INIT_TIMEPOINTS@"><![CDATA[
867
868 #import re
869 #set $timepoints = list()
870 #for $tp in $timepoint:
871 $timepoints.append(re.sub('"', '', str($tp)))
872 #end for
873 ]]></token>
874 <token name="@INIT_GROUPS@"><![CDATA[
875 #import re
876 #set $groups = list()
877 $groups.append(re.sub('"', '', str("condition")))
878 $groups.append(re.sub('"', '', str("timepoint")))
879
880 ]]></token>
881 <token name="@INIT_ENRICHMENT_METABOLITES@"><![CDATA[
882 #import json
883 #import re
884 #set $metabolites = {}
885 #for $cp in $compartments:
886 #silent $metabolites[re.sub('"', '', str($cp))]=list()
887 #for $met in $metabolites_list:
888 #set tmp_met=re.sub('\,', '%%',str($met))
889 #set tmp_met_bis=str(re.split('_m', str($tmp_met))[0])
890 #set tmp_met_ter=re.sub('%%', '\,',str($tmp_met_bis))
891 $metabolites[re.sub('"', '', str($cp))].append(re.sub('"', '\'', str(tmp_met_ter)))
892 #end for
893 #end for
894 ]]></token>
895 <token name="@INIT_ISOTOPOLOGUE_METABOLITES@"><![CDATA[
896 #set $metabolites = {}
897 #for $cp in $compartments:
898 #silent $metabolites[re.sub('"', '', str($cp))]=list()
899 #for $met in $metabolites_list:
900 #set tmp_met=re.sub('\,', '--',str($met))
901 #set tmp_met_bis=str(re.split('_m', str($tmp_met))[0])
902 #set tmp_met_ter=re.sub('--', '\,',str($tmp_met_bis))
903 $metabolites[re.sub('"', '', str($cp))].append(re.sub('"', '\'', str(tmp_met_ter)))
904 #end for
905 #end for
906 ]]></token>
907 <token name="@INIT_MULTIGROUP_COMPARISONS@"><![CDATA[
908 #set $comparisons = list()
909 #for $tp in $timepoint:
910 #set $ctrl_found=False
911 #set $ctrl=""
912
913 #for $co in $conditions:
914 #set $sub_comparisons = list()
915 #if str($co) in ["Control", "control","ctrl"]:
916 #set $ctrl_found=True
917 #set $ctrl=str($co)
918 $sub_comparisons.append(re.sub('"', '', str($co)))
919 $sub_comparisons.append(re.sub('"', '', str($tp)))
920 #else:
921 $sub_comparisons.append(re.sub('"', '', str($co)))
922 $sub_comparisons.append(re.sub('"', '', str($tp)))
923
924 #end if
925 $comparisons.append($sub_comparisons)
926 #end for
927 #end for
928 ]]></token>
929 <token name="@INIT_CONDITIONS_TIMECOURSE@"><![CDATA[
930 #import re
931 #set $conditions = list()
932 #for $i, $s in enumerate($factor_list)
933 #set $cpt = str($i+1)
934 $conditions.append(re.sub('"', '', str($s.condition)))
935 #end for
936
937 ]]></token>
938 <token name="@INIT_BIVAR_COMPARISONS@"><![CDATA[
939 #import re
940 #set $conditions = list()
941 #for $i, $s in enumerate($plot_factor_list)
942 #set $cpt = str($i+1)
943 $conditions.append(re.sub('"', '', str($s.condition)))
944 #end for
945 ]]></token>
946 <token name="@INIT_COMPARISONS_METABOLOGRAM@"><![CDATA[
947 #import re
948 #set $conditions = list()
949 #set $timepoints = list()
950 #set $comparisons = list()
951 #for $i, $s in enumerate($deg_list)
952 #set $cpt = str($i+1)
953 #set $comparisons_bis = list()
954 #for $j, $t in enumerate($s.factor_list)
955 #set $sub_comparisons = list()
956 #if str($t.condition) not in $conditions:
957 $conditions.append(re.sub('"', '', str($t.condition)))
958 #end if
959 $sub_comparisons.append(re.sub('"', '', str($t.condition)))
960 $sub_comparisons.append(re.sub('"', '', str($s.timepoint)))
961 $comparisons_bis.append($sub_comparisons)
962 #end for
963 $timepoints.append(re.sub('"', '', str($s.timepoint)))
964 $comparisons.append($comparisons_bis)
965 #end for
966
967
968
969 ]]></token>
970 <token name="@INIT_COMPARISONS@"><![CDATA[
971 #import re
972 #set $conds = list()
973 #for $co in $conditions:
974 $conds.append(re.sub('"', '', str($co)))
975 #end for
976 #set $timepoints = list()
977 #for $tp in $timepoint:
978 $timepoints.append(re.sub('"', '', str($tp)))
979 #end for
980
981 #set $comparisons = list()
982 #if len($conds) > 1:
983 #if len($timepoints) > 0:
984 #for $tp in $timepoint:
985 #set $ctrl_found=False
986 #set $ctrl=""
987 #set $comparisons_bis = list()
988 #for $co in $conditions:
989 #set $sub_comparisons = list()
990 #if str($co) in ["'Control'", "'control'", "'ctrl'"]:
991 #set $ctrl_found=True
992 #set $ctrl=str($co)
993 #else:
994 $sub_comparisons.append(re.sub('"', '', str($co)))
995 $sub_comparisons.append(re.sub('"', '', str($tp)))
996
997 #end if
998 $comparisons_bis.append($sub_comparisons)
999 #end for
1000
1001 #if $ctrl_found:
1002 $sub_comparisons.append(str($ctrl))
1003 $sub_comparisons.append(str($tp))
1004 $comparisons_bis.append($sub_comparisons)
1005 #end if
1006
1007 $comparisons.append($comparisons_bis)
1008 #end for
1009 #else
1010 #for $co in $conditions:
1011 $comparisons.append(re.sub('"', '', str($co)))
1012 #end for
1013 #end if
1014
1015 #else
1016 #if len($conds) > 0:
1017 #if len($timepoints) > 1:
1018 #for $co in $conditions:
1019 #set $comparisons_bis = list()
1020 #for $tp in $timepoint:
1021 #set $sub_comparisons = list()
1022 $sub_comparisons.append(re.sub('"', '', str($co)))
1023 $sub_comparisons.append(re.sub('"', '', str($tp)))
1024 $comparisons_bis.append($sub_comparisons)
1025 #end for
1026 $comparisons.append($comparisons_bis)
1027 #end for
1028 #end if
1029 #else
1030 #for $tp in $timepoint:
1031 $comparisons.append(re.sub('"', '', str($tp)))
1032 #end for
1033 #end if
1034 #end if
1035 ]]></token>
1036 <token name="@INIT_DIFF_ANALYSIS_COMPARISONS@"><![CDATA[
1037 #import re
1038 #set $conditions = list()
1039 #for $i, $s in enumerate($factor_list)
1040 #set $cpt = str($i+1)
1041 $conditions.append(re.sub('"', '', str($s.condition)))
1042 #end for
1043
1044 #set $timepoints = list()
1045 #for $tp in $timepoint:
1046 $timepoints.append(re.sub('"', '', str($tp)))
1047 #end for
1048
1049 #set $comparisons = list()
1050 #if len($conditions) > 1:
1051 #if len($timepoints) > 0:
1052 #for $tp in $timepoint:
1053 #set $ctrl_found=False
1054 #set $ctrl=""
1055 #set $comparisons_bis = list()
1056
1057 #for $co in $conditions:
1058 #set $sub_comparisons = list()
1059 #if str($co) in ["'Control'", "'control'", "'ctrl'"]:
1060 #set $ctrl_found=True
1061 #set $ctrl=str($co)
1062 #else:
1063 $sub_comparisons.append(re.sub('"', '', str($co)))
1064 $sub_comparisons.append(re.sub('"', '', str($tp)))
1065
1066 #end if
1067 $comparisons_bis.append($sub_comparisons)
1068 #end for
1069
1070 #if $ctrl_found:
1071 $sub_comparisons.append(str($ctrl))
1072 $sub_comparisons.append(str($tp))
1073 $comparisons_bis.append($sub_comparisons)
1074 #end if
1075
1076 $comparisons.append($comparisons_bis)
1077 #end for
1078 #else
1079 #for $co in $conditions:
1080 $comparisons.append(re.sub('"', '', str($co)))
1081 #end for
1082 #end if
1083
1084 #else
1085 #if len($conditions) > 0:
1086 #if len($timepoints) > 1:
1087 #for $co in $conditions:
1088 #set $comparisons_bis = list()
1089 #for $tp in $timepoint:
1090 #set $sub_comparisons = list()
1091 $sub_comparisons.append(re.sub('"', '', str($co)))
1092 $sub_comparisons.append(re.sub('"', '', str($tp)))
1093 $comparisons_bis.append($sub_comparisons)
1094 #end for
1095 $comparisons.append($comparisons_bis)
1096 #end for
1097 #end if
1098 #else
1099 #for $tp in $timepoint:
1100 $comparisons.append(re.sub('"', '', str($tp)))
1101 #end for
1102 #end if
1103 #end if
1104 ]]></token>
1105 <token name="@INIT_TRANSCRIPTS@"><![CDATA[
1106 #import re
1107 #import os
1108 #import subprocess
1109 #set $transcripts = list()
1110
1111 #for $i, $s in enumerate($deg_list)
1112 #set $cpt = str($i+1)
1113 $transcripts.append(re.sub('"', '', "DEG_comparison"+str($i+1)))
1114 #set $deg_one_values = os.fsdecode(subprocess.check_output('head -n1 ' + str($s.input) + '| cut -f' + str($s.valuecol), shell=True))
1115 #set $deg_one_id = os.fsdecode(subprocess.check_output('head -n1 ' + str($s.input) + '| cut -f' + str($s.idcol), shell=True))
1116 #end for
1117 ]]></token>
1118 <token name="@INIT_PATHWAYS@"><![CDATA[
1119 #set $pathways = {}
1120 #if $path_kegg_metabolites:
1121 #silent $pathways['metabolites']='pathways_kegg_metabolites'
1122 #end if
1123 #if $path_kegg_transcripts:
1124 #silent $pathways['transcripts']='pathways_kegg_transcripts'
1125 #end if
1126 ]]></token>
1127 </macros>