Mercurial > repos > pieterlukasse > prims_metabolomics
annotate msclust.xml @ 21:19d8fd10248e
* Added interface to METEXP data store, including tool to fire queries in batch mode
* Improved quantification output files of MsClust, a.o. sorting
mass list based on intensity (last two columns of quantification
files)
* Added Molecular Mass calculation method
author | pieter.lukasse@wur.nl |
---|---|
date | Wed, 05 Mar 2014 17:20:11 +0100 |
parents | c068ed713eb9 |
children | b1015b9241cd |
rev | line source |
---|---|
21
19d8fd10248e
* Added interface to METEXP data store, including tool to fire queries in batch mode
pieter.lukasse@wur.nl
parents:
19
diff
changeset
|
1 <tool name="MsClust" id="msclust2" version="2.0.3"> |
3 | 2 <description>Extracts fragmentation spectra from aligned data</description> |
3 <!-- | |
4 For remote debugging start you listener on port 8000 and use the following as command interpreter: | |
5 java -jar -Xdebug -Xrunjdwp:transport=dt_socket,address=D0100564.wurnet.nl:8000 | |
6 ////////////////////////// | |
7 | |
8 TODO in command below: add conditionals according to options of using or NOT the tolerances/thresholds from previous steps | |
9 --> | |
10 <command interpreter="java -jar "> | |
11 MsClust.jar | |
12 -peaksFileName $inputPeaks | |
13 -dataType $dataType | |
14 -imputationMethod $imputationMethod.type | |
15 #if $imputationMethod.type == "valueRange" | |
16 -rangeUpperLimit $imputationMethod.rangeUpperLimit | |
17 #end if | |
18 -plInputFormat "metalign" | |
19 -potDensFuncType $potDensFuncType.type | |
20 -centerSelectionType $centerSelectionType.type | |
21 -clusteringType $clusteringType.type | |
22 -neighborhoodWindowSize $potDensFuncType.pdf_neighborhoodWindowSize | |
23 -clusterSearchStopCriterium $centerSelectionType.cs_stop_criterion | |
24 -pearsonDistTreshold $potDensFuncType.pdf_pears_treshold | |
25 -pearsonTresholdConfidence $potDensFuncType.pdf_pears_conf | |
26 -pearsonPDReductionThreshold $centerSelectionType.cs_pears_pd_reductionTreshold | |
27 -pearsonPDReductionSlope $centerSelectionType.cs_pears_pd_reductionSlope | |
28 -scanDistTol $potDensFuncType.pdf_scan_toler | |
29 -scanDistanceConfidence $potDensFuncType.pdf_scan_conf | |
30 -centrotypesOut $centrotypesOut | |
31 -simOut $simOut | |
32 -micOut $micOut | |
33 -mspOut $mspOut | |
34 -classOut $classOut | |
35 -outReport $htmlReportFile | |
36 -outReportPicturesPath $htmlReportFile.files_path | |
37 #if $clusteringType.type == "fuzzyCMeans" | |
38 -fcmMembershipWeightingExponent $clusteringType.fcmMembershipWeightingExponent | |
39 -fcmStopCriterion $clusteringType.fcmStopCriterion | |
40 -fcmCorrelationWeight $clusteringType.fcmCorrelationWeight | |
41 -fcmFinalAssemblyType $clusteringType.finalClusterAssembly.type | |
42 #if $clusteringType.finalClusterAssembly.type == "membershipBased" | |
43 -fcmMembershipCutoff $clusteringType.finalClusterAssembly.fcmMembershipCutoff | |
44 #end if | |
45 #end if | |
46 -verbose "false" | |
47 #if $advancedSettings.settings == True | |
48 -advancedSettings YES | |
49 -saturationLimit $advancedSettings.saturationLimit | |
50 -sampleSelectionSortType $advancedSettings.sampleSelectionSortType | |
51 -simSelectionAlgorithm $advancedSettings.simSelectionAlgorithm | |
52 -simMassFilter "$advancedSettings.simMassFilter" | |
53 -simMembershipThreshold $advancedSettings.simMembershipThreshold | |
54 -simSaturationThreshold $advancedSettings.simSaturationThreshold | |
55 -simAbsenseThreshold $advancedSettings.simAbsenseThreshold | |
56 -micMembershipThreshold $advancedSettings.micMembershipThreshold | |
57 -peakIntensityCorrectionAlgorithm $advancedSettings.peakIntensityCorrectionAlgorithm | |
58 #else | |
59 -advancedSettings YES | |
60 -sampleSelectionSortType SIM_INTENSITY | |
61 -peakIntensityCorrectionAlgorithm CORRELATION_BASED | |
62 #end if | |
63 | |
64 </command> | |
65 <inputs> | |
66 <!-- <param name="rankingWeightConfig" type="text" area="true" size="11x70" label="NB - TEST VERSION" | |
67 value="VERSION BEING TESTED AT THIS MOMENT...NOT READY FOR USE..."/> | |
68 --> | |
69 <param name="inputPeaks" type="data" format="txt" label="Ion-wise aligned data (e.g. MetAlign output data)" /> | |
70 <param name="dataType" type="select" size="30" label="Data type"> | |
71 <option value="gcms" selected="true">GC-MS</option> | |
72 <option value="lcms">LC-MS</option> | |
73 </param> | |
74 <conditional name="imputationMethod"> | |
75 <param name="type" type="select" size="30" label="Select the approach used for imputing missing values (optional)" help="select how you generated the values to fill in the data gaps"> | |
76 <option value="none" >none</option> | |
77 <option value="metot" selected="true">MeTot</option> | |
78 <option value="valueRange">Values range</option> | |
79 </param> | |
80 <when value="valueRange"> | |
81 <param name="rangeUpperLimit" type="integer" size="10" value="0" label="Range upper limit" help="values up to this limit will be considered 'generated' values" /> | |
82 </when> | |
19 | 83 <when value="metot"> |
84 </when> | |
85 <when value="none"> | |
86 </when> | |
3 | 87 </conditional> |
88 <conditional name="potDensFuncType"> | |
89 <param name="type" type="select" size="30" label="Select PD function type ====================================================="> | |
90 <option value="original" selected="true">Original</option> | |
91 </param> | |
92 <when value="original"> | |
93 <param name="pdf_neighborhoodWindowSize" type="integer" size="10" value="200" label="Effective Peaks" /> | |
94 <param name="pdf_scan_toler" type="float" size="10" value="10" label="Peak Width, in scans" /> | |
95 <param name="pdf_scan_conf" type="float" size="10" value="80" label="Peak Width confidence (0.0 to 99.99)" help="example: 0[no confidence]...50[good guess]...99.9[quite certain])" /> | |
96 <param name="pdf_pears_treshold" type="float" size="10" value="0.8" label="Correlation threshold (0.0 - 1.0)" /> | |
97 <param name="pdf_pears_conf" type="float" size="10" value="98.0" label="Correlation threshold confidence (0.0 to 99.99)" help="example: 0[no confidence]...50[good guess]...99.9[quite certain])" /> | |
98 </when> | |
99 </conditional> | |
100 <conditional name="centerSelectionType"> | |
101 <param name="type" type="select" label="Initial Centers selection type ==================================================" > | |
102 <option value="original" selected="true">Original - Subtractive potential reductions with stop criterion and REUSE tolerances (from PD function)</option> | |
103 </param> | |
104 <when value="original"> | |
105 <param name="cs_pears_pd_reductionTreshold" type="float" size="10" value="0.8" label="Potential Density reduction (0.0 - 1.0)" /> | |
106 <param name="cs_pears_pd_reductionSlope" type="float" size="10" value="0.01" label="Potential Density reduction softness " /> | |
107 <param name="cs_stop_criterion" type="float" size="10" value="2" label="Stop Criterion " /> | |
108 </when> | |
109 </conditional> | |
110 <conditional name="clusteringType"> | |
111 <param name="type" type="select" label="Classify using ==========================================================="> | |
112 <option value="original" selected="true">Original - Fuzzy clustering, keep original centers and REUSE (scan distance) tolerances</option> | |
113 <option value="fuzzyCMeans">(experimental) Fuzzy C-Means - Fuzzy clustering, optimize centers</option> | |
114 </param> | |
115 <when value="original"> | |
116 <!-- nothing --> | |
117 </when> | |
19 | 118 <!-- one idea would be to have clustering specific tolerance values, not reusing the centrotype selection ones |
3 | 119 <when value="originalNewTol"> |
120 <param name="clust_scan_toler" type="float" size="10" value="10" label="Peak Width, in scans" /> | |
121 <param name="clust_scan_slope" type="float" size="10" value="2" label="Peak Width margin softness" /> | |
122 </when> | |
19 | 123 --> |
3 | 124 <when value="fuzzyCMeans"> |
125 <param name="fcmMembershipWeightingExponent" type="float" size="10" value="2.0" label="Membership Weighting Exponent" help="Influences cluster center repositioning in the iterations 1.1 (exploratory) to around 3.0 (conservative)" /> | |
126 <param name="fcmStopCriterion" type="float" size="10" value="0.05" label="Stop Criterion" help="When convergence is 'reached' (e.g. 0.05 means memberships only changed with 5% in last iteration)" /> | |
127 <param name="fcmCorrelationWeight" type="float" size="10" value="2" label="Correlation weight factor" help="Increase this if you think the correlation is reliable (e.g. you have a high number of samples)" /> | |
128 <conditional name="finalClusterAssembly"> | |
129 <param name="type" type="select" label="Final cluster assembly" > | |
130 <option value="original" selected="true">Original - distance based</option> | |
131 <option value="membershipBased">Membership based</option> | |
132 </param> | |
133 <when value="membershipBased"> | |
134 <param name="fcmMembershipCutoff" type="select" label="Maximum allowed peak overlap" > | |
135 <option value="0.05" >~7 clusters</option> | |
136 <option value="0.10" >~5 clusters</option> | |
137 <option value="0.20" >~3 clusters</option> | |
138 </param> | |
139 </when> | |
140 <when value="original"> | |
141 <!-- nothing --> | |
142 </when> | |
143 </conditional> | |
144 </when> | |
145 </conditional> | |
146 | |
147 <param name="summaryReport" type="boolean" checked="true" label="Generate summary report" help="NB: this will increase the processing time (in some cases up to a few extra minutes)"/> | |
148 | |
149 <conditional name="advancedSettings"> | |
150 <param name="settings" type="boolean" truevalue="Yes" falsevalue="No" checked="false" label="Advanced settings ========================================================"/> | |
151 <when value="Yes"> | |
152 <param name="saturationLimit" optional="true" type="integer" size="10" label="Saturation limit (optional)" help="fill in if you have saturation problems in your data" /> | |
153 <param name="sampleSelectionSortType" type="select" label="Sample selection scheme for spectrum peak intensity correction algorithm (optional/experimental)" help="The intensity values to use to select the samples for each cluster/metabolite in which it is most intense/abundant. These samples are used in the peak intensity correction (see parameter below). Use this option to try to avoid samples that have insufficient signal or saturation." > | |
154 <option value="None">None</option> | |
155 <!-- in order of best FORWARD scoring when tested on /test/data/report_test_sets/(P2) Relative peak heights in spectra/Input (Test set 1) --> | |
156 <option value="SIM_INTENSITY" selected="true">SIM intensities</option> | |
157 <option value="MAX_INTENSITY">Maximum intensities</option> | |
158 <option value="CENTROTYPE_INTENSITY">Centrotype peak intensities</option> | |
159 <option value="MIC_INTENSITY">MIC intensities</option> | |
160 </param> | |
161 <param name="peakIntensityCorrectionAlgorithm" type="select" label="Spectrum peak intensity correction algorithm (optional/experimental)" help="Whether spectrum peak heights should be adjusted according to their membership to the cluster or to their correlation to the cluster's centrotype ion" > | |
162 <option value="MEMBERSHIP_BASED">Membership based (msclust 1.0 mode)</option> | |
163 <option value="CORRELATION_BASED" selected="true">Correlation based</option> | |
164 </param> | |
165 <param name="simSelectionAlgorithm" type="select" label="SIM selection algorithm (experimental)" help="Set this if you want to deviate from the standard which is: allow shared SIM peaks for GC-MS data, and force unique SIM peaks for LC-MS data"> | |
166 <option value="" selected="true"></option> | |
167 <option value="uniqueSIM">Unique SIM peak</option> | |
168 <option value="sharedSIM">Shared SIM peak</option> | |
169 </param> | |
170 <param name="simMassFilter" type="text" optional="true" size="30" label="SIM mass exclusion list" help="Comma-separated list of masses NOT to use as SIM peaks. E.g. '73,147,...' " /> | |
171 <param name="simMembershipThreshold" optional="true" type="float" size="10" label="SIM membership threshold" help="Minimum membership a peak should have to qualify as a SIM candidate. E.g. 0.8 " /> | |
172 <param name="simSaturationThreshold" optional="true" type="float" size="10" label="SIM saturation threshold (%)" help="Maximum % of samples in which a SIM candidate peak may be saturated. If the candidate peak exceeds this threshold, then another peak is chosen. If no peak can be found this criteria, mass 0 is reported" /> | |
173 <param name="simAbsenseThreshold" optional="true" type="float" size="10" label="SIM absence threshold (%)" help="Maximum % of samples in which a SIM candidate peak may be absent. If the candidate peak exceeds this threshold, then another peak is chosen. If no peak can be found meeting this criteria, mass 0 is reported" /> | |
174 | |
175 <param name="micMembershipThreshold" optional="true" type="float" size="10" label="MIC membership threshold" help="Minimum membership a peak should have to be counted in the MIC sum. E.g. 0.8 " /> | |
176 | |
177 </when> | |
19 | 178 <when value="No"> |
179 </when> | |
3 | 180 </conditional> |
181 | |
182 | |
183 </inputs> | |
184 <outputs> | |
185 <data name="centrotypesOut" format="msclust.csv" label="${tool.name} on ${on_string} - centrotypes file"/> | |
186 <data name="simOut" format="msclust.csv" label="${tool.name} on ${on_string} - SIM file"/> | |
187 <data name="micOut" format="msclust.csv" label="${tool.name} on ${on_string} - MIC file"/> | |
188 <data name="mspOut" format="msp" label="${tool.name} on ${on_string} - SPECTRA file"/> | |
189 <data name="classOut" format="msclust.csv" label="${tool.name} on ${on_string} - Classification file"/> | |
190 <data name="htmlReportFile" format="html" label="${tool.name} on ${on_string} - HTML report"> | |
191 <!-- If the expression is false, the file is not created --> | |
192 <filter>( summaryReport == True )</filter> | |
193 </data> | |
194 </outputs> | |
195 <tests> | |
196 <!-- find out how to use --> | |
197 </tests> | |
198 <help> | |
199 | |
200 <!-- see also http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#hyperlink-targets --> | |
201 | |
202 .. class:: infomark | |
203 | |
204 This tool extracts spectra from ion-wise aligned MS(/MS) results. It uses expression profiles and | |
205 retention times of the putative ions to cluster them. Each cluster is then used to generate | |
206 one spectrum containing the clustered ions (peaks). | |
207 | |
4 | 208 .. image:: msclust_summary.png |
3 | 209 |
210 | |
211 ----- | |
212 | |
213 **Output** | |
214 | |
215 This tools returns a number of ouptut files and a small report. | |
216 | |
217 **Parameters index** | |
218 | |
219 | |
220 *Select the approach used for imputing missing values:* only select this if you have used a specific method to | |
221 fill in the data gaps in the input file. One example is replacing zero values by some randomly generated low value. | |
222 If MeTot is chosen, then a value is considered generated if: the value contains a dot '.' and some number | |
223 other than 0 (zero) after the dot. | |
224 | |
225 *Effective Peaks:* Neighborhood window size to consider when calculating density. Smaller values increase | |
226 performance but are less reliable. | |
227 | |
228 *Peak Width, in scans:* Scan window width of scans to consider 'close'. One can see this as the | |
229 'tolerated variation in scans' for the apex positions of the fragment peaks composing a cluster. | |
230 Note: if MetAlign was used, this is the variation *after* pre-processing by MetAlign. | |
231 | |
232 *Peak Width confidence:* The higher the confidence, the stricter the threshold. | |
233 | |
234 *Correlation threshold (0.0 - 1.0):* Tolerance center for pearson distance calculation. The higher this value, | |
235 the higher the correlation between 2 items has to be for them to be considered 'close'. | |
236 | |
237 *Correlation threshold confidence:* The higher the confidence, the stricter the threshold. `More...`__ | |
238 | |
239 *Potential Density reduction (0.0 - 1.0):* Reduction tolerance center for pearson distance calculation. | |
240 The higher this value, the less the low correlated items get reduced, getting a chance to form a cluster of their own. | |
241 | |
242 *Potential Density reduction softness:* Reduction curve slope for pearson distance tolerance. Lower | |
243 values = stricter separation at the value determined in 'Potential Density reduction' above | |
244 (TODO review this comment). | |
245 | |
246 *Stop Criterion:* When to stop reducing and looking for new clusters. Lower values = more iterations | |
247 | |
13 | 248 .. __: javascript:window.open('.. image:: confidence_and_slope_params_explain.png'.replace('.. image:: ', ''),'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes') |
3 | 249 |
250 | |
251 ----- | |
252 | |
253 **Output files described below** | |
254 | |
255 ----- | |
256 | |
257 *SPECTRA:* this file can be submitted to NIST for identification of the spectra. | |
258 | |
259 `Click here for more details on the Sample selection and Spectrum peak intensity correction algorithm parameters related to SPECTRA generation`_ | |
260 | |
14 | 261 .. _Click here for more details on the Sample selection and Spectrum peak intensity correction algorithm parameters related to SPECTRA generation: javascript:window.open('.. image:: sample_sel_and_peak_height_correction.png'.replace('.. image:: ', ''),'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes') |
3 | 262 |
263 ----- | |
264 | |
265 *MIC:* stands for Measured Ions Count -> it contains, for each cluster, the sum of the ion count | |
266 values (corrected by their membership) for all MEASURED cluster ions in the given sample. | |
267 | |
268 The MIC for a **cluster i** in **sample s**, where **cluster i** has **n** members is thus: | |
269 | |
270 sum ( [intensity of member n in **sample s**] x [membership value of member n in **cluster i** ] ) | |
271 | |
272 ----- | |
273 | |
274 *SIM:* stands for Selective Ion Mode -> it contains, for each cluster, the intensity values of the | |
275 most representative member ion peak of this cluster. The most representative member peak is the one with the | |
276 highest membership*average_intensity. This definition leads to conflicts as a peak can have a | |
277 membership in two or more clusters. The assignment of a SIM peak to a cluster depends on | |
278 the configured data type (LC or GC-MS). NB: this can be overruled in the "advanced settings": | |
279 | |
280 (1) LC-MS SIM: select SIM peak only once and for the centrotype in which this specific mass has its | |
281 highest membership; for neighboring centrotypes use its "second best SIM", etcetera. In other words, | |
282 if the SIM peak has been identified as the SIM in more than 1 cluster, assign as SIM to the cluster | |
283 with highest membership. Continue searching for other SIM peaks to assign to the other clusters until | |
284 all ambiguities are solved. | |
285 | |
286 (2) GC-MS SIM: the SIM peak can be "shared" by multiple clusters. However, the intensity values are corrected | |
287 by the membership value of the peak in the cluster in case the SIM peak is "shared". If the SIM peak is not | |
288 "shared" then the "raw" intensity values of the SIM peak are recorded in the SIM file. | |
289 | |
290 `Click here for more details on the SIM output file`_ | |
291 | |
15 | 292 .. _Click here for more details on the SIM output file: javascript:window.open('.. image:: sample_SIM.png'.replace('.. image:: ', ''),'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes') |
3 | 293 |
294 | |
295 | |
296 </help> | |
297 </tool> |