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