comparison HR2.xml @ 0:86296c048e46 draft

Init repository for [hr2]
author fgiacomoni
date Wed, 05 Jun 2019 09:40:20 -0400
parents
children e2cbcf6fa22e
comparison
equal deleted inserted replaced
-1:000000000000 0:86296c048e46
1 <tool id="hr2" name="HR2 formula" version="1.1.1.7">
2 <description>
3 find a chemical formula from a accurate mass
4 </description>
5 <requirements>
6 <requirement type="package" version="2.161">perl-data-dumper</requirement>
7 <requirement type="package" version="1.97">perl-text-csv</requirement>
8 <requirement type="package" version="2.97">perl-html-template</requirement>
9 <requirement type="package" version="1.04">hr2</requirement>
10 </requirements>
11 <stdio>
12 <exit_code range="1" level="fatal" />
13 </stdio>
14
15
16 <command><![CDATA[
17 perl $__tool_directory__/hr2_manager.pl
18 #if str($input_type.choice) == "YES":
19 -input "${input_type.input}"
20 #if str($input_type.header.header_choice) == "yes":
21 -nblineheader "${$input_type.header.nbHeader}"
22 #end if
23 -colId "${input_type.colId}" -colmass "${input_type.colmass}"
24 #else:
25 -masse "${input_type.masse}"
26 #end if
27
28 -tolerance "$tol"
29 -mode "${mode_condition.mode}"
30 #if str($mode_condition.mode) == "neutral":
31 -charge "0"
32 #else:
33 -charge "${mode_condition.qtCharge}"
34 #end if
35
36 -regleOr "$regleOr" -atomes "$atomes_basic" -atomessup "$atomes_sup"
37 -output1 "$variableMetadata" -outputView "$hr2ResView"
38 -verbose "$verbose"
39 ]]></command>
40
41 <inputs>
42 <conditional name="input_type">
43 <param name="choice" type="select" display="radio" label="Would you use a file " help="if 'NO' is selected then one or more mass(es) must be entered manually">
44 <option value="YES">YES</option>
45 <option value="NO">NO</option>
46 </param>
47 <when value="YES">
48 <param name="input" label="File of masses" format="tabular" type="data" />
49 <conditional name="header">
50 <param name="header_choice" type="boolean" checked="true" truevalue="yes" falsevalue="no" label="Do you have a header?" help="if 'YES' is selected then enter your number of header lines" />
51 <when value="yes">
52 <param name="nbHeader" label="Number of header lines" type="integer" value="1" min="1" size="10" help="number of lines not containing masses"/>
53 </when>
54 <when value="no"/>
55 </conditional>
56 <param name="colId" label="Column of Id" type="data_column" data_ref="input" accept_default="true" />
57 <param name="colmass" label="Column of masses (MZ)" type="data_column" data_ref="input" accept_default="true" />
58 </when>
59 <when value="NO">
60 <param name="masse" size="20" type="text" label="Mass (MZ) to submit" help="For a masses list, writes : m1 m2 m3. Your values ​​must be separated by spaces. You should use dot (.) like decimal separator"/>
61 </when>
62 </conditional>
63
64 <param name="tol" label="Delta of mass (MZ) (in mmu)" type="float" value="1.0" min="0" max="9.0" help="Tolerance should be between 0 and 9.0 mmu. Default value is 1.0 mmu"/>
65 <conditional name="mode_condition">
66 <param name="mode" label="Molecular Species Searched" type="select" display="radio" help="Or ionization type of the molecule list. Use neutral only if only if the masses correspond to molecules and not to ions : query doesn't be a [M+H] or [M-H] ion">
67 <option value="positive">positive</option>
68 <option value="negative">negative</option>
69 <option value="neutral" selected="true">neutral</option>
70 </param>
71 <when value="neutral"/>
72 <when value="positive">
73 <param name="qtCharge" label="Molecule initial charge" type="select" help="Use 'neutral' if the molecule is not charged">
74 <option value="1">1</option>
75 <option value="2">2</option>
76 <option value="3">3</option>
77 </param>
78 </when>
79 <when value="negative">
80 <param name="qtCharge" label="Molecule initial charge" type="select" help="Use 'neutral' if the molecule is not charged">
81 <option value="1">1</option>
82 <option value="2">2</option>
83 <option value="3">3</option>
84 </param>
85 </when>
86 </conditional>
87 <param name="atomes_basic" label="Please unselect basic atom(s) from following list you want to exclude" type="select" display="checkboxes" multiple="True" help="Unselect one or more basic atoms to exclude them from the generated formula proposition">
88 <option value="C" selected="true">C</option>
89 <option value="N" selected="true">N</option>
90 <option value="O" selected="true">O</option>
91 <option value="H" selected="true">H</option>
92 <option value="P" selected="true">P</option>
93 </param>
94 <param name="regleOr" label="Use all 7 golden rules OR only the first 3 golden rules?" type="select" display="radio" help="Use 'only first 3 rules' if you want more empirical formulas">
95 <option value="YES">only first 3 rules</option>
96 <option value="NO" selected="true">all 7 rules</option>
97 </param>
98 <param name="atomes_sup" label="Add some atom(s) from following list if needed" type="select" display="checkboxes" multiple="True" help="C, H, N, O and P are available in basic atom section">
99 <option value="S">S</option>
100 <option value="F">F</option>
101 <option value="L">Cl</option>
102 <option value="K">K</option>
103 <option value="B">Br</option>
104 <option value="A">Na</option>
105 <option value="1">13C</option>
106 </param>
107 <param name="verbose" type="select" label="Verbose level" display="radio" help="">
108 <option value="1" selected="true">Low</option>
109 <option value="3" >High</option>
110 </param>
111 </inputs>
112 <outputs>
113 <data name="variableMetadata" format="tabular" label="${tool.name}_TSV"/>
114 <data name="hr2ResView" format="html" label="${tool.name}_VIEW"/>
115 </outputs>
116
117 <tests>
118 <test>
119 <param name="choice" value="NO"/>
120 <param name="masse" value="175.125"/>
121 <param name="tolerance" value="1.0"/>
122 <param name="mode" value="negative"/>
123 <param name="qtCharge" value="1"/>
124 <param name="atomes_basic" value="C,O,N,H"/>
125 <param name="regleOr" value="NO"/>
126 <param name="verbose" value="3"/>
127 <output name="variableMetadata" file="out_test01.tabular"/>
128 <output name="hr2ResView" file="out_test01.html"/>
129 </test>
130 <test>
131 <param name="choice" value="NO"/>
132 <param name="masse" value="88.052"/>
133 <param name="tolerance" value="1.0"/>
134 <param name="mode" value="neutral"/>
135 <param name="qtCharge" value="1"/>
136 <param name="atomes_basic" value="C,O,H"/>
137 <param name="regleOr" value="NO"/>
138 <param name="verbose" value="3"/>
139 <output name="variableMetadata" file="out_test02.tabular"/>
140 <output name="hr2ResView" file="out_test02.html"/>
141 </test>
142 </tests>
143
144 <help><![CDATA[
145
146 .. class:: infomark
147
148 **Authors**
149 | HR2 original program and its documentation are Copyright (c) 1992-2005 by Joerg Hau under GNU General Public License ("GPL")
150
151 .. class:: infomark
152
153 **Wrapping**
154 | Marion Landi - FLAME ; PFEM ; INRA ; MetaboHUB (for xml interface and Perl wrapper)
155 | Franck Giacomoni - PFEM ; INRA ; MetaboHUB (for xml interface, conda dependancies and Perl wrapper)
156
157 ---------------------------------------------------
158
159 .. class:: infomark
160
161 **Please cite** If you use this tool, please cite
162 | Tobias Kind and Oliver Fiehn. (2007). "Seven Golden Rules for heuristic filtering of molecular formulas obtained by accurate mass spectrometry." BMC Bioinformatics p8:105 http://www.ncbi.nlm.nih.gov/pubmed/17389044
163 | HR2 original program and its documentation are under GNU General Public License ("GPL") : GPL is a"contaminating" license. http://fiehnlab.ucdavis.edu/projects/Seven_Golden_Rules/Software
164
165
166 ---------------------------------------------------
167
168 ==============
169 HR2 formula
170 ==============
171
172 -----------
173 Description
174 -----------
175
176 | Find a formula for the masses
177 | only molecules with carbon (C) will be search
178
179
180 -----------------
181 Workflow position
182 -----------------
183
184
185 .. image:: ./static/images/metabolomics/hr2.png
186 :width: 800
187
188
189
190
191 -----------
192 Input files
193 -----------
194
195 +-------------------------+-----------+
196 | Parameter : num + label | Format |
197 +=========================+===========+
198 | 1 : variableMetadata | tabular |
199 +-------------------------+-----------+
200
201 File variableMetadata must have at least the 2 following columns :
202 * Id : column to identify masses in the csv/tsv input file
203 * Masses : column with all the masses in the csv/tsv input file
204
205
206 ----------
207 Parameters
208 ----------
209
210 Would you use a file
211 | Choose whether the masses are in a file or entered manually
212 | YES (default) : parameters **File of masses ; Column of Id ; Number of header ; Column of masses** are visible
213 | NO : parameter **Mass of the molecule** is visible
214 |
215
216
217 If 'use file'='YES'
218
219 Column of Id
220 | Specify the column number for the id in the csv/tsv input file
221 |
222
223 Number of header lines
224 | Number of lines not containing values
225 |
226
227 Column of masses
228 | Specify the column number for the mass in the csv/tsv input file
229 |
230
231 If 'use file'='NO'
232
233 Mass (MZ) to submit
234 | Specify a list of mass to request
235 | one or more mass(es) entered manually
236 | For a masses list, writes : m1 m2 m3
237 | You must separate yours values with space
238 | dot (.) is for float number
239 |
240
241 In all cases :
242
243 Delta
244 | Tolerance of the gap in the mass
245 | It should be between 0 and 9.0 mmu
246
247 Ionization
248 | Type of ionization of the molecule : *positif, negatif, neutral*
249 | Use neutral if query doesn't be a [M+H] or [M-H] ion
250 | HR2 knows only the weight of uncharged molecules
251 | so we made ​​a correction to the masses of the value of a proton before the search
252 | if the masses are those from a spectrometry in positive or negatif mode.
253 | **neutral** : will do a search on the mass unchanged.
254
255 Initial charge
256 | Use 0 if the molecule is not basically charged
257
258 Exclude some basic atom(s)
259 List of atoms that can be exclude to the molecule : *C, N, O, H, P*
260
261 Golden rules
262 | There are 7 golden rules
263 | Some are too stringent, especially for small molecules
264 | Use 'yes' if you want more empirical formulas
265
266 Add some optionnal atom(s)
267 List of atoms that can be searched in addition to the molecule : *S, F, Cl, K, Br, Na, 13C*
268
269 ------------
270 Output files
271 ------------
272
273 Two types of files
274 | hr2_VIEW.HTML : for viewing result via HTML.
275 | hr2_TSV.tabular : for linking with others modules.
276 | an excel-like output will be available.
277
278 ---------------------------------------------------
279
280
281 ---------------
282 Working example
283 ---------------
284
285
286 .. class:: warningmark
287
288 Refer to the corresponding "W4M HowTo" in http://workflow4metabolomics.org/howto section
289 | Format Data For Postprocessing
290 | Perform LCMS Annotations
291
292 .. class:: warningmark
293
294 And their "W4M courses 2018":
295 | Using Galaxy4Metabolomics - W4M table format for Galaxy
296 | Les banques d'annotation - Annotation
297
298 ]]></help>
299 <citations>
300 <citation type="doi">10.1186/1471-2105-8-105</citation>
301 </citations>
302 </tool>
303