18#ifndef MS_MS1QUANT_TIME_ALIGN_HPP
19#define MS_MS1QUANT_TIME_ALIGN_HPP
25namespace matrix_science
33 class ms_ms1quant_time_align_body;
66 bool loadXmlFile(
const std::string & xmlFilename,
const std::string & schemaDirectory);
69 bool saveXmlFile(
const std::string & xmlFilename,
const std::string & schemaDirectory)
const;
72 double getRToffset(
const int myProjectId,
const int otherProjectId,
const double rtInOtherProject,
const double mOverZ)
const;
75 double getEstimatedFeatureWidth(
const int subProjectId,
const double mOverZ,
const double rt)
const;
86 int getBinSize()
const;
90 std::vector<std::vector<std::vector<double>>> & getFinalResults();
93 std::vector<std::vector<std::vector<double>>>& getShiftsToConsensus();
96 std::vector<std::vector<std::vector<double>>>& getShiftsFromConsensus();
99 const std::vector<std::vector<std::vector<double>>> & getFinalResults()
const;
102 const std::vector<std::vector<std::vector<double>>>& getShiftsToConsensus()
const;
105 const std::vector<std::vector<std::vector<double>>>& getShiftsFromConsensus()
const;
115 void setAverageFeatureWidths(
const std::vector<double> & featureWidths);
121 bool getEvaluation(
const int subProject,
double & meanErrorsRaw,
double & meanErrorsAligned,
double & stdevErrorsRaw,
double & stdevErrorsAligned,
double & pearsonCoefficientRaw,
double & pearsonCoefficientAligned);
123 bool getEvaluation(
const int subProject,
double & OUTPUT,
double & OUTPUT,
double & OUTPUT,
double & OUTPUT,
double & OUTPUT,
double & OUTPUT);
133 std::string getStatusAsText(
void)
const;
136 void setAlgorithmName(
const char* algorithmName);
139 std::string getAlgorithmName()
const;
142 const std::vector<int> getSubProjectToFractionMap()
const;
146 ms_ms1quant_time_align_body * body();
148 const ms_ms1quant_time_align_body * body()
const;
157 bool calculateFromConsensuValues(
bool replaceExisting =
false);
161 void setUpFractions(
const std::vector<int> & subProjectToFraction);
163 void setEvaluation(
int subProject,
double meanErrorsRaw,
double meanErrorsAligned,
double stdevErrorsRaw,
double stdevErrorsAligned,
double pearsonCoefficientRaw,
double pearsonCoefficientAligned);
This class is used as a base class for several Mascot Parser classes.
Definition: ms_errors.hpp:696
Limits for m/z and retention time.
Definition: ms_ms1quant_time_align_limits.hpp:39
Time alignment between multiple runs (raw files) is performed in Mascot Distiller for label free quan...
Definition: ms_ms1quant_time_align.hpp:47
std::map< int, std::vector< int > > fractionToSubProject_t
the vector for each fraction contains 0 based subProject numbers and fraction numbers don't need to b...
Definition: ms_ms1quant_time_align.hpp:151
std::vector< std::vector< std::map< double, double > > > featureWidths_t
[prj][m/z bin][rt->width]
Definition: ms_ms1quant_time_align.hpp:108
status_t
Definition: ms_ms1quant_time_align.hpp:52
@ ST_TA_LOADED_FROM_XML
The time alignment data has been loaded from an xml so does not need to be recalculated.
Definition: ms_ms1quant_time_align.hpp:54
@ ST_TA_NO_DATA
No time alignment data. If the protocol is replicate, this indicates time alignment still needs to be...
Definition: ms_ms1quant_time_align.hpp:53
@ ST_TA_LOADED_FROM_CDB
The time alignment data has been loaded from a cdb file so does not need to be recalculated.
Definition: ms_ms1quant_time_align.hpp:55