Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_ms1quant_match_ratio.hpp
1/*
2##############################################################################
3# file: ms_ms1quant_match_ratio.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_ratio.hpp $
12 * @(#)$Revision: 8e4151b262f3acce03627aeb892da3923c8383b8 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $
13 * @(#)$Date: 2021-06-15 17:07:47 +0100 $
14##############################################################################
15 */
16
17#ifndef MS_MS1QUANT_MATCH_RATIO_HPP
18#define MS_MS1QUANT_MATCH_RATIO_HPP
19
20
21// Includes from the standard template library
22#include <string>
23#include <vector>
24
25namespace matrix_science
26{
27 //=========================================================================
33 class ms_ms1quant_match_ratio_body;
34 class ms_quant_method;
35 class ms_fitexy_result;
36
38
41 class MS_MASCOTRESFILE_API ms_ms1quant_match_ratio :
42 public ms_handle
43 {
44 public:
46
56 {
57 RS_EMPTY = 0,
58 RS_OK = 1,
59 RS_ISOLATEDPRECURSORFAILED = 2,
60 RS_INTEFERENCEFAILED = 4,
61 RS_NODATA = 8,
62 RS_FITEXYSIGMA = 16,
63 RS_NEGATIVERATIO = 32,
64 RS_INFINITERATIO = 64,
65 RS_ZERORATIO = 128,
66 RS_DO_NOT_USE = 256,
67 RS_TOTALINTENSITYFAILED = 512,
68 RS_VALID_FLAGS = RS_OK | RS_ISOLATEDPRECURSORFAILED | RS_INTEFERENCEFAILED | RS_NODATA | RS_FITEXYSIGMA | RS_NEGATIVERATIO | RS_INFINITERATIO | RS_ZERORATIO | RS_TOTALINTENSITYFAILED
69 };
70
72 static std::string getXmlCode(ratioStatusCode code);
73
75 static ratioStatusCode getCodeFromXml(std::string text);
76
78 static bool getCodeInfo(ratioStatusCode code, const ms_quant_method & method, double & info);
79
82
84 ms_ms1quant_match_ratio(const ms_ms1quant_match_ratio_body & body);
85
87 std::string getRatioName() const;
88
90 bool isSet() const;
91
93 double getValue() const;
94
96 double getQuality() const;
97
99 bool isValid() const;
100
102 bool isUsedForAverage() const;
103
105 bool isIncluded() const;
106
108 bool getFitexy(ms_fitexy_result & value) const;
109
111 int getStatus() const;
112
114 std::vector<ratioStatusCode> getStatusList() const;
115
116#ifndef SWIG
118 ms_ms1quant_match_ratio_body * body();
120 const ms_ms1quant_match_ratio_body * body() const;
122 void setStatus(const int status);
124 void setValid(const bool valid);
126 void setInclude(const bool include);
128 void setFitexy(const ms_fitexy_result & value);
130 void setValue(const std::string & ratioName, double value, double quality, bool usedForAverage, bool include);
131#endif
132 };
133 // end of quantitation_group
135 //=========================================================================
136
137} // namespace matrix_science
138
139#endif // MS_MS1QUANT_MATCH_RATIO_HPP
140
141/*------------------------------- End of File -------------------------------*/
Parameters and results from least squares fit with errors in both co-ordinates.
Definition: ms_fitexy_result.hpp:40
The status resulting ratio for a peptide found in a match.
Definition: ms_ms1quant_match_ratio.hpp:43
ratioStatusCode
Status codes from fitting ratios.
Definition: ms_ms1quant_match_ratio.hpp:56
An object of this class represent a single quantitation method from quantitation.xml.
Definition: ms_quant_method.hpp:51