0
|
1 <tool id="myrimatch" name="myrimatch" version="0.1.0">
|
|
2 <description></description>
|
|
3 <command>
|
|
4 #set $mod_rep_chars = "*$^@.%!"
|
|
5 #set $db_name = $input_database.display_name.replace(".fasta", "") + ".fasta"
|
|
6 #if $output_type.value == "mzid"
|
|
7 #set $output_ext="mzid"
|
|
8 #set $output_format="mzIdentML"
|
|
9 #else
|
|
10 #set $output_ext="pepXML"
|
|
11 #set $output_format="pepXML"
|
|
12 #end if
|
|
13 #set $input_name = $input.display_name
|
|
14 #set $output_name = $input_name.split(".")[0] + "." + $output_ext
|
|
15 #set $static_mods_str = ""
|
|
16 #for $static_mod in $static_mods
|
|
17 #set $static_mods_str = $static_mods_str + "" + str($static_mod.aa) + " " + str($static_mod.mass)
|
|
18 #end for
|
|
19 #set $dynamic_mods_str = ""
|
|
20 #set $dynamic_mod_index = 0
|
|
21 #for $dynamic_mod in $dynamic_mods
|
|
22 #set $dynamic_mods_str = $dynamic_mods_str + "" + str($dynamic_mod.motif) + " " + $mod_rep_chars[$dynamic_mod_index] + " " + str($dynamic_mod.mass)
|
|
23 #set $dynamic_mod_index = $dynamic_mod_index + 1
|
|
24 #end for
|
|
25 ln -s '$input' '${input_name}';
|
|
26 ln -s '$input_database' '${db_name}';
|
|
27 myrimatch -DecoyPrefix '${decoy_prefix}' \
|
|
28 -ProteinDatabase '${db_name}' \
|
|
29 -OutputFormat '${$output_format}' \
|
|
30 '${input_name}' \
|
|
31 -StaticMods '${static_mods_str}' \
|
|
32 -DynamicMods '${dynamic_mods_str}' \
|
|
33 -CleavageRules '${protease}' \
|
|
34 #set $percursor_type = $percursor_tolerance.percursor_type
|
|
35 -PrecursorMzToleranceRule '${percursor_type}' \
|
|
36 #if $percursor_type == "auto" or $percursor_type == "mono"
|
|
37 -MonoPrecursorMzTolerance '${percursor_tolerance.mono_precursor_mz_tolerance}${percursor_tolerance.mono_precursor_mz_tolerance_units}' \
|
|
38 #end if
|
|
39 #if $percursor_type == "auto" or $percursor_type == "avg"
|
|
40 -AvgPrecursorMzTolerance '${percursor_tolerance.avg_precursor_mz_tolerance}${percursor_tolerance.avg_precursor_mz_tolerance_units}' \
|
|
41 #end if
|
|
42 -FragmentMzTolerance '${fragment_mz_tolerance}${fragment_mz_tolerance_units}' \
|
|
43 #if $advanced.use_advanced
|
|
44 -UseSmartPlusThreeModel $advanced.use_smart_plus_three_model \
|
|
45 -MinPeptideLength $advanced.min_peptide_length \
|
|
46 -MaxPeptideLength $advanced.max_peptide_length \
|
|
47 #if $advanced.max_peak_count
|
|
48 -MaxPeakCount $advanced.max_peak_count \
|
|
49 #end if
|
|
50 #if $advanced.fragmentation_rule.override
|
|
51 -FragmentationAutoRule false -FragmentationRule 'manual:${advanced.fragmentation_rule.fragmentation_rule}' \
|
|
52 #end if
|
|
53 #end if
|
|
54 ;
|
|
55 mv '$output_name' output
|
|
56 </command>
|
|
57 <stdio>
|
|
58 <exit_code range="1:" level="fatal" description="Job Failed" />
|
|
59 <regex match="^Could not find the default configuration file.*$"
|
|
60 source="both"
|
|
61 level="warning" />
|
|
62 </stdio>
|
|
63 <inputs>
|
|
64 <conditional name="type">
|
|
65 <param name="input_type" type="select" label="Input Type">
|
|
66 <option value="mzml">mzML</option>
|
|
67 <option value="mzxml">mzXML</option>
|
|
68 <option value="mgf">mgf</option>
|
|
69 <option value="ms2">ms2</option>
|
|
70 </param>
|
|
71 <when value="mzml">
|
|
72 <param format="mzml" name="input" type="data" label="Input mzML"/>
|
|
73 </when>
|
|
74 <when value="mzxml">
|
|
75 <param format="mzxml" name="input" type="data" label="Input mzXML"/>
|
|
76 </when>
|
|
77 <when value="mgf">
|
|
78 <param format="mgf" name="input" type="data" label="Input mgf"/>
|
|
79 </when>
|
|
80 <when value="ms2">
|
|
81 <param format="ms2" name="input" type="data" label="Input ms2"/>
|
|
82 </when>
|
|
83 </conditional>
|
|
84 <param name="output_type" type="select" label="Output Type">
|
|
85 <option value="raw_pepxml">pepXML</option>
|
|
86 <option value="mzid">mzIdentML</option>
|
|
87 </param>
|
|
88 <param format="fasta" name="input_database" type="data" label="Protein Database"/>
|
|
89 <param name="decoy_prefix" type="text" label="Decoy Prefix"/>
|
|
90 <param name="protease" type="select" label="Protease">
|
|
91 <options from_file="proteases.loc">
|
|
92 <column name="name" index="0" />
|
|
93 <column name="value" index="1" />
|
|
94 </options>
|
|
95 </param>
|
|
96 <repeat name="static_mods" title="Static Modifications">
|
|
97 <param name="aa" type="text" label="Amino Acid" />
|
|
98 <param name="mass" type="float" label="Mass" value="0" />
|
|
99 </repeat>
|
|
100 <repeat name="dynamic_mods" title="Dynamic Modifications" max="7">
|
|
101 <param name="motif" type="text" label="Amino Acid Motif" />
|
|
102 <param name="mass" type="float" label="Mass" value="0" />
|
|
103 </repeat>
|
|
104 <conditional name="percursor_tolerance">
|
|
105 <param name="percursor_type" type="select" label="Percursor Mass Type" help="For data from Thermo instruments, using the 'auto' setting on a will automatically choose monoisotopic or average mass values, for other instruments monoisotopic or average should be chosen.">
|
|
106 <option value="auto">Auto</option>
|
|
107 <option value="avg">Average</option>
|
|
108 <option value="mono">Monoisotopic</option>
|
|
109 </param>
|
|
110 <when value="auto">
|
|
111 <param name="mono_precursor_mz_tolerance" type="float" value="10" label="Monoisotopic Percursor m/z Tolerance" />
|
|
112 <param name="mono_precursor_mz_tolerance_units" type="select" label="Monoisotopic Percursor m/z Tolerance Units">
|
|
113 <option value="ppm">Parts per million</option>
|
|
114 <option value="daltons">Daltons</option>
|
|
115 </param>
|
|
116 <param name="avg_precursor_mz_tolerance" type="float" value="1.5" label="Average Percursor m/z Tolerance" />
|
|
117 <param name="avg_precursor_mz_tolerance_units" type="select" label="Average Percursor m/z Tolerance Units">
|
|
118 <option value="ppm">Parts per million</option>
|
|
119 <option value="daltons" selected="true">Daltons</option>
|
|
120 </param>
|
|
121 </when>
|
|
122 <when value="avg">
|
|
123 <param name="avg_precursor_mz_tolerance" type="float" value="1.5" label="Average Percursor m/z Tolerance" />
|
|
124 <param name="avg_precursor_mz_tolerance_units" type="select" label="Average Percursor m/z Tolerance Units">
|
|
125 <option value="ppm">Parts per million</option>
|
|
126 <option value="daltons" selected="true">Daltons</option>
|
|
127 </param>
|
|
128 </when>
|
|
129 <when value="mono">
|
|
130 <param name="mono_precursor_mz_tolerance" type="float" value="10" label="Monoisotopic Percursor m/z Tolerance" />
|
|
131 <param name="mono_precursor_mz_tolerance_units" type="select" label="Monoisotopic Percursor m/z Tolerance Units">
|
|
132 <option value="ppm">Parts per million</option>
|
|
133 <option value="daltons">Daltons</option>
|
|
134 </param>
|
|
135 </when>
|
|
136 </conditional>
|
|
137 <param name="fragment_mz_tolerance" type="float" value="1.5" label="Fragement m/z Tolerance" />
|
|
138 <param name="fragment_mz_tolerance_units" type="select" label="Fragment m/z Tolerance Units">
|
|
139 <option value="ppm">Parts per million</option>
|
|
140 <option value="daltons" selected="true">Daltons</option>
|
|
141 </param>
|
|
142 <conditional name="advanced">
|
|
143 <param name="use_advanced" type="boolean" label="Set Advanced Options" />
|
|
144 <when value="false">
|
|
145 </when>
|
|
146 <when value="true">
|
|
147 <param name="max_peak_count" type="integer" value="" optional="true" label="Use Max Peaks" help="Filter out all but the specified number of peaks, keep empty to use all peaks." />
|
|
148 <conditional name="fragmentation_rule">
|
|
149 <param name="override" type="boolean" label="Override Fragmentation Rule (Ion Series)" />
|
|
150 <when value="false" />
|
|
151 <when value="true">
|
|
152 <param type="text" name="fragmentation_rule" label="Fragmentation Rule" help="specify as a comma-separated list of a, b, c, x, y, z, or z* (z+1), e.g. b,y,z" />
|
|
153 </when>
|
|
154 </conditional>
|
|
155 <param name="min_peptide_length" type="integer" value="5" label="Minimum Peptide Length" />
|
|
156 <param name="max_peptide_length" type="integer" value="75" label="Maximum Peptide Length" />
|
|
157 <param name="use_smart_plus_three_model" type="boolean" truevalue="true" falsevalue="false" label="Use Smart Plus 3 Model" help="For +3 and higher precursors, the fragment ions predicted depend on the way this parameter is set. When this parameter is true, then for each peptide bond, an internal calculation is done to estimate the basicity of the b and y fragment sequence. When this parameter is false, however, ALL possible charge distributions for the fragment ions are generated for every peptide bond." checked="true" />
|
|
158
|
|
159 </when>
|
|
160 </conditional>
|
|
161 <!--
|
|
162 <param name="max_peptide_length" value="75"
|
|
163
|
|
164 <param name="use_smart_plus_three_model" type="boolean" truevalue="true" falsevalue="false" label="Use Smart Plus 3 Model" help="For +3 and higher precursors, the fragment ions predicted depend on the way this parameter is set. When this parameter is true, then for each peptide bond, an internal calculation is done to estimate the basicity of the b and y fragment sequence. When this parameter is false, however, ALL possible charge distributions for the fragment ions are generated for every peptide bond." checked="true" />
|
|
165 -->
|
|
166 </inputs>
|
|
167 <outputs>
|
|
168 <data format="raw_pepxml" name="output" from_work_dir="output">
|
|
169 <change_format>
|
|
170 <when input="output_type" value="mzid" format="mzid" />
|
|
171 </change_format>
|
|
172 </data>
|
|
173 </outputs>
|
|
174
|
|
175 <requirements>
|
5
|
176 <requirement type="package">myrimatch_app</requirement>
|
0
|
177 </requirements>
|
|
178
|
|
179 <help>
|
|
180 **What it does**
|
|
181
|
|
182 Performs protein identification via database search using MyriMatch.
|
|
183
|
|
184 ------
|
|
185
|
|
186 **Citation**
|
|
187
|
|
188 For the underlying tool, please cite `MyriMatch: highly accurate tandem mass spectral peptide identification by multivariate hypergeometric analysis. Tabb DL, Fernando CG, Chambers MC. J Proteome Res. 6(2) 654-61. 2007 Feb. PMCID PMC2525619`
|
|
189
|
|
190 If you use this tool in Galaxy, please cite TODO
|
|
191 </help>
|
|
192 </tool>
|