23 class TheoreticalSpectrumGenerator;
107 double& isotope_corr,
108 double& isotope_overlap)
const;
129 const std::vector<double>& normalized_library_intensity,
132 double& ppm_score_weighted,
133 std::vector<double>& diff_ppm)
const;
148 double& ppm_score)
const;
165 double& isotope_corr,
double& isotope_overlap)
const;
181 double& isotope_corr,
double& isotope_overlap,
const EmpiricalFormula& sum_formula)
const;
199 int charge,
const RangeMobility& im_range,
double& bseries_score,
double& yseries_score)
const;
212 const std::vector<TransitionType>& transitions,
215 double& manhattan)
const;
224 return dia_extract_window_;
234 return dia_extraction_ppm_;
254 double& isotope_corr,
255 double& isotope_overlap)
const;
286 int putative_fragment_charge)
const;
311 std::vector<double>& isotopes_int)
const;
Representation of a peptide/protein sequence.
Definition AASequence.h:88
Scoring of an spectrum at the peak apex of an chromatographic elution peak.
Definition DIAScoring.h:64
double getDIAExtractionWindow() const
Return the DIA extraction window.
Definition DIAScoring.h:222
bool isDIAExtractionPPM() const
Return whether the DIA extraction window is interpreted in ppm.
Definition DIAScoring.h:232
void dia_ms1_isotope_scores(double precursor_mz, const std::vector< SpectrumPtrType > &spectrum, RangeMobility &im_range, double &isotope_corr, double &isotope_overlap, const EmpiricalFormula &sum_formula) const
Precursor isotope-pattern scores using an explicit sum formula.
TheoreticalSpectrumGenerator * generator
Definition DIAScoring.h:323
bool dia_ms1_massdiff_score(double precursor_mz, const SpectrumSequence &spectrum, const RangeMobility &im_range, double &ppm_score) const
Compute the precursor-mass-error score on an MS1 spectrum.
double scoreIsotopePattern_(const std::vector< double > &isotopes_int, const IsotopeDistribution &isotope_dist) const
Compare an experimental isotope pattern to a theoretical one.
void dia_isotope_scores(const std::vector< TransitionType > &transitions, SpectrumSequence &spectrum, OpenSwath::IMRMFeature *mrmfeature, const RangeMobility &im_range, double &isotope_corr, double &isotope_overlap) const
Compute the isotope-pattern correlation and isotope-overlap scores for a transition group (see class ...
double dia_byseries_intensity_min_
Definition DIAScoring.h:315
void diaIsotopeScoresSub_(const std::vector< TransitionType > &transitions, const SpectrumSequence &spectrum, OpenSwath::IMRMFeature *mrmfeature, const RangeMobility &im_range, double &isotope_corr, double &isotope_overlap) const
Subfunction of dia_isotope_scores.
DIAScoring & operator=(const DIAScoring &rhs)
Assignment operator (algorithm class)
double scoreIsotopePattern_(const std::vector< double > &isotopes_int, double product_mz, int putative_fragment_charge) const
Compare an experimental isotope pattern to a theoretical one.
void largePeaksBeforeFirstIsotope_(const SpectrumSequence &spectrum, double mono_mz, double mono_int, int &nr_occurrences, double &max_ratio, const RangeMobility &im_range) const
Determine whether the current m/z value is a monoisotopic peak.
bool dia_extraction_ppm_
Definition DIAScoring.h:320
void dia_by_ion_score(const SpectrumSequence &spectrum, AASequence &sequence, int charge, const RangeMobility &im_range, double &bseries_score, double &yseries_score) const
Count the b- and y-fragment ions of a peptide that have evidence in a DIA spectrum.
DIAScoring(const DIAScoring &rhs)
Copy constructor (algorithm class)
OpenSwath::LightTransition TransitionType
Transition interface (Transition, Peptide, Protein)
Definition DIAScoring.h:70
void dia_massdiff_score(const std::vector< TransitionType > &transitions, const SpectrumSequence &spectrum, const std::vector< double > &normalized_library_intensity, const RangeMobility &im_range, double &ppm_score, double &ppm_score_weighted, std::vector< double > &diff_ppm) const
Compute fragment-ion mass-error scores in ppm against the theoretical product m/z of each transition.
OpenSwath::SpectrumPtr SpectrumPtrType
Type definitions.
Definition DIAScoring.h:68
double dia_extract_window_
Definition DIAScoring.h:314
void getIsotopeIntysFromExpSpec_(double precursor_mz, const SpectrumSequence &spectrum, int charge_state, const RangeMobility &im_range, std::vector< double > &isotopes_int) const
double peak_before_mono_max_ppm_diff_
Definition DIAScoring.h:319
void updateMembers_() override
Synchronize members with param class.
double dia_nr_charges_
Definition DIAScoring.h:318
void dia_ms1_isotope_scores_averagine(double precursor_mz, const SpectrumSequence &spectrum, int charge_state, RangeMobility &im_range, double &isotope_corr, double &isotope_overlap) const
Precursor isotope-pattern scores using an averagine model.
double scoreIsotopePattern_(const std::vector< double > &isotopes_int, const EmpiricalFormula &sum_formula) const
Compare an experimental isotope pattern to a theoretical one.
double dia_byseries_ppm_diff_
Definition DIAScoring.h:316
DIAScoring()
Default constructor.
~DIAScoring() override
Destructor.
double dia_nr_isotopes_
Definition DIAScoring.h:317
void score_with_isotopes(SpectrumSequence &spectrum, const std::vector< TransitionType > &transitions, const RangeMobility &im_range, double &dotprod, double &manhattan) const
Dot-product and Manhattan-distance scores between the spectrum and the transition group's theoretical...
bool dia_centroided_
Definition DIAScoring.h:321
A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
Definition IsotopeDistribution.h:40
Generates theoretical spectra for peptides with various options.
Definition TheoreticalSpectrumGenerator.h:45
Definition ITransition.h:31
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::vector< OpenSwath::SpectrumPtr > SpectrumSequence
a vector of spectrum pointers that DIA scores can operate on, allows for clever integration of only t...
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:20
std::shared_ptr< Spectrum > SpectrumPtr
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:291
Definition RangeManager.h:482
Definition TransitionExperiment.h:106