17#ifndef MS_MS1QUANT_MATCH_RATIO_HPP
18#define MS_MS1QUANT_MATCH_RATIO_HPP
25namespace matrix_science
33 class ms_ms1quant_match_ratio_body;
34 class ms_quant_method;
35 class ms_fitexy_result;
59 RS_ISOLATEDPRECURSORFAILED = 2,
60 RS_INTEFERENCEFAILED = 4,
63 RS_NEGATIVERATIO = 32,
64 RS_INFINITERATIO = 64,
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
72 static std::string getXmlCode(ratioStatusCode code);
75 static ratioStatusCode getCodeFromXml(std::string text);
78 static bool getCodeInfo(ratioStatusCode code,
const ms_quant_method & method,
double & info);
87 std::string getRatioName()
const;
93 double getValue()
const;
96 double getQuality()
const;
102 bool isUsedForAverage()
const;
105 bool isIncluded()
const;
111 int getStatus()
const;
114 std::vector<ratioStatusCode> getStatusList()
const;
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);
130 void setValue(
const std::string & ratioName,
double value,
double quality,
bool usedForAverage,
bool include);
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