annotate psm_eval.xml @ 1:9743296a53a3 draft

added repo dependencies
author galaxyp
date Thu, 20 Jun 2013 16:21:26 -0400
parents 77cc9cc99e15
children f8356c01939b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
1 <?xml version="1.0"?>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
2 <tool name="Peptide-Spectrum-Matches (PSMs) Evaluation" id="psm_eval" version="0.1.0">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
3 <requirements>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
4 <requirement type="package">psm_eval</requirement>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
5 </requirements>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
6 <description>Re-evalute potential PSMs using the psm-eval application.</description>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
7 <command>psm_eval --settings $driver</command>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
8 <configfiles>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
9 <configfile name="driver"># YAML driver for PSM Eval
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
10 peak_lists:
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
11 #for $peak_list in $peak_lists:
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
12 - path: $peak_list
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
13 name: "$peak_list.display_name"
1
9743296a53a3 added repo dependencies
galaxyp
parents: 0
diff changeset
14 encoded_id: "${$__app__.security.encode_id( $peak_list.id )}|${$peak_list.extra_dir_file_name if hasattr($peak_list, 'extra_dir_file_name') else ''}"
0
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
15 #end for
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
16 psms: $psms_cond.psms
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
17 psms_type: $psms_cond.type
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
18 output: $output
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
19 output_format: $output_type
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
20 mass_type: $mass_type
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
21 mass_tolerance: $default_mass_tolerance
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
22 columns:
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
23 #for $column in $columns
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
24 #set $column_options = $column.column
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
25 #set $type = str(column_options['type'])
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
26 - type: ${type}
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
27 #if $type in ['ions_matched', 'peaks_matched']
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
28 aggregate_by: $column_options.aggregate_by
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
29 #if $column_options.tolerance.specify
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
30 mass_tolerance: $column_options.tolerance.tolerance
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
31 #end if
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
32 #end if
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
33 #if $type in ['ions_matched', 'peaks_matched', 'num_peaks']
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
34 ## Handle peak filters
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
35 peak_filters:
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
36 #for $peak_filter in $column_options.peak_filters
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
37 #set $peak_filter_options = $peak_filter.peak_filter
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
38 #set $peak_filter_type = str(peak_filter_options['peak_filter_type'])
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
39 - type: $peak_filter_type
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
40 #if $peak_filter_type in ['percent_tic', 'quantile', 'percent_max_intensity']
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
41 percent: $peak_filter_options.percent
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
42 #end if
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
43 #if $peak_filter_type == 'quantile'
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
44 q: $peak_filter_options.q
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
45 k: $peak_filter_options.k
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
46 #end if
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
47 #end for
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
48 #end if
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
49 #if $type in ['ions_matched', 'peaks_matched']
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
50 ## Handle ions series
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
51 #set $ions = $column_options
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
52 ions:
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
53 series: $ions.ion_series
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
54 #if $ions.losses
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
55 losses: $ions.losses
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
56 #end if
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
57 #end if
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
58 #if $type == "source_statistic"
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
59 statistic_name: ${str(column_options['source_statistic'])}
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
60 #end if
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
61 #if $type == "link"
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
62 link_type: galaxy
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
63 #end if
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
64 #end for
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
65 </configfile>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
66 </configfiles>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
67 <inputs>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
68 <conditional name="psms_cond">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
69 <param name="type" type="select" label="PSMs Type" help="">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
70 <option value="mzid">MzIdentML (mzid)</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
71 <option value="proteinpilot_peptide_report">ProteinPilot Peptide Report</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
72 </param>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
73 <when value="mzid">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
74 <param format="mzid" name="psms" type="data" label="MzIdentML containing PSMs" help="" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
75 </when>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
76 <when value="proteinpilot_peptide_report">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
77 <param format="tabular" name="psms" type="data" label="ProteinPilot Peptide Report" help="" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
78 </when>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
79 </conditional>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
80 <param format="mzml" name="peak_lists" type="data" label="Peak list (mzML)" multiple="true" help="" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
81 <param name="output_type" type="select" label="Output Type" help="">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
82 <option value="tsv">Tabular (tsv)</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
83 <option value="html">HTML</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
84 </param>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
85 <param name="default_mass_tolerance" type="float" label="Default Mass Tolerance" value="0.5" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
86 <param name="mass_type" type="select" label="Mass Type">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
87 <option value="monoisotopic" selected="true">Monoisotopic</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
88 <option value="average">Average (has known problems)</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
89 </param>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
90 <repeat name="columns" title="Column">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
91 <conditional name="column">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
92 <param type="select" name="type" label="Column Type">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
93 <option value="peptide">Peptide Sequence</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
94 <option value="scan_index">Scan Index</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
95 <option value="scan_number">Scan Number</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
96 <option value="scan_id">Scan ID</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
97 <option value="scan_source">Peak List</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
98 <option value="num_peaks">Number of Peaks</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
99 <option value="peaks_matched">Peaks Matched Statistic</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
100 <option value="ions_matched">Ions Matched Statistic</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
101 <option value="total_ion_current">Total Ion Current</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
102 <option value="source_statistic">Statistic from PSM Source</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
103 <option value="link">ProtVis Link</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
104 </param>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
105 <when value="num_peaks">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
106 <expand macro="peak_filters" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
107 </when>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
108 <when value="peaks_matched">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
109 <param name="aggregate_by" label="Peak Matching Statistic" type="select">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
110 <option value="count">Number of Matched Peaks</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
111 <option value="count_missed">Number of Unmatched Peaks</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
112 <option value="percent">Percent of Matched Peaks</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
113 <option value="percent_missed">Percent of Unmatched Peaks</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
114 </param>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
115 <expand macro="ions" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
116 <expand macro="peak_filters" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
117 <expand macro="tolerance_conditional" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
118 </when>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
119 <when value="ions_matched">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
120 <param name="aggregate_by" label="Ion Matching Statistic" type="select">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
121 <option value="count">Number of Matched Ions</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
122 <option value="count_missed">Number of Unmatched Ions</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
123 <option value="count_longest_stretch">Longest Stretch of Matched Ions</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
124 <option value="percent">Percent of Matched Ions</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
125 <option value="percent_missed">Percent of Unmatched Ions</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
126 <option value="list_matches">List Matched Ions</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
127 <option value="list_misses">List Unmatched Ions</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
128 </param>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
129 <expand macro="ions" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
130 <expand macro="peak_filters" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
131 <expand macro="tolerance_conditional" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
132 </when>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
133 <when value="source_statistic">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
134 <param name="source_statistic" label="PSM Source Statistic" type="select">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
135 <option value="xcorr">xcorr</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
136 <option value="MyriMatch:MVH">MyriMatch: MVH</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
137 <option value="MyriMatch:mzFidelity">MyriMatch: mzFidelity</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
138 <option value="Conf">Conf</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
139 </param>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
140 </when>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
141 <when value="link">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
142 </when>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
143 </conditional>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
144 </repeat>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
145 </inputs>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
146 <outputs>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
147 <data format="tabular" name="output" label="PSM Evaluation of ${on_string}">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
148 <change_format>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
149 <when input="output_type" value="html" format="html" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
150 </change_format>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
151 </data>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
152 </outputs>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
153 <macros>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
154 <macro name="ions">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
155 <param name="ion_series" type="select" multiple="true" label="Ion Series">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
156 <option value="a1">a1</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
157 <option value="a2">a2</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
158 <option value="a3">a3</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
159 <option value="b1">b1</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
160 <option value="b2">b2</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
161 <option value="b3">b3</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
162 <option value="c1">c1</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
163 <option value="c2">c2</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
164 <option value="c3">c3</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
165 <option value="x1">x1</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
166 <option value="x2">x2</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
167 <option value="x3">x3</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
168 <option value="y1">y1</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
169 <option value="y2">y2</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
170 <option value="y3">y3</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
171 <option value="z1">z1</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
172 <option value="z2">z2</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
173 <option value="z3">z3</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
174 <option value="m1">M1</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
175 <option value="m2">M2</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
176 <option value="internal">Internal Ions</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
177 </param>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
178 <param name="losses" type="select" multiple="true" label="Losses" value="">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
179 <option value="H2O">H2O</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
180 <option value="NH3">NH3</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
181 <option value="CO">CO (-28) on internal ions</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
182 </param>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
183 </macro>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
184 <macro name="tolerance_conditional">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
185 <conditional name="tolerance">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
186 <param name="specify" label="Specify Mass Tolerance" type="boolean" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
187 <when value="false">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
188 </when>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
189 <when value="true">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
190 <param name="tolerance" value="0.5" label="Tolerance" type="float" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
191 </when>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
192 </conditional>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
193 </macro>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
194 <!--
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
195 <macro name="conditional_ions">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
196 <conditional name="specify_ions">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
197 <param type="boolean" truevalue="true" falsevalue="false" name="specify" label="Specify Ions?" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
198 <when value="true">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
199 <expand macro="ions" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
200 </when>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
201 <when value="false" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
202 </conditional>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
203 </macro>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
204 -->
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
205 <macro name="peak_filters">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
206 <repeat name="peak_filters" title="Peak Filter">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
207 <expand macro="peak_filter" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
208 </repeat>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
209 </macro>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
210 <macro name="peak_filter">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
211 <conditional name="peak_filter">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
212 <param type="select" label="Filter Peaks on" name="peak_filter_type">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
213 <option value="percent_tic">Intensity as a Percent of Total Ion Current</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
214 <option value="quantile">Intensity Quantile</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
215 <option value="percent_max_intensity">Intensity as a Percent of Maximum Spectrum Peak Intensity</option>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
216 </param>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
217 <when value="percent_tic">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
218 <expand macro="percent_param" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
219 </when>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
220 <when value="percent_max_intensity">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
221 <param name="percent" label="Percent of Maximum Peak Intensity" type="float" value="0.1" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
222 </when>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
223 <when value="quantile">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
224 <param name="q" label="q" type="integer" help="q is the number of partitions to break intensity into, k is the position to pull from. For instance if q=2 and k=1, the peaks above the median intensity will be used and if q=3 and k=2, the middle third of peaks by intensity will be used." value="2" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
225 <param name="k" label="k" type="integer" value="1"/>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
226 <expand macro="percent_param" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
227 </when>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
228 </conditional>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
229 <!-- TODO: Add m/z, intensity thresholds. -->
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
230 </macro>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
231 <macro name="percent_param">
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
232 <param name="percent" label="Percent TIC Threshold" type="float" help="Filter all peaks whose intensity does not exceed this percent of total ion current." value="0.02" />
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
233 </macro>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
234 </macros>
77cc9cc99e15 Initial commit.
galaxyp
parents:
diff changeset
235 </tool>