Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_searchparams.hpp
1/*
2##############################################################################
3# file: ms_mascotresparams.hpp #
4# 'msparser' toolkit #
5# Encapsulates the parameters & masses sections from the mascot results file #
6##############################################################################
7# COPYRIGHT NOTICE #
8# Copyright 1998-2019 Matrix Science Limited All Rights Reserved. #
9# #
10##############################################################################
11# $Archive:: /MowseBranches/ms_mascotresfile_1.2/include/ms_mascotrespa $ #
12# $Author: villek@matrixscience.com $ #
13# $Date: 2024-09-23 15:59:15 +0100 $ #
14# $Revision: 80290236f1981378c76180c6677fb9983e5275d5 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $ #
15# $NoKeywords:: $ #
16##############################################################################
17*/
18
19#ifndef MS_MASCOTRESPARAMS_HPP
20#define MS_MASCOTRESPARAMS_HPP
21
22
23// Includes from the standard template library
24#include <string>
25
26namespace msparser_internal
27{
28 class ms_searchparamsbase;
29 class ms_searchparams_dat;
30 class ms_searchparams_msr;
31}
32namespace matrix_science {
33
40
46 class MS_MASCOTRESFILE_API ms_searchparams
47 {
48 friend class ms_mascotresfilebase;
49 public:
50
52
60 MSM_NOT_PERMITTED = 0x0000,
61 MSM_EXCLUSIVE_PLUS_VARIABLE = 0x0001
62 };
63
66
67
70
72 std::string getLICENSE();
73#ifndef SWIGCSHARP
75 std::string getCOM();
76#else
77 std::wstring getCOM() {
78 return getCOMWide();
79 };
80#endif
82 int getSEG();
83
85 double getTOL();
86
88 std::string getTOLU();
89
91 double getITOL();
92
94 std::string getITOLU();
95
97 int getPFA();
98
100 std::string getDB(int idx = 1);
101
103 int getNumberOfDatabases();
104
106 std::string getMODS();
107
109 std::string getMASS();
110
112 MASS_TYPE getMassType();
113
115 std::string getCLE();
116
118 std::string getFILENAME();
119
121 std::string getDATAURL();
122
124 std::string getQUE();
125
127 std::string getSEARCH();
128
129#ifndef SWIGCSHARP
131 std::string getUSERNAME();
132#else
133 std::wstring getUSERNAME() {
134 return getUSERNAMEWide();
135 };
136#endif
137
138#ifndef SWIGCSHARP
140 std::string getUSEREMAIL();
141#else
142 std::wstring getUSEREMAIL() {
143 return getUSEREMAILWide();
144 };
145#endif
146
148 int getUSERID();
149
151 std::string getCHARGE();
152
154 std::string getINTERMEDIATE();
155
157 int getREPORT();
158
160 bool getOVERVIEW();
161
163 std::string getFORMAT();
164
166 std::string getFORMVER();
167
169 std::string getIT_MODS();
170
172 std::string getUSERField(int num);
173
175 std::string getAllUSERParams() const;
176
178 double getPRECURSOR();
179
181 std::string getTAXONOMY();
182
184 std::string getREPTYPE();
185
187 std::string getACCESSION();
188
190 int getSUBCLUSTER();
191
193 bool getICAT();
194
196 std::string getINSTRUMENT();
197
199 bool getERRORTOLERANT();
200
202 std::string getRULES();
203
205 double getMinInternalMass();
206
208 double getMaxInternalMass();
209
211 bool hasINTERNALS() const;
212
214 double getResidueMass(char residue);
215
217 double getCTermMass();
218
220 double getNTermMass();
221
223 double getHydrogenMass() const;
224
226 double getOxygenMass() const;
227
229 double getCarbonMass() const;
230
232 double getNitrogenMass() const;
233
235 double getElectronMass() const;
236
237 // Returns the name of the specified variable modification selected by the user.
238 std::string getVarModsName(int num) const;
239
241 double getVarModsDelta(int num);
242
244 double getVarModsNeutralLoss(int num);
245
247 std::vector<double> getVarModsNeutralLosses(int num) const;
248
250 std::vector<double> getVarModsPepNeutralLoss(int num);
251
253 std::vector<double> getVarModsReqPepNeutralLoss(int num);
254
255 // Returns the name of the specified fixed modification.
256 std::string getFixedModsName(int num) const;
257
259 double getFixedModsDelta(int num);
260
262 double getFixedModsNeutralLoss(int num);
263
265 std::string getFixedModsResidues(int num) const;
266
268 int getNumberOfLibraryMods() const;
269
271 std::string getLibraryModName(int num) const;
272
274 double getLibraryModDelta(int num) const;
275
277 std::string getErrTolParentFilename();
278
280 std::string getQUANTITATION() const;
281
283 std::string getCROSSLINKING() const;
284
286 int getPEP_ISOTOPE_ERROR() const;
287
289 int getDECOY() const;
290
292 double getTARGET_FDR_PERCENT() const;
293
295 int getPERCOLATE() const;
296
298 std::vector<std::string> getML_ADAPTER_PARAM() const;
299
301 int getLIBRARY_SEARCH() const;
302
304 unsigned int getMULTI_SITE_MODS() const;
305
306 protected:
307 // Not safe to copy or assign this object.
308#ifndef SWIG
309 ms_searchparams(const ms_searchparams & rhs);
310 ms_searchparams & operator=(const ms_searchparams & rhs);
311#endif
312 private:
313
314 std::shared_ptr<msparser_internal::ms_searchparamsbase> impl_;
315
316 std::wstring getCOMWide();
317 std::wstring getUSERNAMEWide();
318 std::wstring getUSEREMAILWide();
319
320 bool isDefaultMass(const std::string symbol) const;
321
322 }; // end of resfile_group
324} // matrix_science namespace
325
326#endif // MS_MASCOTRESPARAMS_HPP
327
328/*------------------------------- End of File -------------------------------*/
Abstract base class of ms_mascotresfile_dat and ms_mascotresfile_msr.
Definition: ms_mascotresfilebase.hpp:72
This class encapsulates the search parameters in the Mascot results file.
Definition: ms_searchparams.hpp:47
MULTI_SITE_MODS
Possible values for MULTI_SITE_MODS.
Definition: ms_searchparams.hpp:59
~ms_searchparams()
Should never need to call this destructor directly.
Definition: ms_searchparams.hpp:69