48 #include <boost/shared_ptr.hpp> 49 #include <boost/make_shared.hpp> 80 use_coelution_score_(true),
81 use_shape_score_(true),
83 use_library_score_(true),
84 use_elution_model_score_(true),
85 use_intensity_score_(true),
86 use_total_xic_score_(true),
87 use_total_mi_score_(true),
88 use_nr_peaks_score_(true),
91 use_dia_scores_(true),
92 use_sonar_scores(true),
93 use_ms1_correlation(true),
94 use_ms1_fullscan(true),
178 elution_model_fit_score(0),
180 library_norm_manhattan(0),
181 library_rootmeansquare(0),
184 isotope_correlation(0),
185 ind_isotope_correlation(
""),
187 ind_isotope_overlap(
""),
189 ind_massdev_score(
""),
190 xcorr_coelution_score(0),
191 ind_xcorr_coelution_score(
""),
192 xcorr_shape_score(0),
193 ind_xcorr_shape_score(
""),
197 ind_log_sn_score(
""),
198 ind_num_transitions(0),
199 ind_transition_names(
""),
200 ind_area_intensity(
""),
201 ind_total_area_intensity(
""),
202 ind_intensity_score(
""),
203 ind_apex_intensity(
""),
205 ind_log_intensity(
""),
206 ind_intensity_ratio(
""),
208 weighted_coelution_score(0),
209 weighted_xcorr_shape(0),
210 weighted_massdev_score(0),
211 xcorr_ms1_coelution_score(0),
212 xcorr_ms1_shape_score(0),
214 ms1_isotope_correlation(0),
215 ms1_isotope_overlap(0),
223 library_manhattan(0),
231 weighted_mi_score(0),
232 dotprod_score_dia(0),
238 double get_quick_lda_score(
double library_corr_,
double library_norm_manhattan_,
double norm_rt_score_,
double xcorr_coelution_score_,
239 double xcorr_shape_score_,
double log_sn_score_)
const 253 double lda_quick_score =
254 library_corr_ * -0.5319046 +
255 library_norm_manhattan_ * 2.1643962 +
256 norm_rt_score_ * 8.0353047 +
257 xcorr_coelution_score_ * 0.1458914 +
258 xcorr_shape_score_ * -1.6901925 +
259 log_sn_score_ * -0.8002824;
260 return lda_quick_score;
503 void initialize(
double rt_normalization_factor,
505 double spacing_for_spectra_resampling,
525 void calculateChromatographicScores(
527 const std::vector<std::string>& native_ids,
528 const std::string& precursor_chrom_id,
529 const std::vector<double>& normalized_library_intensity,
530 std::vector<OpenSwath::ISignalToNoisePtr>& signal_noise_estimators,
551 void calculateChromatographicIdScores(
553 const std::vector<std::string>& native_ids_identification,
554 const std::vector<std::string>& native_ids_detection,
555 std::vector<OpenSwath::ISignalToNoisePtr>& signal_noise_estimators,
573 void calculateLibraryScores(
575 const std::vector<TransitionType> & transitions,
577 const double normalized_feature_rt,
594 const std::vector<TransitionType> & transitions,
595 std::vector<OpenSwath::SwathMap> swath_maps,
632 const std::vector<OpenSwath::SwathMap> swath_maps,
644 void getNormalized_library_intensities_(
const std::vector<TransitionType> & transitions,
645 std::vector<double>& normalized_library_intensity);
661 double RT,
int nr_spectra_to_add);
677 double RT,
int nr_spectra_to_add);
double dotprod_score_dia
Definition: OpenSwathScoring.h:174
double isotope_overlap
Definition: OpenSwathScoring.h:119
bool use_total_mi_score_
Definition: OpenSwathScoring.h:68
double xcorr_ms1_coelution_score
Definition: OpenSwathScoring.h:146
double isotope_correlation
Definition: OpenSwathScoring.h:117
bool use_dia_scores_
Definition: OpenSwathScoring.h:72
std::string ind_apex_intensity
Definition: OpenSwathScoring.h:136
bool use_nr_peaks_score_
Definition: OpenSwathScoring.h:69
bool use_uis_scores
Definition: OpenSwathScoring.h:77
std::string ind_log_sn_score
Definition: OpenSwathScoring.h:130
double weighted_coelution_score
Definition: OpenSwathScoring.h:142
double sonar_lag
Definition: OpenSwathScoring.h:158
boost::shared_ptr< ISpectrumAccess > SpectrumAccessPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:89
double sonar_trend
Definition: OpenSwathScoring.h:155
std::string ind_mi_ratio
Definition: OpenSwathScoring.h:140
double rt_normalization_factor_
Definition: OpenSwathScoring.h:480
double spacing_for_spectra_resampling_
Definition: OpenSwathScoring.h:482
bool use_elution_model_score_
Definition: OpenSwathScoring.h:65
A class that calls the scoring routines.
Definition: OpenSwathScoring.h:475
OpenSwath_Scores_Usage()
Definition: OpenSwathScoring.h:79
double sn_ratio
Definition: OpenSwathScoring.h:165
boost::shared_ptr< Spectrum > SpectrumPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:270
double weighted_xcorr_shape
Definition: OpenSwathScoring.h:143
bool use_ms1_fullscan
Definition: OpenSwathScoring.h:75
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
int add_up_spectra_
Definition: OpenSwathScoring.h:481
std::string ind_log_intensity
Definition: OpenSwathScoring.h:138
double total_xic
Definition: OpenSwathScoring.h:163
std::string ind_area_intensity
Definition: OpenSwathScoring.h:133
double xcorr_ms1_shape_score
Definition: OpenSwathScoring.h:147
bool use_library_score_
Definition: OpenSwathScoring.h:64
double raw_rt_score
Definition: OpenSwathScoring.h:172
OpenSwath_Scores()
Definition: OpenSwathScoring.h:177
bool use_mi_score_
Definition: OpenSwathScoring.h:71
double library_manhattan
Definition: OpenSwathScoring.h:160
double library_sangle
Definition: OpenSwathScoring.h:115
double sonar_sn
Definition: OpenSwathScoring.h:153
double normalized_experimental_rt
Definition: OpenSwathScoring.h:171
std::string ind_isotope_correlation
Definition: OpenSwathScoring.h:118
std::string ind_total_mi
Definition: OpenSwathScoring.h:137
double get_quick_lda_score(double library_corr_, double library_norm_manhattan_, double norm_rt_score_, double xcorr_coelution_score_, double xcorr_shape_score_, double log_sn_score_) const
Definition: OpenSwathScoring.h:238
double ms1_isotope_correlation
Definition: OpenSwathScoring.h:149
double ms1_ppm_score
Definition: OpenSwathScoring.h:148
std::string ind_xcorr_coelution_score
Definition: OpenSwathScoring.h:124
bool use_sn_score_
Definition: OpenSwathScoring.h:70
double log_sn_score
Definition: OpenSwathScoring.h:129
Scoring of an spectrum at the peak apex of an chromatographic elution peak.
Definition: DIAScoring.h:83
double massdev_score
Definition: OpenSwathScoring.h:121
double yseries_score
Definition: OpenSwathScoring.h:127
std::string ind_total_area_intensity
Definition: OpenSwathScoring.h:134
std::string ind_massdev_score
Definition: OpenSwathScoring.h:122
double sonar_diff
Definition: OpenSwathScoring.h:154
Definition: TransitionExperiment.h:149
double manhatt_score_dia
Definition: OpenSwathScoring.h:175
double ms1_isotope_overlap
Definition: OpenSwathScoring.h:150
double xcorr_coelution_score
Definition: OpenSwathScoring.h:123
bool use_sonar_scores
Definition: OpenSwathScoring.h:73
Definition: TransitionExperiment.h:46
std::string ind_xcorr_shape_score
Definition: OpenSwathScoring.h:126
double calculate_swath_lda_prescore(OpenSwath_Scores scores) const
Definition: OpenSwathScoring.h:299
A structure to store which scores should be used by the Algorithm.
Definition: OpenSwathScoring.h:58
Definition: ITransition.h:55
double ms1_mi_score
Definition: OpenSwathScoring.h:151
std::string ind_mi_score
Definition: OpenSwathScoring.h:167
std::string ind_isotope_overlap
Definition: OpenSwathScoring.h:120
OpenSwath::LightTransition TransitionType
Definition: OpenSwathScoring.h:478
A structure to hold the different scores computed by OpenSWATH.
Definition: OpenSwathScoring.h:109
double library_norm_manhattan
Definition: OpenSwathScoring.h:113
double sonar_shape
Definition: OpenSwathScoring.h:157
OpenSwath_Scores_Usage su_
Definition: OpenSwathScoring.h:483
double xcorr_shape_score
Definition: OpenSwathScoring.h:125
double mi_score
Definition: OpenSwathScoring.h:166
std::string ind_intensity_score
Definition: OpenSwathScoring.h:135
bool use_ms1_correlation
Definition: OpenSwathScoring.h:74
double norm_rt_score
Definition: OpenSwathScoring.h:116
OpenSwath::LightCompound CompoundType
Definition: OpenSwathScoring.h:477
double calculate_lda_single_transition(OpenSwath_Scores scores) const
Definition: OpenSwathScoring.h:291
std::string ind_intensity_ratio
Definition: OpenSwathScoring.h:139
double rt_difference
Definition: OpenSwathScoring.h:170
std::string ind_transition_names
Definition: OpenSwathScoring.h:132
double library_rootmeansquare
Definition: OpenSwathScoring.h:114
double elution_model_fit_score
Definition: OpenSwathScoring.h:111
bool use_ms1_mi
Definition: OpenSwathScoring.h:76
double weighted_massdev_score
Definition: OpenSwathScoring.h:144
double intensity
Definition: OpenSwathScoring.h:162
double sonar_rsq
Definition: OpenSwathScoring.h:156
int ind_num_transitions
Definition: OpenSwathScoring.h:131
bool use_rt_score_
Definition: OpenSwathScoring.h:63
double weighted_mi_score
Definition: OpenSwathScoring.h:168
double bseries_score
Definition: OpenSwathScoring.h:128
double library_dotprod
Definition: OpenSwathScoring.h:161
double library_corr
Definition: OpenSwathScoring.h:112
double nr_peaks
Definition: OpenSwathScoring.h:164
bool use_intensity_score_
Definition: OpenSwathScoring.h:66
bool use_coelution_score_
Definition: OpenSwathScoring.h:61
bool use_total_xic_score_
Definition: OpenSwathScoring.h:67
double calculate_lda_prescore(OpenSwath_Scores scores) const
Definition: OpenSwathScoring.h:263
bool use_shape_score_
Definition: OpenSwathScoring.h:62