38 #include <boost/math/special_functions/fpclassify.hpp> 39 #include <boost/numeric/conversion/cast.hpp> 41 #include <OpenMS/OPENSWATHALGO/OpenSwathAlgoConfig.h> 120 void initializeXCorrContrastMatrix(
OpenSwath::IMRMFeature* mrmfeature,
const std::vector<String>& native_ids_set1,
const std::vector<String>& native_ids_set2);
123 void initializeXCorrPrecursorMatrix(
OpenSwath::IMRMFeature* mrmfeature,
const std::vector<String>& precursor_ids);
126 void initializeXCorrPrecursorContrastMatrix(
OpenSwath::IMRMFeature* mrmfeature,
const std::vector<String>& precursor_ids,
const std::vector<String>& native_ids);
129 void initializeXCorrPrecursorCombinedMatrix(
OpenSwath::IMRMFeature* mrmfeature,
const std::vector<String>& precursor_ids,
const std::vector<String>& native_ids);
132 double calcXcorrCoelutionScore();
135 double calcXcorrCoelutionWeightedScore(
const std::vector<double>& normalized_library_intensity);
138 double calcXcorrContrastCoelutionScore();
141 std::string calcSeparateXcorrContrastCoelutionScore();
144 double calcXcorrPrecursorCoelutionScore();
147 double calcXcorrPrecursorContrastCoelutionScore();
150 double calcXcorrPrecursorCombinedCoelutionScore();
153 double calcXcorrShapeScore();
156 double calcXcorrShapeWeightedScore(
const std::vector<double>& normalized_library_intensity);
159 double calcXcorrContrastShapeScore();
162 std::string calcSeparateXcorrContrastShapeScore();
165 double calcXcorrPrecursorShapeScore();
168 double calcXcorrPrecursorContrastShapeScore();
171 double calcXcorrPrecursorCombinedShapeScore();
175 const std::vector<TransitionType>& transitions,
double& correlation,
176 double& norm_manhattan,
double& manhattan,
double& dotprod,
177 double& spectral_angle,
double& rmsd);
180 static double calcRTScore(
const PeptideType& peptide,
double normalized_experimental_rt);
186 std::vector<OpenSwath::ISignalToNoisePtr>& signal_noise_estimators);
189 std::vector<OpenSwath::ISignalToNoisePtr>& signal_noise_estimators);
192 const std::vector< std::vector<double> > & getMIMatrix()
const;
196 const std::vector< std::vector<double> > & getMIContrastMatrix()
const;
200 const std::vector< std::vector<double> > & getMIPrecursorContrastMatrix()
const;
204 const std::vector< std::vector<double> > & getMIPrecursorCombinedMatrix()
const;
211 void initializeMIContrastMatrix(
OpenSwath::IMRMFeature* mrmfeature, std::vector<String> native_ids_set1, std::vector<String> native_ids_set2);
217 void initializeMIPrecursorContrastMatrix(
OpenSwath::IMRMFeature* mrmfeature,
const std::vector<String>& precursor_ids,
const std::vector<String>& native_ids);
220 void initializeMIPrecursorCombinedMatrix(
OpenSwath::IMRMFeature* mrmfeature,
const std::vector<String>& precursor_ids,
const std::vector<String>& native_ids);
222 double calcMIScore();
223 double calcMIWeightedScore(
const std::vector<double>& normalized_library_intensity);
224 double calcMIPrecursorScore();
225 double calcMIPrecursorContrastScore();
226 double calcMIPrecursorCombinedScore();
227 std::string calcSeparateMIContrastScore();
std::string String
Definition: MRMScoring.h:86
This class implements different scores for peaks found in SRM/MRM.
Definition: MRMScoring.h:74
boost::shared_ptr< Spectrum > SpectrumPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:295
std::vector< std::vector< XCorrArrayType > > XCorrMatrixType
Cross Correlation matrix.
Definition: MRMScoring.h:84
std::vector< std::vector< double > > mi_matrix_
the precomputed mutual information matrix
Definition: MRMScoring.h:254
OpenSwath::SpectrumPtr SpectrumType
Definition: MRMScoring.h:88
Definition: MRMScoring.h:50
boost::shared_ptr< OpenSwath::IFeature > FeatureType
Definition: MRMScoring.h:93
std::vector< std::vector< double > > mi_precursor_contrast_matrix_
the precomputed contrast mutual information matrix against the MS1 trace
Definition: MRMScoring.h:263
XCorrMatrixType xcorr_precursor_matrix_
the precomputed cross correlation matrix of the MS1 trace
Definition: MRMScoring.h:243
std::vector< std::vector< double > > mi_precursor_matrix_
the precomputed mutual information matrix of the MS1 trace
Definition: MRMScoring.h:260
Definition: TransitionExperiment.h:149
Definition: TransitionExperiment.h:46
XCorrMatrixType xcorr_contrast_matrix_
the precomputed contrast cross correlation
Definition: MRMScoring.h:239
Definition: ITransition.h:55
OpenSwath::LightTransition TransitionType
Definition: MRMScoring.h:89
XCorrMatrixType xcorr_precursor_combined_matrix_
the precomputed cross correlation with the MS1 trace
Definition: MRMScoring.h:250
OpenSwath::LightCompound PeptideType
Definition: MRMScoring.h:90
XCorrMatrixType xcorr_precursor_contrast_matrix_
the precomputed cross correlation against the MS1 trace
Definition: MRMScoring.h:246
OpenSwath::LightProtein ProteinType
Definition: MRMScoring.h:91
std::vector< std::vector< double > > mi_contrast_matrix_
the precomputed contrast mutual information matrix
Definition: MRMScoring.h:257
Definition: TransitionExperiment.h:200
std::vector< std::vector< double > > mi_precursor_combined_matrix_
the precomputed contrast mutual information matrix with the MS1 trace
Definition: MRMScoring.h:267