Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_distiller_data_search.hpp
1/*
2##############################################################################
3# file: ms_distiller_data_search.hpp
4# 'msparser' toolkit
5# An extracted ion chromatogram
6##############################################################################
7# COPYRIGHT NOTICE
8# Copyright 1998-2014 Matrix Science Limited All Rights Reserved.
9#
10##############################################################################
11* @(#)$Source: parser/inc/ms_distiller_data_search.hpp $
12* @(#)$Revision: d4d14d514a03ef6b6a52a6c2f014cf8c5c4a3560 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $
13* @(#)$Date: 2022-07-19 13:33:41 +0100 $
14##############################################################################
15 */
16
17#ifndef MS_DISTILLER_DATA_SEARCH_HPP
18#define MS_DISTILLER_DATA_SEARCH_HPP
19
20
21// Includes from the standard template library
22#include <string>
23
24
25namespace msparser_internal
26{
27 class ms_XMLHelper;
28 class ms_XMLElement;
29}
30
31namespace matrix_science
32{
33 class ms_quant_configfile;
34
35
36 //=========================================================================
43
51 class MS_MASCOTRESFILE_API ms_distiller_data_search
52 {
53 friend class ms_distiller_data;
54
55 public:
56
58
62 {
63 eAuto = 0,
64 eMudpit = 1,
65 eStandard = 99999999,
66 };
67
69
73 {
74 eGroupAuto = 0,
75 eGroupStandard = 1,
76 eGroupFamily = 2
77 };
78
80
84 {
85 eUnknown = -1,
86 eFASTA = 0,
87 eLibrary = 1,
88 eIntegrated = 2,
89 };
90
93
96 const std::string & taskId,
97 bool isLoaded,
98 const std::string & cacheFileName,
99 const std::string & quantMethodXml,
100 const std::string & mascotServerURL,
101 const std::string & mascotServerVersion,
102 unsigned int flags,
103 unsigned int flags2,
104 bool requireBoldRed,
105 bool showSameset,
106 double showSubset,
107 bool loadUnassigned,
108 double significanceThreshold,
109 eScoring scoring,
110 int reporttop,
111 bool errTolPeptide,
112 eGrouping proteinGrouping,
113 bool percolator,
114 double scoreExpectCutOff,
115 bool showSamesetFamily,
116 bool showSubsetFamily,
117 eSpectralLibrary libraryDisplayOption,
118 bool percolatorUseProteins,
119 bool percolatorUseRT,
120 int minPepLenInPepSummary,
121 bool isTargetFDR = false,
122 const std::string & targetFDRType = "",
123 const std::string & targetFDRStr = ""
124 );
125
126 // Copying constructor for c++ programs - don't document
128
129#ifndef SWIG
130 // Assignment operator for c++ programs - don't document
131 ms_distiller_data_search & operator=(const ms_distiller_data_search & right);
132#endif
134 std::string getTaskId() const;
135
137 bool getLoaded() const;
138
140 std::string getCacheFileName() const;
141
143 std::string getQuantMethodXml() const;
144
146 std::string getMascotServerURL() const;
147
149 bool serverVersionNewerOrSameAs(int major, int minor, int patch) const;
150
152 std::string getMascotSearchURL(const std::string & resultsFilePath) const;
153
155 eGrouping getProteinGrouping() const;
156
158 eScoring getScoring() const;
159
161 double getScoreExpectCutOff() const;
162
164 double getShowSubset() const;
165
167 bool getShowSubsetFamily() const;
168
170 bool getRequireBoldRed() const;
171
173 double getSignificanceThreshold() const; // = minProbability
174
176 int getReporttop() const;
177
179 bool getPercolator() const;
180
182 bool getPercolatorUseProteins() const;
183
185 bool getPercolatorUseRT() const;
186
188 bool getErrTolPeptide() const;
189
191 unsigned int getPeptideSummaryFlags() const;
192
194 unsigned getPeptideSummaryFlags2() const;
195
197 bool getLoadUnassigned() const;
198
200 bool getShowSamesets() const;
201
203 bool getShowSamesetsFamily() const;
204
206 int getMinPepLenInPepSummary() const;
207
209 eSpectralLibrary getSpectralLibraryDisplayOption() const;
210
212 bool isTargetFDR() const;
213
215 std::string getTargetFDRType() const;
216
218 std::string getTargetFDRStr() const;
219
221 double getTargetFDR() const;
222
224 ms_mascotresults::DECOY_STATS_COUNT_TYPE getFDRCountType() const;
225
226 private:
227 // Used internally to read from the rover_data XML file
228 bool extractXml(msparser_internal::ms_XMLHelper & helper, msparser_internal::ms_XMLElement & element);
229 void copyFrom(const ms_distiller_data_search * src);
230 void setMissingBlueOptionValues(const std::string & mascotServerURL,
231 const std::string & mascotServerVersion,
232 int minPepLenInPepSummary,
233 bool percolatorUseProteins,
234 bool percolatorUseRT);
235
236 std::string taskId_;
237 bool isLoaded_;
238 std::string cacheFileName_;
239 std::string quantMethodXml_;
240 std::string mascotServerURL_;
241 std::string mascotServerVersion_;
242 unsigned int flags_;
243 unsigned int flags2_;
244
245 // From blueoptions (same order as schema)
246 bool requireBoldRed_;
247 bool showSameset_;
248 double showSubset_;
249 bool loadUnassigned_;
250 double significanceThreshold_; // = minProbability
251 eScoring scoring_;
252 int reporttop_;
253 bool errTolPeptide_;
254 eGrouping proteinGrouping_;
255 bool percolator_;
256 double scoreExpectCutOff_;
257 bool showSamesetFamily_;
258 bool showSubsetFamily_;
259 eSpectralLibrary libraryDisplayOption_;
260 bool percolatorUseProteins_;
261 bool percolatorUseRT_;
262 int minPepLenInPepSummary_;
263
264 // target fdr
265 bool isTargetFDR_;
266 std::string targetFDRType_;
267 std::string targetFDRStr_;
268 double targetFDR_;
269 };
270 // end of quantitation_group
272 //=========================================================================
273
274} // namespace matrix_science
275
276#endif // MS_DISTILLER_DATA_SEARCH_HPP
277
278/*------------------------------- End of File -------------------------------*/
The details of a Distiller search.
Definition: ms_distiller_data_search.hpp:52
eGrouping
Setting to control how proteins are grouped.
Definition: ms_distiller_data_search.hpp:73
eScoring
Determine whether to use MudPIT or standard (pre-Mascot 2.2) scoring.
Definition: ms_distiller_data_search.hpp:62
eSpectralLibrary
For integrated FASTA and Spectral Library search, determines the default result display option.
Definition: ms_distiller_data_search.hpp:84
Distiller project parameters.
Definition: ms_distiller_data.hpp:49
DECOY_STATS_COUNT_TYPE
Type of object counted by getNumHitsAboveIdentity() and friends.
Definition: ms_mascotresults.hpp:382