Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_ms1quant_match.hpp
1/*
2##############################################################################
3# file: ms_ms1quant_match.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_ms1quant_match.hpp $
12 * @(#)$Revision: 13df8a1acb577c00eb17a154317b079d156f9538 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $
13 * @(#)$Date: 2022-01-05 16:48:40 +0000 $
14##############################################################################
15 */
16
17#ifndef MS_MS1QUANT_MATCH_HPP
18#define MS_MS1QUANT_MATCH_HPP
19
20
21// Includes from the standard template library
22#include <string>
23
24namespace matrix_science
25{
26 //=========================================================================
32 class ms_ms1quant_match_body;
33 class ms_protein;
34 class ms_peptide;
35 class ms_quant_component;
36
38
45 class MS_MASCOTRESFILE_API ms_ms1quant_match :
46 public ms_handle
47 {
48 public:
50
54 {
56 CHARGETYPE_ALL
57 };
58
60 static std::string getXmlCode(chargeType code);
61
63 static chargeType getCodeFromXml(std::string text);
64
67
69 ms_ms1quant_match(const ms_ms1quant_match_body & body);
70
71#ifndef SWIG
73 ms_ms1quant_match_body * body();
75 const ms_ms1quant_match_body * body() const;
76
78 bool addProteinHit(const int hit, const int member);
80 void setKey(const int id);
82 void applyThresholds();
83#endif
84
87
89 bool hasIdentifiedComponent() const;
90
92 bool allComponentsIdentified() const;
93
95 std::string getPeptideString() const;
96
98 std::string getVarMods() const;
99
101 int getFirstXicScanId() const;
102
104 void setFirstXicScanId(int value) ;
105
107 int getLastXicScanId() const;
108
110 void setLastXicScanId(int value) ;
111
113 double getDisplayIntensity() const;
114
116 void setDisplayIntensity(double value);
117
119 int getChargeState() const;
120
122 chargeType getChargeType() const;
123
125 std::string getLabelFreeVarMods() const;
126
128 std::string getReadableLabelFreeVarMods() const;
129
131 std::string getConciseLabelFreeVarMods() const;
132
134 int getDataSourceId() const;
135
137 const ms_matrix & getCorrectionMatrix() const;
138
139#if !defined(SWIGJAVA) && !defined(SWIGCSHARP)
141 ms_matrix & getCorrectionMatrix();
142#endif
144 const ms_matrix & getPerfectObservedMatrix() const;
145
146#if !defined(SWIGJAVA) && !defined(SWIGCSHARP)
148 ms_matrix & getPerfectObservedMatrix();
149#endif
151 const ms_matrix & getPredictionMatrix() const;
152
153#if !defined(SWIGJAVA) && !defined(SWIGCSHARP)
155 ms_matrix & getPredictionMatrix();
156#endif
158 int getNumHits() const;
160 const ms_protein * getHit(int index1) const;
161
163 int getNumComponents() const;
165 ms_ms1quant_match_component getComponent(int index) const;
166
168 bool hasComponent(std::string componentName) const;
170 ms_ms1quant_match_component getComponent(std::string componentName) const;
171
172 ms_ms1quant_match_component * addCreatedComponent(
173 const matrix_science::ms_peptide & peptide,
174 const matrix_science::ms_quant_component & component,
176
177 ms_ms1quant_match_component * addCreatedComponent(const std::string & componentName);
178
180 ms_ms1quant_match_component * addCreatedComponent(
182
185
187 bool removeComponent(const std::string & componentName);
188
189 ms_ms1quant_match_component * addIdentifiedComponent(
190 const matrix_science::ms_peptide & peptide,
191 const matrix_science::ms_quant_component & component,
193
195 int getNumPeptideRatios() const;
197 ms_ms1quant_match_ratio getPeptideRatio(int index) const;
198
200 bool hasPeptideRatio(const std::string & ratioName) const;
202 ms_ms1quant_match_ratio getPeptideRatio(const std::string & ratioName) const;
204 void setPeptideRatio(const std::string & ratioName, const ms_ms1quant_match_ratio & ratio);
205
207 ms_ms1quant_charge_state getChargeStateData() const;
209 void setChargeStateData(const ms_ms1quant_charge_state & csData);
210
212 bool isHitRatioOutlier(const std::string & ratioName, int hitId, int memberNumber) const;
214 bool isHitRatioUsedForAverage(const std::string & ratioName, int hitId, int memberNumber) const;
216 bool isHitRatioExcluded(const std::string & ratioName, int hitId, int memberNumber) const;
217
219 void setHitRatioExcluded(const std::string & ratioName, int hitId, int memberNumber);
220
222 void clearHitRatioExcluded(const std::string & ratioName, int hitId, int memberNumber);
223
225 void setHitRatioOutlier(const std::string & ratioName, int hitId, int memberNumber);
226
228 void clearHitRatioOutlier(const std::string & ratioName, int hitId, int memberNumber);
229 };
230
231 // end of quantitation_group
233 //=========================================================================
234
235} // namespace matrix_science
236
237#endif // MS_MS1QUANT_MATCH_HPP
238
239/*------------------------------- End of File -------------------------------*/
A two-dimensional matrix of numbers.
Definition: ms_matrix.hpp:36
A result from a charge state calculation.
Definition: ms_ms1quant_charge_state.hpp:37
A component within a match.
Definition: ms_ms1quant_match_component.hpp:40
The status resulting ratio for a peptide found in a match.
Definition: ms_ms1quant_match_ratio.hpp:43
A peptide that has been matched, in quantitation, to a protein hit.
Definition: ms_ms1quant_match.hpp:47
chargeType
Types of charge state used when matching.
Definition: ms_ms1quant_match.hpp:54
@ CHARGETYPE_ORIGINAL
Charge state found in result file.
Definition: ms_ms1quant_match.hpp:55
Feature key identifying a peptide ratio.
Definition: ms_peptide_quant_key.hpp:69
This class encapsulates a peptide from the mascot results file.
Definition: ms_peptide.hpp:57
This class encapsulates a protein in the mascot results file.
Definition: ms_protein.hpp:57
An object of this class represent a single component element in quantitation.xml.
Definition: ms_quant_component.hpp:48
static const int file_index_value_not_set
A file_index value is a 1 based number. In cases where file_index values are not used (e....
Definition: ms_quant_file_index.hpp:112