annotate myrimatch.xml @ 19:933a77287b5f draft

Uploaded
author galaxyp
date Tue, 25 Jun 2013 16:52:45 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
1 <tool id="myrimatch" name="myrimatch" version="0.1.0">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
2 <description></description>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
3 <command>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
4 #set $mod_rep_chars = "*$^@.%!"
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
5 #set $db_name = $input_database.display_name.replace(".fasta", "") + ".fasta"
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
6 #if $output_type.value == "mzid"
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
7 #set $output_ext="mzid"
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
8 #set $output_format="mzIdentML"
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
9 #else
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
10 #set $output_ext="pepXML"
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
11 #set $output_format="pepXML"
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
12 #end if
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
13 #set $input_name = $input.display_name
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
14 #set $output_name = $input_name.split(".")[0] + "." + $output_ext
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
15 #set $static_mods_str = ""
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
16 #for $static_mod in $static_mods
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
17 #set $static_mods_str = $static_mods_str + "" + str($static_mod.aa) + " " + str($static_mod.mass)
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
18 #end for
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
19 #set $dynamic_mods_str = ""
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
20 #set $dynamic_mod_index = 0
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
21 #for $dynamic_mod in $dynamic_mods
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
22 #set $dynamic_mods_str = $dynamic_mods_str + "" + str($dynamic_mod.motif) + " " + $mod_rep_chars[$dynamic_mod_index] + " " + str($dynamic_mod.mass)
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
23 #set $dynamic_mod_index = $dynamic_mod_index + 1
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
24 #end for
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
25 ln -s '$input' '${input_name}';
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
26 ln -s '$input_database' '${db_name}';
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
27 myrimatch -DecoyPrefix '${decoy_prefix}' \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
28 -ProteinDatabase '${db_name}' \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
29 -OutputFormat '${$output_format}' \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
30 '${input_name}' \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
31 -StaticMods '${static_mods_str}' \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
32 -DynamicMods '${dynamic_mods_str}' \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
33 -CleavageRules '${protease}' \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
34 #set $percursor_type = $percursor_tolerance.percursor_type
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
35 -PrecursorMzToleranceRule '${percursor_type}' \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
36 #if $percursor_type == "auto" or $percursor_type == "mono"
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
37 -MonoPrecursorMzTolerance '${percursor_tolerance.mono_precursor_mz_tolerance}${percursor_tolerance.mono_precursor_mz_tolerance_units}' \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
38 #end if
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
39 #if $percursor_type == "auto" or $percursor_type == "avg"
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
40 -AvgPrecursorMzTolerance '${percursor_tolerance.avg_precursor_mz_tolerance}${percursor_tolerance.avg_precursor_mz_tolerance_units}' \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
41 #end if
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
42 -FragmentMzTolerance '${fragment_mz_tolerance}${fragment_mz_tolerance_units}' \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
43 #if $advanced.use_advanced
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
44 -UseSmartPlusThreeModel $advanced.use_smart_plus_three_model \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
45 -MinPeptideLength $advanced.min_peptide_length \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
46 -MaxPeptideLength $advanced.max_peptide_length \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
47 #if $advanced.max_peak_count
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
48 -MaxPeakCount $advanced.max_peak_count \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
49 #end if
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
50 #if $advanced.fragmentation_rule.override
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
51 -FragmentationAutoRule false -FragmentationRule 'manual:${advanced.fragmentation_rule.fragmentation_rule}' \
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
52 #end if
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
53 #end if
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
54 ;
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
55 mv '$output_name' output
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
56 </command>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
57 <stdio>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
58 <exit_code range="1:" level="fatal" description="Job Failed" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
59 <regex match="^Could not find the default configuration file.*$"
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
60 source="both"
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
61 level="warning" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
62 </stdio>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
63 <inputs>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
64 <conditional name="type">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
65 <param name="input_type" type="select" label="Input Type">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
66 <option value="mzml">mzML</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
67 <option value="mzxml">mzXML</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
68 <option value="mgf">mgf</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
69 <option value="ms2">ms2</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
70 </param>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
71 <when value="mzml">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
72 <param format="mzml" name="input" type="data" label="Input mzML"/>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
73 </when>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
74 <when value="mzxml">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
75 <param format="mzxml" name="input" type="data" label="Input mzXML"/>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
76 </when>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
77 <when value="mgf">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
78 <param format="mgf" name="input" type="data" label="Input mgf"/>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
79 </when>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
80 <when value="ms2">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
81 <param format="ms2" name="input" type="data" label="Input ms2"/>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
82 </when>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
83 </conditional>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
84 <param name="output_type" type="select" label="Output Type">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
85 <option value="raw_pepxml">pepXML</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
86 <option value="mzid">mzIdentML</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
87 </param>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
88 <param format="fasta" name="input_database" type="data" label="Protein Database"/>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
89 <param name="decoy_prefix" type="text" label="Decoy Prefix"/>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
90 <param name="protease" type="select" label="Protease">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
91 <options from_file="proteases.loc">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
92 <column name="name" index="0" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
93 <column name="value" index="1" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
94 </options>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
95 </param>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
96 <repeat name="static_mods" title="Static Modifications">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
97 <param name="aa" type="text" label="Amino Acid" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
98 <param name="mass" type="float" label="Mass" value="0" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
99 </repeat>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
100 <repeat name="dynamic_mods" title="Dynamic Modifications" max="7">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
101 <param name="motif" type="text" label="Amino Acid Motif" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
102 <param name="mass" type="float" label="Mass" value="0" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
103 </repeat>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
104 <conditional name="percursor_tolerance">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
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.">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
106 <option value="auto">Auto</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
107 <option value="avg">Average</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
108 <option value="mono">Monoisotopic</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
109 </param>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
110 <when value="auto">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
111 <param name="mono_precursor_mz_tolerance" type="float" value="10" label="Monoisotopic Percursor m/z Tolerance" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
112 <param name="mono_precursor_mz_tolerance_units" type="select" label="Monoisotopic Percursor m/z Tolerance Units">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
113 <option value="ppm">Parts per million</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
114 <option value="daltons">Daltons</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
115 </param>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
116 <param name="avg_precursor_mz_tolerance" type="float" value="1.5" label="Average Percursor m/z Tolerance" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
117 <param name="avg_precursor_mz_tolerance_units" type="select" label="Average Percursor m/z Tolerance Units">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
118 <option value="ppm">Parts per million</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
119 <option value="daltons" selected="true">Daltons</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
120 </param>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
121 </when>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
122 <when value="avg">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
123 <param name="avg_precursor_mz_tolerance" type="float" value="1.5" label="Average Percursor m/z Tolerance" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
124 <param name="avg_precursor_mz_tolerance_units" type="select" label="Average Percursor m/z Tolerance Units">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
125 <option value="ppm">Parts per million</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
126 <option value="daltons" selected="true">Daltons</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
127 </param>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
128 </when>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
129 <when value="mono">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
130 <param name="mono_precursor_mz_tolerance" type="float" value="10" label="Monoisotopic Percursor m/z Tolerance" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
131 <param name="mono_precursor_mz_tolerance_units" type="select" label="Monoisotopic Percursor m/z Tolerance Units">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
132 <option value="ppm">Parts per million</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
133 <option value="daltons">Daltons</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
134 </param>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
135 </when>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
136 </conditional>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
137 <param name="fragment_mz_tolerance" type="float" value="1.5" label="Fragement m/z Tolerance" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
138 <param name="fragment_mz_tolerance_units" type="select" label="Fragment m/z Tolerance Units">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
139 <option value="ppm">Parts per million</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
140 <option value="daltons" selected="true">Daltons</option>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
141 </param>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
142 <conditional name="advanced">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
143 <param name="use_advanced" type="boolean" label="Set Advanced Options" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
144 <when value="false">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
145 </when>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
146 <when value="true">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
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." />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
148 <conditional name="fragmentation_rule">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
149 <param name="override" type="boolean" label="Override Fragmentation Rule (Ion Series)" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
150 <when value="false" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
151 <when value="true">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
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" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
153 </when>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
154 </conditional>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
155 <param name="min_peptide_length" type="integer" value="5" label="Minimum Peptide Length" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
156 <param name="max_peptide_length" type="integer" value="75" label="Maximum Peptide Length" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
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" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
158
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
159 </when>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
160 </conditional>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
161 <!--
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
162 <param name="max_peptide_length" value="75"
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
163
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
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" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
165 -->
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
166 </inputs>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
167 <outputs>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
168 <data format="raw_pepxml" name="output" from_work_dir="output">
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
169 <change_format>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
170 <when input="output_type" value="mzid" format="mzid" />
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
171 </change_format>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
172 </data>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
173 </outputs>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
174
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
175 <requirements>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
176 <requirement type="package" version="2.1.131">myrimatch</requirement>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
177 </requirements>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
178
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
179 <help>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
180 **What it does**
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
181
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
182 Performs protein identification via database search using MyriMatch.
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
183
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
184 ------
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
185
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
186 **Citation**
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
187
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
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`
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
189
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
190 If you use this tool in Galaxy, please cite TODO
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
191 </help>
933a77287b5f Uploaded
galaxyp
parents:
diff changeset
192 </tool>