18#ifndef MS_MS1QUANT_TIME_ALIGN_HPP
19#define MS_MS1QUANT_TIME_ALIGN_HPP
25namespace matrix_science
33 class ms_ms1quant_time_align_body;
77 bool loadXmlFile(
const std::string & xmlFilename,
const std::string & schemaDirectory);
80 bool saveXmlFile(
const std::string & xmlFilename,
const std::string & schemaDirectory)
const;
83 double getRToffset(
const int myProjectId,
const int otherProjectId,
const double rtInOtherProject,
const double mOverZ)
const;
86 double getEstimatedFeatureWidth(
const int subProjectId,
const double mOverZ,
const double rt)
const;
97 int getBinSize()
const;
101 std::vector<std::vector<std::vector<double>>> & getFinalResults();
104 std::vector<std::vector<std::vector<double>>>& getShiftsToConsensus();
107 std::vector<std::vector<std::vector<double>>>& getShiftsFromConsensus();
110 const std::vector<std::vector<std::vector<double>>> & getFinalResults()
const;
113 const std::vector<std::vector<std::vector<double>>>& getShiftsToConsensus()
const;
116 const std::vector<std::vector<std::vector<double>>>& getShiftsFromConsensus()
const;
126 void setAverageFeatureWidths(
const std::vector<double> & featureWidths);
132 bool getEvaluation(
const int subProject,
double & meanErrorsRaw,
double & meanErrorsAligned,
double & stdevErrorsRaw,
double & stdevErrorsAligned,
double & pearsonCoefficientRaw,
double & pearsonCoefficientAligned);
134 bool getEvaluation(
const int subProject,
double & OUTPUT,
double & OUTPUT,
double & OUTPUT,
double & OUTPUT,
double & OUTPUT,
double & OUTPUT);
144 std::string getStatusAsText(
void)
const;
147 void setAlgorithmName(
const char* algorithmName);
150 std::string getAlgorithmName()
const;
153 const std::vector<int> getSubProjectToFractionMap()
const;
157 ms_ms1quant_time_align_body * body();
159 const ms_ms1quant_time_align_body * body()
const;
168 bool calculateFromConsensuValues(
bool replaceExisting =
false);
171 int getNumSharedPeptides(
const int subProject1,
const int subProject2)
const;
174 void setNumSharedPeptides(
const int subProject1,
const int subProject2,
int count);
177 int getMaxPossibleSharedPeptides(
const int fractionNum)
const;
180 void setMaxPossibleSharedPeptides(
const int fractionNum,
const int value);
183 std::string getWarningMessages(
const warningMessage_t messageType,
const int fractionNum)
const;
186 void setWarningMessages(
const warningMessage_t messageType,
const int fractionNum,
const std::string& message);
189 void setUpFractions(
const std::vector<int> & subProjectToFraction);
191 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
warningMessage_t
Definition: ms_ms1quant_time_align.hpp:62
@ TA_WM_SUBPRJ_HAS_NO_SHARED_PEPTIDES
Supervised time alignment will fail because one or more subprojects have shared peptides with any oth...
Definition: ms_ms1quant_time_align.hpp:65
@ TA_WM_LOW_NUM_SHARED_PEPTIDES_BETWEEN_P1_AND_P2
Supervised time alignment may fail because low number of shared peptides between two subprojects.
Definition: ms_ms1quant_time_align.hpp:64
@ TA_WM_USER_SPEC_AUTO_BUT_USING_UNSUPERVISED
Message to give the user as to why time alignment has defaulted to unsupervised.
Definition: ms_ms1quant_time_align.hpp:66
@ TA_WM_NO_SHARED_PEPTIDES_BETWEEN_P1_AND_P2
Supervised time alignment may fail because no shared peptides between two subprojects.
Definition: ms_ms1quant_time_align.hpp:63
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:162
std::vector< std::vector< std::map< double, double > > > featureWidths_t
[prj][m/z bin][rt->width]
Definition: ms_ms1quant_time_align.hpp:119
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