comparison ipapy2_compute_all_adducts.xml @ 0:f85a6d4e44b0 draft default tip

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ipapy2 commit 64b61ff2823b4f54868c0ab7a4c0dc49eaf2979a
author recetox
date Fri, 16 May 2025 08:01:31 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f85a6d4e44b0
1 <tool id="ipapy2_compute_all_adducts" name="ipaPy2 compute all adducts" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@">
2 <description>compute the compound database with adducts</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6
7 <expand macro="requirements"/>
8
9 <command detect_errors="exit_code"><![CDATA[
10 python3 '${__tool_directory__}/ipapy2_compute_all_adducts.py'
11 --input_dataset_adduct '${adducts_data}' '${adducts_data.ext}'
12 --input_dataset_database ${MS1_DB} ${MS1_DB.ext}
13 --ionisation ${ionisation}
14 --output_dataset '${all_adducts}' '${all_adducts.ext}'
15 --ncores \${GALAXY_SLOTS:-1}
16 ]]></command>
17 <inputs>
18 <param label="Adducts data" name="adducts_data" type="data" format="csv,tsv,tabular,parquet" help="A csv,tsv,tabular or parquet file containing information on all possible adducts."/>
19 <param label="MS database" name="MS1_DB" type="data" format="csv,tsv,tabular,parquet" help="A csv,tsv,tabular or parquet file containing the MS1 database."/>
20 <expand macro="ionisation"/>
21 </inputs>
22
23 <outputs>
24 <data label="${tool.name} on ${on_string}" name="all_adducts" format_source="adducts_data"/>
25 </outputs>
26
27 <tests>
28 <test>
29 <param name="adducts_data" value="adducts.csv"/>
30 <param name="MS1_DB" value="MS1_DB.csv"/>
31 <param name="ionisation" value="1"/>
32 <output name="all_adducts" file="all_adducts.csv"/>
33 </test>
34 </tests>
35
36 <help><![CDATA[
37
38 .. _ipapy2_compute_all_adducts:
39
40 =========================================
41 ipaPy2 Compute All Adducts Tool
42 =========================================
43
44 **Tool Description**
45
46 This tool calculates all possible combinations of adducts and compounds given the adduct and compound (MS1) databases. The resulting table is essential for downstream annotation steps in the ipaPy2 workflow.
47
48 It is recommended to avoid repeating this step unless necessary—reuse a previously calculated adducts database whenever possible. If you need to compute a new adducts database, include only the adducts you expect in your data (e.g., only the relevant ionization mode, multimers, or adducts based on your mobile phase).
49
50 Inputs
51 ------
52
53 1. **Adducts data**
54 A file (CSV, TSV, Tabular, or Parquet) containing information on all possible adducts.
55
56 2. **MS database**
57 A file (CSV, TSV, Tabular, or Parquet) containing the MS1 compound database.
58
59 3. **Ionisation mode**
60 Specify the ionisation mode relevant for your experiment.
61
62 Outputs
63 -------
64
65 - **all_adducts**
66 A table containing all possible adduct-compound combinations, suitable for use in downstream annotation tools.
67
68 Example of `adducts.csv` file
69 -----------------------------
70
71 .. list-table:: Example adducts.csv
72 :header-rows: 1
73
74 * - name
75 - calc
76 - Charge
77 - Mult
78 - Mass
79 - Ion_mode
80 - Formula_add
81 - Formula_ded
82 - Multi
83 * - [M+H]+
84 - 1.0073
85 - 1
86 - 1
87 - 1.0073
88 - positive
89 - H
90 - FALSE
91 - 1
92 * - [M+Na]+
93 - 22.9892
94 - 1
95 - 1
96 - 22.9892
97 - positive
98 - Na
99 - FALSE
100 - 1
101 * - [M+K]+
102 - 38.9632
103 - 1
104 - 1
105 - 38.9632
106 - positive
107 - K
108 - FALSE
109 - 1
110
111 Notes
112 -----
113
114 - Only include adducts relevant to your experiment to reduce database size and improve annotation accuracy.
115 - The tool supports multiple file formats for flexibility.
116
117 References
118 ----------
119
120 - For more details on adduct computation and usage in metabolomics annotation, refer to the ipaPy2 documentation or associated publications.
121
122 ]]></help>
123
124 <expand macro="citations"/>
125 </tool>