20#ifndef MS_MASCOTRESPEPTIDE_HPP
21#define MS_MASCOTRESPEPTIDE_HPP
28namespace msparser_internal {
29 class ms_peptide_implbase;
30 class ms_mascotresultsbase;
33namespace matrix_science {
35 class ms_mascotresults;
37 class ms_linker_site_vector;
71 std::string peptideStr,
72 int peaksUsedFromIons1,
73 std::string varModsStr,
75 std::string seriesUsedStr,
76 int peaksUsedFromIons2,
77 int peaksUsedFromIons3,
79 bool storeReloadableInfo =
true);
82 SEARCH_PHASE_PRIMARY = 0,
83 SEARCH_PHASE_ERRTOL = 1,
84 SEARCH_PHASE_LIBRARY = 2
100 PSM_CROSSLINK_ALPHA = 1,
101 PSM_CROSSLINK_BETA = 2
121 const SEARCH_PHASE searchPhase,
122 const int missedCleavages,
125 const double observed,
127 const int numIonsMatched,
128 const std::string & peptideStr,
129 const int peaksUsedFromIons1,
130 const std::string & varModsStr,
131 const std::string & summedModsStr,
132 const std::string & localModsStr,
133 const std::string & monoLinkStr,
135 const double ionsScore,
136 const std::string & seriesUsedStr,
137 const int peaksUsedFromIons2,
138 const int peaksUsedFromIons3,
139 const std::string & primaryNlStr,
140 const std::string & summedModsNlStr,
141 const std::string & localModsNlStr,
142 const std::string & substStr,
143 const std::string & componentStr,
145 const bool storeReloadableInfo =
true);
151 const SEARCH_PHASE searchPhase,
153 const double observed,
155 const int numIonsMatched,
156 const int peaksUsedFromIons1,
157 const double ionsScore,
158 const std::string & seriesUsedStr,
159 const int peaksUsedFromIons2,
160 const int peaksUsedFromIons3,
165 const bool storeReloadableInfo =
true);
172 ms_peptide(std::unique_ptr<msparser_internal::ms_peptide_implbase> pImpl);
186 bool clearReloadableInfo();
190 bool getAllProperties(
int & outQuery,
193 int & outMissedCleavages,
196 double & outObserved,
198 int & outNumIonsMatched,
199 std::string & outPeptideStr,
200 int & outPeaksUsedFromIons1,
201 std::string & outVarModsStr,
202 std::string & outSummedModsStr,
203 std::string & outLocalModsStr,
204 std::string & outMonoLinkStr,
205 double & outIonsScore,
206 std::string & outSeriesUsedStr,
207 int & outPeaksUsedFromIons2,
208 int & outPeaksUsedFromIons3,
209 std::string & outPrimaryNlStr,
210 std::string & outSummedModsNlStr,
211 std::string & outLocalModsNlStr,
212 std::string & outComponentStr)
const;
214 bool getAllProperties(
int & OUTPUT,
223 std::string & OUTPUT,
225 std::string & OUTPUT,
226 std::string & OUTPUT,
227 std::string & OUTPUT,
228 std::string & OUTPUT,
230 std::string & OUTPUT,
233 std::string & OUTPUT,
234 std::string & OUTPUT,
235 std::string & OUTPUT,
236 std::string & OUTPUT)
const;
239 int getQuery()
const;
243 void setRank(
int rank);
246 int getPrettyRank()
const;
247 void setPrettyRank(
int rank);
250 int getAmbiguityGroupId()
const;
252 void setAmbiguityGroupId(
int group);
255 bool getAnyMatch()
const;
258 int getMissedCleavages(
const PSM psmComponent = PSM_COMPLETE)
const;
261 double getMrCalc(
const PSM psmComponent = PSM_COMPLETE)
const;
264 double getDelta()
const;
267 double getObserved()
const;
270 double getMrExperimental()
const;
273 int getCharge()
const;
276 int getNumIonsMatched()
const;
279 std::string getPeptideStr(
bool substituteAmbiguous =
true,
const PSM psmComponent = PSM_COMPLETE)
const;
282 int getPeptideLength(
const PSM psmComponent = PSM_COMPLETE)
const;
285 int getPeaksUsedFromIons1()
const;
288 int getPeaksUsedFromIons2()
const;
291 int getPeaksUsedFromIons3()
const;
294 std::string getVarModsStr(
const PSM psmComponent = PSM_COMPLETE)
const;
297 void setVarModsStr(
const std::string str,
const PSM psmComponent = PSM_COMPLETE);
300 std::string getSummedModsStr(
const PSM psmComponent = PSM_COMPLETE)
const;
303 void setSummedModsStr(
const std::string str,
const PSM psmComponent = PSM_COMPLETE);
306 std::string getLocalModsStr(
const PSM psmComponent = PSM_COMPLETE)
const;
309 void setLocalModsStr(
const std::string str,
const PSM psmComponent = PSM_COMPLETE);
312 std::string getParsedLocalModsStr(
const PSM psmComponent = PSM_COMPLETE)
const;
315 double getIonsScore()
const;
318 double getExpectationValue()
const;
321 std::string getSeriesUsedStr()
const;
325 bool substituteAmbiguous =
true)
const;
328 bool isSameVarModsStr(
ms_peptide * peptide)
const;
331 bool isSameSummedModsStr(
ms_peptide * peptide)
const;
334 int getFirstProtAppearedIn()
const;
338 void setFirstProtAppearedIn(
int n);
342 void makeUnassigned();
345 double getIonsIntensity()
const;
347 void setIonsIntensity(
double n);
353 const std::vector<int> getProteins()
const;
356 int getNumProteins()
const;
358 void addProtein(
const int hitNumber);
361 std::string getAmbiguityString(
const PSM psmComponent = PSM_COMPLETE)
const;
363 bool setAmbiguityString(
const std::string val,
const PSM psmComponent = PSM_COMPLETE);
366 std::string getPrimaryNlStr(
const PSM psmComponent = PSM_COMPLETE)
const;
368 void setPrimaryNlStr(
const std::string value,
const PSM psmComponent = PSM_COMPLETE);
371 std::string getSummedModsNlStr(
const PSM psmComponent = PSM_COMPLETE)
const;
373 void setSummedModsNlStr(
const std::string value,
const PSM psmComponent = PSM_COMPLETE);
376 std::string getLocalModsNlStr(
const PSM psmComponent = PSM_COMPLETE)
const;
378 void setLocalModsNlStr(
const std::string value,
const PSM psmComponent = PSM_COMPLETE);
381 std::string getMonoLinkStr(
const PSM psmComponent = PSM_COMPLETE)
const;
383 void setMonoLinkStr(
const std::string value,
const PSM psmComponent = PSM_COMPLETE);
386 bool getIsFromErrorTolerant()
const;
388 void setIsFromErrorTolerant(
const bool isFromErrorTolerant);
391 std::string getComponentStr(
const PSM psmComponent = PSM_COMPLETE)
const;
393 void setComponentStr(
const std::string value,
const PSM psmComponent = PSM_COMPLETE);
396 bool getLessThanMinPepLen()
const;
399 int getNum13C(
const double tol,
const std::string tolu,
const std::string mass_type)
const;
402 void setPercolatorScores(
double posteriorErrorProbability,
404 double internalPercolatorScore);
407 bool anyPercolatorResults()
const;
411 void getPercolatorScores(
double * posteriorErrorProbability,
413 double * internalPercolatorScore,
414 double * mascotIonsScore)
const;
416 void getPercolatorScores(
double * OUTPUT,
419 double * OUTPUT)
const;
423 bool getIsFromLibrary()
const;
425 void setIsFromLibrary(
const bool isFromLibrary);
428 void getAnyProteinTermination(
431 const PSM psmComponent = PSM_COMPLETE)
const;
434 void setInternalSortingScore(
double s);
437 double getInternalSortingScore()
const;
440 int getNumberOfLinkedPeptides()
const;
455 std::unique_ptr<msparser_internal::ms_peptide_implbase> pImpl_;
A vector of linker sites.
Definition: ms_linker_site_vector.hpp:46
Position of an intact link between alpha and beta peptide or a looplink.
Definition: ms_linker_site.hpp:42
Abstract class for either ms_peptidesummary or ms_proteinsummary.
Definition: ms_mascotresults.hpp:83
This class encapsulates a peptide from the mascot results file.
Definition: ms_peptide.hpp:57
PSM_TYPE
Specifies the search pass and origin of the peptide match.
Definition: ms_peptide.hpp:107
ms_peptide(const int query, const int rank, const SEARCH_PHASE searchPhase, const double delta, const double observed, const int charge, const int numIonsMatched, const int peaksUsedFromIons1, const double ionsScore, const std::string &seriesUsedStr, const int peaksUsedFromIons2, const int peaksUsedFromIons3, const ms_peptide &pepAlpha, const ms_peptide &pepBeta, const ms_linker_site &linkerSite, const ms_mascotresults *pResults=0, const bool storeReloadableInfo=true)
Constructor to initialise a crosslinked peptide.
PSM
Type of data to return from accessor methods.
Definition: ms_peptide.hpp:98
ms_peptide(const int query, const int rank, const SEARCH_PHASE searchPhase, const int missedCleavages, const double mrCalc, const double delta, const double observed, const int charge, const int numIonsMatched, const std::string &peptideStr, const int peaksUsedFromIons1, const std::string &varModsStr, const std::string &summedModsStr, const std::string &localModsStr, const std::string &monoLinkStr, const ms_linker_site_vector &loopLinks, const double ionsScore, const std::string &seriesUsedStr, const int peaksUsedFromIons2, const int peaksUsedFromIons3, const std::string &primaryNlStr, const std::string &summedModsNlStr, const std::string &localModsNlStr, const std::string &substStr, const std::string &componentStr, const ms_mascotresults *pResults=0, const bool storeReloadableInfo=true)
Constructor to initialise all values.
This class encapsulates a protein in the mascot results file.
Definition: ms_protein.hpp:57