1
|
1 <tool id="msconvert3" name="msconvert3" version="0.2.0">
|
0
|
2 <!-- BEGIN_VERSION_DEFAULT -->
|
|
3 <description>Convert and filter a mass spec peak list</description>
|
|
4 <!-- END_VERSION_DEFAULT -->
|
|
5
|
|
6 <command interpreter="python">
|
3
|
7 #set $ext = $input.ext
|
|
8 #if $ext.startswith("m:")
|
|
9 #set $ext = $ext[len("m:"):]
|
|
10 #end if
|
0
|
11 msconvert_wrapper.py
|
|
12 --input=${input}
|
|
13 #if hasattr($input, 'display_name')
|
|
14 --input_name='${input.display_name}'
|
|
15 #end if
|
|
16 --output=${output}
|
|
17 ## BEGIN_VERSION_DEFAULT
|
3
|
18 --fromextension=$ext
|
0
|
19 ## END_VERSION_DEFAULT
|
|
20
|
|
21
|
|
22 --toextension=${output_type}
|
|
23
|
|
24 #if $settings.settingsType == "full"
|
|
25 --binaryencoding=${settings.binary_encoding}
|
|
26 --mzencoding=${settings.mz_encoding}
|
|
27 --intensityencoding=${settings.intensity_encoding}
|
|
28 --zlib=${settings.zlib}
|
|
29 #end if
|
|
30
|
|
31 #if $filtering.filtering_use
|
|
32
|
|
33 #if $filtering.precursor_recalculation.value
|
|
34 --filter "precursorRecalculation"
|
|
35 #end if
|
|
36
|
|
37 #if $filtering.peak_picking.pick_peaks
|
|
38 --filter "peakPicking $filtering.peak_picking.prefer_vendor_peaks $filtering.peak_picking.ms_levels"
|
|
39 #end if
|
|
40
|
|
41 #if str($filtering.activation) != "false"
|
|
42 --filter "activation $filtering.activation"
|
|
43 #end if
|
|
44
|
|
45 #if len($filtering.indices) > 0
|
|
46 --filter "index
|
|
47 #for $index in $filtering.indices
|
|
48 [${index.from},${index.to}]
|
|
49 #end for
|
|
50 "
|
|
51 #end if
|
|
52
|
|
53 #if len($filtering.scan_numbers) > 0
|
|
54 --filter "scanNumber
|
|
55 #for $scan_number in $filtering.scan_numbers
|
|
56 [${scan_number.from},${scan_number.to}]
|
|
57 #end for
|
|
58 "
|
|
59 #end if
|
|
60
|
|
61 #for threshold_entry in $filtering.threshold_repeat
|
|
62 --filter "threshold $threshold_entry.threshold.threshold_type $threshold_entry.threshold.value $threshold_entry.orientation"
|
|
63 #end for
|
|
64
|
|
65
|
|
66 #if $filtering.strip_it.value
|
|
67 --filter "stripIT"
|
|
68 #end if
|
|
69
|
|
70 #if $filtering.filter_mz_windows.do_filter
|
|
71 --filter "mzWindow [$filtering.filter_mz_windows.from,$filtering.filter_mz_windows.to]"
|
|
72 #end if
|
|
73
|
|
74
|
|
75 #if $filtering.filter_ms_levels.do_filter
|
|
76 --filter "msLevel [$filtering.filter_ms_levels.from, $filtering.filter_ms_levels.to]"
|
|
77 #end if
|
|
78
|
|
79 #if str($filtering.etd_filtering.do_etd_filtering) == "default"
|
|
80 --filter "ETDFilter"
|
|
81 #end if
|
|
82
|
|
83 #if str($filtering.etd_filtering.do_etd_filtering) == "advanced"
|
|
84 --filter "ETDFilter removePrecursor:$filtering.etd_filtering.remove_precursor removeChargeReduced:$filtering.etd_filtering.remove_charge_reduced removeNeutralLoss:$filtering.etd_filtering.remove_neutral_loss blanketRemoval:$filtering.etd_filtering.blanket_removal MatchingTolerance:$filtering.etd_filtering.matching_tolerance $filtering.etd_filtering.matching_tolerance_units"
|
|
85 #end if
|
|
86
|
|
87 ## BEGIN_VERSION_3
|
|
88
|
|
89 #if $filtering.precursor_refine.value
|
|
90 --filter "precursorRefine"
|
|
91 #end if
|
|
92
|
|
93 #if $filtering.ms2denoise.denoise
|
|
94 --filter "MS2Denoise $filtering.ms2denoise.num_peaks $filtering.ms2denoise.window_width $filtering.ms2denoise.relax"
|
|
95 #end if
|
|
96
|
|
97 #if str($filtering.ms2deisotope) == "true"
|
|
98 --filter "MS2Deisotope"
|
|
99 #end if
|
|
100
|
|
101 #if str($filtering.polarity) != "false"
|
|
102 --filter "polarity $filtering.polarity"
|
|
103 #end if
|
|
104
|
|
105 #if str($filtering.analyzer) != "false"
|
|
106 --filter "analyzer $filtering.analyzer"
|
|
107 #end if
|
|
108
|
|
109 ## END_VERSION_3
|
|
110
|
|
111 #end if
|
|
112
|
|
113 </command>
|
|
114
|
|
115 <inputs>
|
|
116
|
|
117 <!-- BEGIN_VERSION_DEFAULT -->
|
|
118 <conditional name="type">
|
|
119 <param name="input_type" type="select" label="Input Type">
|
|
120 <option value="mzml">mzML</option>
|
|
121 <option value="mzxml">mzXML</option>
|
|
122 <option value="mgf">mgf</option>
|
|
123 <option value="ms2">ms2</option>
|
|
124 </param>
|
|
125 <when value="mzml">
|
|
126 <param format="mzml" name="input" type="data" label="Input mzML"/>
|
|
127 </when>
|
|
128 <when value="mzxml">
|
|
129 <param format="mzxml" name="input" type="data" label="Input mzXML"/>
|
|
130 </when>
|
|
131 <when value="mgf">
|
|
132 <param format="mgf" name="input" type="data" label="Input mgf"/>
|
|
133 </when>
|
|
134 <when value="ms2">
|
|
135 <param format="ms2" name="input" type="data" label="Input ms2"/>
|
|
136 </when>
|
|
137 </conditional>
|
|
138 <!-- END_VERSION_DEFAULT -->
|
|
139 <param name="output_type" type="select" label="Output Type">
|
|
140 <option value="mzML">mzML (indexed)</option>
|
|
141 <option value="unindexed_mzML">mzML (unindexed)</option>
|
|
142 <option value="mzXML">mzXML (indexed)</option>
|
|
143 <option value="unindexed_mzXML">mzXML (unindexed)</option>
|
|
144 <option value="mgf">mgf</option>
|
|
145 <option value="ms2">ms2</option>
|
|
146 </param>
|
|
147 <conditional name="filtering">
|
|
148 <param name="filtering_use" type="boolean" label="Use Filtering?" help="" truevalue="true" falsevalue="false" />
|
|
149 <when value="false" />
|
|
150 <when value="true">
|
|
151 <param type="boolean" name="precursor_recalculation" label="Recalculate Precursor?" />
|
|
152 <!-- BEGIN_VERSION_3 -->
|
|
153 <param type="boolean" name="precursor_refine" label="Refine Precursor?" />
|
|
154 <!-- END_VERSION_3 -->
|
|
155
|
|
156
|
|
157 <conditional name="peak_picking">
|
|
158 <param type="boolean" name="pick_peaks" label="Use Peak Picking?" truevalue="true" falsevalue="false" />
|
|
159 <when value="false" />
|
|
160 <when value="true">
|
|
161 <param name="ms_levels" type="select" label="Peak Peaking - Apply to MS Levels">
|
|
162 <option value="1">MS1 Only (1)</option>
|
|
163 <option value="2">MS2 Only (2)</option>
|
|
164 <option value="2-">MS2 and on (2-)</option>
|
|
165 <option value="1-">All Levels (1-)</option>
|
|
166 </param>
|
|
167 <param type="boolean" name="prefer_vendor_peaks" label="Peak Picking - Prefer Vendor Peaks?" truevalue="true" falsevalue="false" checked="true"/>
|
|
168 </when>
|
|
169 </conditional>
|
|
170
|
|
171 <repeat name="threshold_repeat" title="Filter by Threshold">
|
|
172 <conditional name="threshold">
|
|
173 <param type="select" label="Specify threshold on" name="threshold_type" help="">
|
|
174 <option value="count">Peak count</option>
|
|
175 <option value="count-after-ties">Peak count (after ties)</option>
|
|
176 <option value="absolute">Peak absolute intensity</option><!-- TODO: absolute what? m/z -->
|
|
177 <option value="bpi-relative">Percent of base peak intensity</option>
|
|
178 <option value="tic-relative">Percent of total ion current</option>
|
|
179 <option value="tic-fraction">Aggregate percent of total ion current</option>
|
|
180 </param>
|
|
181 <when value="count">
|
|
182 <param type="integer" name="value" label="Number of peaks to keep" value="100" />
|
|
183 </when>
|
|
184 <when value="count-after-ties">
|
|
185 <param type="integer" name="value" label="Number of peaks to keep (after ties)" value="100" />
|
|
186 </when>
|
|
187 <when value="absolute">
|
|
188 <param type="float" name="value" label="Absolute intensity cut-off" value="100.0" />
|
|
189 </when>
|
|
190 <when value="bpi-relative">
|
|
191 <param type="float" name="value" label="Keep peaks above (or below) this fraction of base peak intensity" value="0.2"
|
|
192 />
|
|
193 </when>
|
|
194 <when value="tic-relative">
|
|
195 <param type="float" name="value" label="Keep peaks above (or below) this fraction of total ion current" value="0.2"
|
|
196 />
|
|
197 </when>
|
|
198 <when value="tic-fraction">
|
|
199 <param type="float" name="value" label="Keep peaks until this fraction of total ion current is accounted for" value="0.8" />
|
|
200 </when>
|
|
201 </conditional>
|
|
202 <param type="select" label="Keep" name="orientation">
|
|
203 <option value="most-intense">Most intense peaks</option>
|
|
204 <option value="least-intense">Least intense peaks</option>
|
|
205 </param>
|
|
206 </repeat>
|
|
207
|
|
208
|
|
209 <param name="activation" type="select" label="Filter by Activation">
|
|
210 <option value="false" selected="true">no</option>
|
|
211 <option value="ETD">ETD</option>
|
|
212 <option value="CID">CID</option>
|
|
213 <option value="SA">SA</option>
|
|
214 <option value="HCD">HCD</option>
|
|
215 <!-- BEGIN_VERSION_3 -->
|
|
216 <option>BIRD</option>
|
|
217 <option>ECD</option>
|
|
218 <option>IRMPD</option>
|
|
219 <option>PD</option>
|
|
220 <option>PSD</option>
|
|
221 <option>PQD</option>
|
|
222 <option>SID</option>
|
|
223 <option>SORI</option>
|
|
224 <!-- END_VERSION_3 -->
|
|
225 </param>
|
|
226
|
|
227 <repeat name="indices" title="Filter Scan Indices">
|
|
228 <param name="from" type="integer" label="Filter Scan Index From" value="0" optional="false" />
|
|
229 <param name="to" type="integer" label="Filter Scan Index To" value="0" optional="true" />
|
|
230 </repeat>
|
|
231
|
|
232 <repeat name="scan_numbers" title="Filter Scan Numbers">
|
|
233 <param name="from" type="integer" label="Filter Scan Number From" value="0" optional="false" />
|
|
234 <param name="to" type="integer" label="Filter Scan Number To" value="0" optional="true" />
|
|
235 </repeat>
|
|
236
|
|
237 <conditional name="filter_mz_windows">
|
|
238 <param name="do_filter" type="boolean" truevalue="true" falsevalue="false" label="Filter m/z Window" help="" />
|
|
239 <when value="false" />
|
|
240 <when value="true">
|
|
241 <param name="from" type="float" label="Filter m/z From" value="0.0" optional="false" />
|
|
242 <param name="to" type="float" label="Filter m/z To" value="0.0" optional="true" />
|
|
243 </when>
|
|
244 </conditional>
|
|
245
|
|
246 <param type="boolean" name="strip_it" label="Strip Ion Trap MS1 Scans" />
|
|
247
|
|
248 <conditional name="filter_ms_levels">
|
|
249 <param name="do_filter" type="boolean" label="Filter MS Levels" />
|
|
250 <when value="false" />
|
|
251 <when value="true">
|
|
252 <param name="from" type="integer" label="Filter MS Level From" value="0" optional="false" />
|
|
253 <param name="to" type="integer" label="Filter MS Level To" value="0" optional="true" />
|
|
254 </when>
|
|
255 </conditional>
|
|
256
|
|
257 <conditional name="etd_filtering">
|
|
258 <param name="do_etd_filtering" type="select" label="ETD Filtering">
|
|
259 <option value="none" selected="true">none</option>
|
|
260 <option value="default">yes (with default options)</option>
|
|
261 <option value="advanced">yes (show advanced options) </option>
|
|
262 </param>
|
|
263 <when value="none" />
|
|
264 <when value="default" />
|
|
265 <when value="advanced">
|
|
266 <param name="matching_tolerance" type="float" label="ETD Matching Tolernace" value="3.1">
|
|
267 </param>
|
|
268 <param name="matching_tolerance_units" type="select" label="Units for ETD Matching Tolerance">
|
|
269 <option value="MZ" selected="true">mz</option>
|
|
270 <option value="PPM">ppm</option>
|
|
271 </param>
|
|
272 <param name="remove_precursor" type="select" label="ETD Remove Precursor">
|
|
273 <option value="true" selected="true">yes</option>
|
|
274 <option value="false">no</option>
|
|
275 </param>
|
|
276 <param name="remove_charge_reduced" type="select" label="ETD Remove Charge Reduced">
|
|
277 <option value="true" selected="true">yes</option>
|
|
278 <option value="false">no</option>
|
|
279 </param>
|
|
280 <param name="remove_neutral_loss" type="select" label="ETD Remove Neutral Loss">
|
|
281 <option value="true" selected="true">yes</option>
|
|
282 <option value="false">no</option>
|
|
283 </param>
|
|
284 <param name="blanket_removal" type="select" label="ETD Blanket Removal">
|
|
285 <option value="true" selected="true">yes</option>
|
|
286 <option value="false">no</option>
|
|
287 </param>
|
|
288 </when>
|
|
289 </conditional>
|
|
290
|
|
291
|
|
292 <!-- BEGIN_VERSION_3 -->
|
|
293 <conditional name="ms2denoise">
|
|
294 <param name="denoise" type="boolean" label="De-noise MS2 with moving window filter" />
|
|
295 <when value="true">
|
|
296 <param name="num_peaks" label="De-noise: Number of peaks in window" value="6" type="integer" />
|
|
297 <param name="window_width" type="float" label="De-noise: Window width (Daltons)" value="30" />
|
|
298 <param name="relax" label="De-noise: Multicharge fragment relaxation" checked="true" type="boolean" truevalue="true" falsevalue="false" />
|
|
299 </when>
|
|
300 <when value="false" />
|
|
301 </conditional>
|
|
302 <param name="ms2deisotope" type="boolean" label="Deisotope MS2 using Markey method" help="" truevalue="true" falsevalue="false" />
|
|
303
|
|
304 <param name="polarity" type="select" label="Filter by Polarity">
|
|
305 <option value="false" selected="true">no</option>
|
|
306 <option value="positive">positive</option>
|
|
307 <option value="negative">negative</option>
|
|
308 </param>
|
|
309
|
|
310 <param name="analyzer" type="select" label="Filter by Analyzer">
|
|
311 <option value="false" selected="true">no</option>
|
|
312 <option value="quad">quad</option>
|
|
313 <option value="orbi">orbi</option>
|
|
314 <option value="FT">FT</option>
|
|
315 <option value="IT">IT</option>
|
|
316 <option value="TOF">TOF</option>
|
|
317 </param>
|
|
318 <!-- END_VERSION_3 -->
|
|
319 </when>
|
|
320 </conditional>
|
|
321
|
|
322 <conditional name="settings">
|
|
323 <param name="settingsType" type="select" label="Advanced Settings" help="">
|
|
324 <option value="default">Use Defaults</option>
|
|
325 <option value="full">Full Parameter List</option>
|
|
326 </param>
|
|
327 <when value="default" />
|
|
328 <when value="full">
|
|
329 <param type="select" name="binary_encoding" label="Binary Encoding Precision">
|
|
330 <option value="64" selected="true">64</option>
|
|
331 <option value="32">32</option>
|
|
332 </param>
|
|
333 <param type="select" name="mz_encoding" label="m/z Encoding Precision">
|
|
334 <option value="64" selected="true">64</option>
|
|
335 <option value="32">32</option>
|
|
336 </param>
|
|
337 <param type="select" name="intensity_encoding" label="Intensity Encoding Precision" value="32">
|
|
338 <option value="64">64</option>
|
|
339 <option value="32" selected="true">32</option>
|
|
340 </param>
|
|
341 <param type="boolean" name="zlib" label="Use zlib">
|
|
342 </param>
|
|
343 </when>
|
|
344 </conditional>
|
|
345
|
|
346
|
|
347 </inputs>
|
|
348 <outputs>
|
|
349 <data format="mzml" name="output">
|
|
350 <change_format>
|
|
351 <when input="output_type" value="mzXML" format="mzxml" />
|
|
352 <when input="output_type" value="unindexed_mzXML" format="mzxml" />
|
|
353 <when input="output_type" value="ms2" format="ms2" />
|
|
354 <when input="output_type" value="mgf" format="mgf" />
|
|
355 </change_format>
|
|
356 </data>
|
|
357 </outputs>
|
|
358
|
|
359 <requirements>
|
|
360 <requirement type="package">proteowizard</requirement>
|
|
361 </requirements>
|
|
362
|
|
363 <help>
|
|
364 **What it does**
|
|
365
|
|
366 Converts between various mass spectrometry peak list representations. Additional options such as filtering and/or precursor recalculation are available.
|
|
367
|
|
368 You can view the original documentation here_.
|
|
369
|
|
370 .. _here: http://proteowizard.sourceforge.net/tools/msconvert.html
|
|
371
|
|
372 ------
|
|
373
|
|
374 **Citation**
|
|
375
|
|
376 For the underlying tool, please cite `ProteoWizard: Open Source Software for Rapid Proteomics Tools Development. Darren Kessner; Matt Chambers; Robert Burke; David Agus; Parag Mallick. Bioinformatics 2008; doi: 10.1093/bioinformatics/btn323.`
|
|
377
|
|
378 If you use this tool in Galaxy, please cite Chilton J, et al. https://bitbucket.org/galaxyp/galaxyp-toolshed-msconvert
|
|
379
|
|
380 </help>
|
|
381 </tool>
|