49 #include <boost/shared_ptr.hpp>
50 #include <boost/make_shared.hpp>
92 double spacing_for_spectra_resampling,
93 const double drift_extra,
95 const std::string& spectrum_addition_method);
116 const std::vector<std::string>& native_ids,
117 const std::vector<std::string>& precursor_ids,
118 const std::vector<double>& normalized_library_intensity,
119 std::vector<OpenSwath::ISignalToNoisePtr>& signal_noise_estimators,
141 const std::vector<std::string>& native_ids_identification,
142 const std::vector<std::string>& native_ids_detection,
143 std::vector<OpenSwath::ISignalToNoisePtr>& signal_noise_estimators,
162 const std::vector<TransitionType> & transitions,
164 const double normalized_feature_rt,
184 const std::vector<TransitionType>& transitions,
185 const std::vector<OpenSwath::SwathMap>& swath_maps,
190 std::vector<double>& mzerror_ppm,
191 const double drift_lower,
192 const double drift_upper,
193 const double drift_target);
232 const std::vector<OpenSwath::SwathMap>& swath_maps,
247 std::vector<double>& normalized_library_intensity);
267 int nr_spectra_to_add,
268 const double drift_lower,
269 const double drift_upper);
288 int nr_spectra_to_add,
289 const double drift_lower,
290 const double drift_upper);
310 int nr_spectra_to_add,
311 const double drift_lower,
312 const double drift_upper);
Scoring of an spectrum at the peak apex of an chromatographic elution peak.
Definition: DIAScoring.h:84
A class that calls the scoring routines.
Definition: OpenSwathScoring.h:60
std::string spectra_addition_method_
Definition: OpenSwathScoring.h:67
void calculateLibraryScores(OpenSwath::IMRMFeature *imrmfeature, const std::vector< TransitionType > &transitions, const CompoundType &compound, const double normalized_feature_rt, OpenSwath_Scores &scores)
Score a single chromatographic feature against a spectral library.
OpenSwathScoring()
Constructor.
void calculateDIAIdScores(OpenSwath::IMRMFeature *imrmfeature, const TransitionType &transition, const std::vector< OpenSwath::SwathMap > &swath_maps, const OpenMS::DIAScoring &diascoring, OpenSwath_Scores &scores, double drift_lower, double drift_upper)
Score a single chromatographic feature using DIA / SWATH scores.
OpenSwath::SpectrumPtr fetchSpectrumSwath(std::vector< OpenSwath::SwathMap > swath_maps, double RT, int nr_spectra_to_add, const double drift_lower, const double drift_upper)
Prepares a spectrum for DIA analysis (multiple map)
int add_up_spectra_
Definition: OpenSwathScoring.h:66
double spacing_for_spectra_resampling_
Definition: OpenSwathScoring.h:65
OpenSwath::SpectrumPtr fetchSpectrumSwath(OpenSwath::SpectrumAccessPtr swath_map, double RT, int nr_spectra_to_add, const double drift_lower, const double drift_upper)
Prepares a spectrum for DIA analysis (single map)
OpenSwath::SpectrumPtr getAddedSpectra_(const OpenSwath::SpectrumAccessPtr &swath_map, double RT, int nr_spectra_to_add, const double drift_lower, const double drift_upper)
Returns an averaged spectrum.
void getNormalized_library_intensities_(const std::vector< TransitionType > &transitions, std::vector< double > &normalized_library_intensity)
Computing the normalized library intensities from the transition objects.
void calculateChromatographicScores(OpenSwath::IMRMFeature *imrmfeature, const std::vector< std::string > &native_ids, const std::vector< std::string > &precursor_ids, const std::vector< double > &normalized_library_intensity, std::vector< OpenSwath::ISignalToNoisePtr > &signal_noise_estimators, OpenSwath_Scores &scores) const
Score a single peakgroup in a chromatogram using only chromatographic properties.
double im_drift_extra_pcnt_
Definition: OpenSwathScoring.h:68
void calculateDIAScores(OpenSwath::IMRMFeature *imrmfeature, const std::vector< TransitionType > &transitions, const std::vector< OpenSwath::SwathMap > &swath_maps, const OpenSwath::SpectrumAccessPtr &ms1_map, const OpenMS::DIAScoring &diascoring, const CompoundType &compound, OpenSwath_Scores &scores, std::vector< double > &mzerror_ppm, const double drift_lower, const double drift_upper, const double drift_target)
Score a single chromatographic feature using DIA / SWATH scores.
void calculateChromatographicIdScores(OpenSwath::IMRMFeature *imrmfeature, const std::vector< std::string > &native_ids_identification, const std::vector< std::string > &native_ids_detection, std::vector< OpenSwath::ISignalToNoisePtr > &signal_noise_estimators, OpenSwath_Ind_Scores &scores) const
Score identification transitions against detection transitions of a single peakgroup in a chromatogra...
OpenSwath::LightTransition TransitionType
Definition: OpenSwathScoring.h:62
double rt_normalization_factor_
Definition: OpenSwathScoring.h:64
OpenSwath_Scores_Usage su_
Definition: OpenSwathScoring.h:69
OpenSwath::LightCompound CompoundType
Definition: OpenSwathScoring.h:61
void initialize(double rt_normalization_factor, int add_up_spectra, double spacing_for_spectra_resampling, const double drift_extra, const OpenSwath_Scores_Usage &su, const std::string &spectrum_addition_method)
Initialize the scoring object.
~OpenSwathScoring()
Destructor.
void calculatePrecursorDIAScores(const OpenSwath::SpectrumAccessPtr &ms1_map, const OpenMS::DIAScoring &diascoring, double precursor_mz, double rt, const CompoundType &compound, OpenSwath_Scores &scores, double drift_lower, double drift_upper)
Score a single chromatographic feature using the precursor map.
Definition: ITransition.h:57
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
A structure to store which scores should be used by the OpenSWATH Algorithm.
Definition: OpenSwathScores.h:51
boost::shared_ptr< Spectrum > SpectrumPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:296
boost::shared_ptr< ISpectrumAccess > SpectrumAccessPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:87
Definition: OpenSwathScores.h:198
A structure to hold the different scores computed by OpenSWATH.
Definition: OpenSwathScores.h:83
Definition: TransitionExperiment.h:161
Definition: TransitionExperiment.h:46