1
|
1 <tool id="msconvert2" name="msconvert2" 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
|
|
88 #end if
|
|
89
|
|
90 </command>
|
|
91
|
|
92 <inputs>
|
|
93
|
|
94 <!-- BEGIN_VERSION_DEFAULT -->
|
|
95 <conditional name="type">
|
|
96 <param name="input_type" type="select" label="Input Type">
|
|
97 <option value="mzml">mzML</option>
|
|
98 <option value="mzxml">mzXML</option>
|
|
99 <option value="mgf">mgf</option>
|
|
100 <option value="ms2">ms2</option>
|
|
101 </param>
|
|
102 <when value="mzml">
|
|
103 <param format="mzml" name="input" type="data" label="Input mzML"/>
|
|
104 </when>
|
|
105 <when value="mzxml">
|
|
106 <param format="mzxml" name="input" type="data" label="Input mzXML"/>
|
|
107 </when>
|
|
108 <when value="mgf">
|
|
109 <param format="mgf" name="input" type="data" label="Input mgf"/>
|
|
110 </when>
|
|
111 <when value="ms2">
|
|
112 <param format="ms2" name="input" type="data" label="Input ms2"/>
|
|
113 </when>
|
|
114 </conditional>
|
|
115 <!-- END_VERSION_DEFAULT -->
|
|
116 <param name="output_type" type="select" label="Output Type">
|
|
117 <option value="mzML">mzML (indexed)</option>
|
|
118 <option value="unindexed_mzML">mzML (unindexed)</option>
|
|
119 <option value="mzXML">mzXML (indexed)</option>
|
|
120 <option value="unindexed_mzXML">mzXML (unindexed)</option>
|
|
121 <option value="mgf">mgf</option>
|
|
122 <option value="ms2">ms2</option>
|
|
123 </param>
|
|
124 <conditional name="filtering">
|
|
125 <param name="filtering_use" type="boolean" label="Use Filtering?" help="" truevalue="true" falsevalue="false" />
|
|
126 <when value="false" />
|
|
127 <when value="true">
|
|
128 <param type="boolean" name="precursor_recalculation" label="Recalculate Precursor?" />
|
|
129
|
|
130
|
|
131 <conditional name="peak_picking">
|
|
132 <param type="boolean" name="pick_peaks" label="Use Peak Picking?" truevalue="true" falsevalue="false" />
|
|
133 <when value="false" />
|
|
134 <when value="true">
|
|
135 <param name="ms_levels" type="select" label="Peak Peaking - Apply to MS Levels">
|
|
136 <option value="1">MS1 Only (1)</option>
|
|
137 <option value="2">MS2 Only (2)</option>
|
|
138 <option value="2-">MS2 and on (2-)</option>
|
|
139 <option value="1-">All Levels (1-)</option>
|
|
140 </param>
|
|
141 <param type="boolean" name="prefer_vendor_peaks" label="Peak Picking - Prefer Vendor Peaks?" truevalue="true" falsevalue="false" checked="true"/>
|
|
142 </when>
|
|
143 </conditional>
|
|
144
|
|
145 <repeat name="threshold_repeat" title="Filter by Threshold">
|
|
146 <conditional name="threshold">
|
|
147 <param type="select" label="Specify threshold on" name="threshold_type" help="">
|
|
148 <option value="count">Peak count</option>
|
|
149 <option value="count-after-ties">Peak count (after ties)</option>
|
|
150 <option value="absolute">Peak absolute intensity</option><!-- TODO: absolute what? m/z -->
|
|
151 <option value="bpi-relative">Percent of base peak intensity</option>
|
|
152 <option value="tic-relative">Percent of total ion current</option>
|
|
153 <option value="tic-fraction">Aggregate percent of total ion current</option>
|
|
154 </param>
|
|
155 <when value="count">
|
|
156 <param type="integer" name="value" label="Number of peaks to keep" value="100" />
|
|
157 </when>
|
|
158 <when value="count-after-ties">
|
|
159 <param type="integer" name="value" label="Number of peaks to keep (after ties)" value="100" />
|
|
160 </when>
|
|
161 <when value="absolute">
|
|
162 <param type="float" name="value" label="Absolute intensity cut-off" value="100.0" />
|
|
163 </when>
|
|
164 <when value="bpi-relative">
|
|
165 <param type="float" name="value" label="Keep peaks above (or below) this fraction of base peak intensity" value="0.2"
|
|
166 />
|
|
167 </when>
|
|
168 <when value="tic-relative">
|
|
169 <param type="float" name="value" label="Keep peaks above (or below) this fraction of total ion current" value="0.2"
|
|
170 />
|
|
171 </when>
|
|
172 <when value="tic-fraction">
|
|
173 <param type="float" name="value" label="Keep peaks until this fraction of total ion current is accounted for" value="0.8" />
|
|
174 </when>
|
|
175 </conditional>
|
|
176 <param type="select" label="Keep" name="orientation">
|
|
177 <option value="most-intense">Most intense peaks</option>
|
|
178 <option value="least-intense">Least intense peaks</option>
|
|
179 </param>
|
|
180 </repeat>
|
|
181
|
|
182
|
|
183 <param name="activation" type="select" label="Filter by Activation">
|
|
184 <option value="false" selected="true">no</option>
|
|
185 <option value="ETD">ETD</option>
|
|
186 <option value="CID">CID</option>
|
|
187 <option value="SA">SA</option>
|
|
188 <option value="HCD">HCD</option>
|
|
189 </param>
|
|
190
|
|
191 <repeat name="indices" title="Filter Scan Indices">
|
|
192 <param name="from" type="integer" label="Filter Scan Index From" value="0" optional="false" />
|
|
193 <param name="to" type="integer" label="Filter Scan Index To" value="0" optional="true" />
|
|
194 </repeat>
|
|
195
|
|
196 <repeat name="scan_numbers" title="Filter Scan Numbers">
|
|
197 <param name="from" type="integer" label="Filter Scan Number From" value="0" optional="false" />
|
|
198 <param name="to" type="integer" label="Filter Scan Number To" value="0" optional="true" />
|
|
199 </repeat>
|
|
200
|
|
201 <conditional name="filter_mz_windows">
|
|
202 <param name="do_filter" type="boolean" truevalue="true" falsevalue="false" label="Filter m/z Window" help="" />
|
|
203 <when value="false" />
|
|
204 <when value="true">
|
|
205 <param name="from" type="float" label="Filter m/z From" value="0.0" optional="false" />
|
|
206 <param name="to" type="float" label="Filter m/z To" value="0.0" optional="true" />
|
|
207 </when>
|
|
208 </conditional>
|
|
209
|
|
210 <param type="boolean" name="strip_it" label="Strip Ion Trap MS1 Scans" />
|
|
211
|
|
212 <conditional name="filter_ms_levels">
|
|
213 <param name="do_filter" type="boolean" label="Filter MS Levels" />
|
|
214 <when value="false" />
|
|
215 <when value="true">
|
|
216 <param name="from" type="integer" label="Filter MS Level From" value="0" optional="false" />
|
|
217 <param name="to" type="integer" label="Filter MS Level To" value="0" optional="true" />
|
|
218 </when>
|
|
219 </conditional>
|
|
220
|
|
221 <conditional name="etd_filtering">
|
|
222 <param name="do_etd_filtering" type="select" label="ETD Filtering">
|
|
223 <option value="none" selected="true">none</option>
|
|
224 <option value="default">yes (with default options)</option>
|
|
225 <option value="advanced">yes (show advanced options) </option>
|
|
226 </param>
|
|
227 <when value="none" />
|
|
228 <when value="default" />
|
|
229 <when value="advanced">
|
|
230 <param name="matching_tolerance" type="float" label="ETD Matching Tolernace" value="3.1">
|
|
231 </param>
|
|
232 <param name="matching_tolerance_units" type="select" label="Units for ETD Matching Tolerance">
|
|
233 <option value="MZ" selected="true">mz</option>
|
|
234 <option value="PPM">ppm</option>
|
|
235 </param>
|
|
236 <param name="remove_precursor" type="select" label="ETD Remove Precursor">
|
|
237 <option value="true" selected="true">yes</option>
|
|
238 <option value="false">no</option>
|
|
239 </param>
|
|
240 <param name="remove_charge_reduced" type="select" label="ETD Remove Charge Reduced">
|
|
241 <option value="true" selected="true">yes</option>
|
|
242 <option value="false">no</option>
|
|
243 </param>
|
|
244 <param name="remove_neutral_loss" type="select" label="ETD Remove Neutral Loss">
|
|
245 <option value="true" selected="true">yes</option>
|
|
246 <option value="false">no</option>
|
|
247 </param>
|
|
248 <param name="blanket_removal" type="select" label="ETD Blanket Removal">
|
|
249 <option value="true" selected="true">yes</option>
|
|
250 <option value="false">no</option>
|
|
251 </param>
|
|
252 </when>
|
|
253 </conditional>
|
|
254
|
|
255
|
|
256 </when>
|
|
257 </conditional>
|
|
258
|
|
259 <conditional name="settings">
|
|
260 <param name="settingsType" type="select" label="Advanced Settings" help="">
|
|
261 <option value="default">Use Defaults</option>
|
|
262 <option value="full">Full Parameter List</option>
|
|
263 </param>
|
|
264 <when value="default" />
|
|
265 <when value="full">
|
|
266 <param type="select" name="binary_encoding" label="Binary Encoding Precision">
|
|
267 <option value="64" selected="true">64</option>
|
|
268 <option value="32">32</option>
|
|
269 </param>
|
|
270 <param type="select" name="mz_encoding" label="m/z Encoding Precision">
|
|
271 <option value="64" selected="true">64</option>
|
|
272 <option value="32">32</option>
|
|
273 </param>
|
|
274 <param type="select" name="intensity_encoding" label="Intensity Encoding Precision" value="32">
|
|
275 <option value="64">64</option>
|
|
276 <option value="32" selected="true">32</option>
|
|
277 </param>
|
|
278 <param type="boolean" name="zlib" label="Use zlib">
|
|
279 </param>
|
|
280 </when>
|
|
281 </conditional>
|
|
282
|
|
283
|
|
284 </inputs>
|
|
285 <outputs>
|
|
286 <data format="mzml" name="output">
|
|
287 <change_format>
|
|
288 <when input="output_type" value="mzXML" format="mzxml" />
|
|
289 <when input="output_type" value="unindexed_mzXML" format="mzxml" />
|
|
290 <when input="output_type" value="ms2" format="ms2" />
|
|
291 <when input="output_type" value="mgf" format="mgf" />
|
|
292 </change_format>
|
|
293 </data>
|
|
294 </outputs>
|
|
295
|
|
296 <requirements>
|
|
297 <requirement type="package">proteowizard</requirement>
|
|
298 </requirements>
|
|
299
|
|
300 <help>
|
|
301 **What it does**
|
|
302
|
|
303 Converts between various mass spectrometry peak list representations. Additional options such as filtering and/or precursor recalculation are available.
|
|
304
|
|
305 You can view the original documentation here_.
|
|
306
|
|
307 .. _here: http://proteowizard.sourceforge.net/tools/msconvert.html
|
|
308
|
|
309 ------
|
|
310
|
|
311 **Citation**
|
|
312
|
|
313 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.`
|
|
314
|
|
315 If you use this tool in Galaxy, please cite Chilton J, et al. https://bitbucket.org/galaxyp/galaxyp-toolshed-msconvert
|
|
316
|
|
317 </help>
|
|
318 </tool>
|