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: 1db06e98bca152b61622d19400e2b814164d92db | MSPARSER_REL_3_1_0-2025-07-27-0-gea47708fac $
13* @(#)$Date: 2024-10-14 16:22:48 +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 const std::string & mlAdapterSettings = ""
125 );
126
127 // Copying constructor for c++ programs - don't document
129
130#ifndef SWIG
131 // Assignment operator for c++ programs - don't document
132 ms_distiller_data_search & operator=(const ms_distiller_data_search & right);
133#endif
135 std::string getTaskId() const;
136
138 bool getLoaded() const;
139
141 std::string getCacheFileName() const;
142
144 std::string getQuantMethodXml() const;
145
147 std::string getMascotServerURL() const;
148
150 bool serverVersionNewerOrSameAs(int major, int minor, int patch) const;
151
153 std::string getMascotSearchURL(const std::string & resultsFilePath) const;
154
156 eGrouping getProteinGrouping() const;
157
159 eScoring getScoring() const;
160
162 double getScoreExpectCutOff() const;
163
165 double getShowSubset() const;
166
168 bool getShowSubsetFamily() const;
169
171 bool getRequireBoldRed() const;
172
174 double getSignificanceThreshold() const; // = minProbability
175
177 int getReporttop() const;
178
180 bool getPercolator() const;
181
183 bool getPercolatorUseProteins() const;
184
186 bool getPercolatorUseRT() const;
187
189 bool getErrTolPeptide() const;
190
192 unsigned int getPeptideSummaryFlags() const;
193
195 unsigned getPeptideSummaryFlags2() const;
196
198 bool getLoadUnassigned() const;
199
201 bool getShowSamesets() const;
202
204 bool getShowSamesetsFamily() const;
205
207 int getMinPepLenInPepSummary() const;
208
210 eSpectralLibrary getSpectralLibraryDisplayOption() const;
211
213 bool isTargetFDR() const;
214
216 std::string getTargetFDRType() const;
217
219 std::string getTargetFDRStr() const;
220
222 double getTargetFDR() const;
223
225 ms_mascotresults::DECOY_STATS_COUNT_TYPE getFDRCountType() const;
226
228 std::string getMachineLearningAdapterSettings() const;
229
230 private:
231 // Used internally to read from the rover_data XML file
232 bool extractXml(msparser_internal::ms_XMLHelper & helper, msparser_internal::ms_XMLElement & element);
233 void copyFrom(const ms_distiller_data_search * src);
234 void setMissingBlueOptionValues(const std::string & mascotServerURL,
235 const std::string & mascotServerVersion,
236 int minPepLenInPepSummary,
237 bool percolatorUseProteins,
238 bool percolatorUseRT);
239
240 std::string taskId_;
241 bool isLoaded_;
242 std::string cacheFileName_;
243 std::string quantMethodXml_;
244 std::string mascotServerURL_;
245 std::string mascotServerVersion_;
246 unsigned int flags_;
247 unsigned int flags2_;
248
249 // From blueoptions (same order as schema)
250 bool requireBoldRed_;
251 bool showSameset_;
252 double showSubset_;
253 bool loadUnassigned_;
254 double significanceThreshold_; // = minProbability
255 eScoring scoring_;
256 int reporttop_;
257 bool errTolPeptide_;
258 eGrouping proteinGrouping_;
259 bool percolator_;
260 double scoreExpectCutOff_;
261 bool showSamesetFamily_;
262 bool showSubsetFamily_;
263 eSpectralLibrary libraryDisplayOption_;
264 bool percolatorUseProteins_;
265 bool percolatorUseRT_;
266 int minPepLenInPepSummary_;
267 std::string mlAdapterSettings_;
268
269 // target fdr
270 bool isTargetFDR_;
271 std::string targetFDRType_;
272 std::string targetFDRStr_;
273 double targetFDR_;
274 };
275 // end of quantitation_group
277 //=========================================================================
278
279} // namespace matrix_science
280
281#endif // MS_DISTILLER_DATA_SEARCH_HPP
282
283/*------------------------------- 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