18#ifndef MS_PROTEIN_QUANT_RATIO_HPP
19#define MS_PROTEIN_QUANT_RATIO_HPP
26namespace matrix_science {
27 class ms_peptide_quant_key;
28 class ms_peptide_quant_key_vector;
85 ms_protein_quant_ratio(
const std::string &accession,
int dbIdx,
const std::string &ratioName,
double value,
double stdev,
double stderror,
double hypothesisPvalue,
double normalityPvalue,
unsigned int sampleSize);
107 bool isMissing()
const;
110 std::string getAccession()
const;
116 std::string getRatioName()
const;
119 double getValue()
const;
122 unsigned int getSampleSize()
const;
125 double getStandardDeviation()
const;
128 double getStandardDeviation(std::string &whyUnavailable)
const;
131 double getStandardError()
const;
134 double getStandardError(std::string &whyUnavailable)
const;
149 double getHypothesisPvalue()
const;
152 double getHypothesisPvalue(std::string &whyUnavailable)
const;
155 bool isSignificant(
double threshold = 0.05)
const;
158 double getNormalityPvalue()
const;
161 double getNormalityPvalue(std::string &whyUnavailable)
const;
164 bool isLogNormal(
double threshold = 0.05)
const;
170 std::string serialise()
const;
173 static std::string serialisationFormatVersion();
176 enum PEPQUANTKEY_STATE {
177 PEPQUANTKEY_SKIPPED = 0x0001,
178 PEPQUANTKEY_OUTLIER = 0x0002,
179 PEPQUANTKEY_EXCLUDED = 0x0004
182 enum REASON_WHY_UNAVAILABLE {
183 REASON_NOT_UNAVAILABLE = 0,
184 REASON_MISSING_RATIO = 1,
185 REASON_TYPE_WEIGHTED = 2
188 static std::string lookupWhyUnavailable(
int reason);
192 typedef struct {
int why;
const char *str; } reason_why_t;
193 static const reason_why_t reason_why_db[];
197 ms_protein_quant_ratio(
const std::string &accession,
int dbIdx,
const std::string &ratioName,
double value,
double stdev,
double stderror,
double hypothesisPvalue,
double normalityPvalue,
const std::vector<ms_peptide_quant_key> &activeKeys,
const std::map<ms_peptide_quant_key, int> &inactiveKeys);
203 std::string accession_;
205 std::string ratioName_;
211 int whyStdevUnavailable_;
213 double hypothesisPvalue_;
214 int whyHypothesisPUnavailable_;
216 double normalityPvalue_;
217 int whyNormalityPUnavailable_;
219 unsigned int sampleSize_;
221 std::vector<ms_peptide_quant_key> activeKeys_;
222 std::map<ms_peptide_quant_key, int> inactiveKeys_;
Peptide and protein quantitation using custom peptide ratios and protein-peptide mappings.
Definition: ms_customquantitation.hpp:119
The result of quantitation calculations applied to peptide summary.
Definition: ms_ms1quantitation.hpp:92
Peptide and protein quantitation in a Reporter or Multiplex Mascot results file.
Definition: ms_ms2quantitation.hpp:127
A vector of peptide quant keys.
Definition: ms_peptide_quant_key_vector.hpp:47
Protein abundance in one component relative to another in a quantitation experiment,...
Definition: ms_protein_quant_ratio.hpp:72
Base class for peptide and protein quantitation.
Definition: ms_quantitation.hpp:138