OpenMS
2.8.0
|
Scoring of an spectrum at the peak apex of an chromatographic elution peak. More...
#include <OpenMS/ANALYSIS/OPENSWATH/DIAScoring.h>
Public Member Functions | |
Constructors and Destructor | |
DIAScoring () | |
Default constructor. More... | |
~DIAScoring () override | |
Destructor. More... | |
Public Member Functions inherited from DefaultParamHandler | |
DefaultParamHandler (const String &name) | |
Constructor with name that is displayed in error messages. More... | |
DefaultParamHandler (const DefaultParamHandler &rhs) | |
Copy constructor. More... | |
virtual | ~DefaultParamHandler () |
Destructor. More... | |
virtual DefaultParamHandler & | operator= (const DefaultParamHandler &rhs) |
Assignment operator. More... | |
virtual bool | operator== (const DefaultParamHandler &rhs) const |
Equality operator. More... | |
void | setParameters (const Param ¶m) |
Sets the parameters. More... | |
const Param & | getParameters () const |
Non-mutable access to the parameters. More... | |
const Param & | getDefaults () const |
Non-mutable access to the default parameters. More... | |
const String & | getName () const |
Non-mutable access to the name. More... | |
void | setName (const String &name) |
Mutable access to the name. More... | |
const std::vector< String > & | getSubsections () const |
Non-mutable access to the registered subsections. More... | |
Private Types | |
typedef OpenSwath::SpectrumPtr | SpectrumPtrType |
Type definitions. More... | |
typedef OpenSwath::LightTransition | TransitionType |
Transition interface (Transition, Peptide, Protein) More... | |
DIA Scores | |
double | dia_extract_window_ |
double | dia_byseries_intensity_min_ |
double | dia_byseries_ppm_diff_ |
double | dia_nr_isotopes_ |
double | dia_nr_charges_ |
double | peak_before_mono_max_ppm_diff_ |
bool | dia_extraction_ppm_ |
bool | dia_centroided_ |
TheoreticalSpectrumGenerator * | generator |
void | dia_isotope_scores (const std::vector< TransitionType > &transitions, SpectrumPtrType spectrum, OpenSwath::IMRMFeature *mrmfeature, double &isotope_corr, double &isotope_overlap) const |
Isotope scores, see class description. More... | |
void | dia_massdiff_score (const std::vector< TransitionType > &transitions, SpectrumPtrType spectrum, const std::vector< double > &normalized_library_intensity, double &ppm_score, double &ppm_score_weighted, std::vector< double > &diff_ppm) const |
Massdiff scores, see class description. More... | |
bool | dia_ms1_massdiff_score (double precursor_mz, SpectrumPtrType spectrum, double &ppm_score) const |
void | dia_ms1_isotope_scores_averagine (double precursor_mz, SpectrumPtrType spectrum, double &isotope_corr, double &isotope_overlap, int charge_state) const |
Precursor isotope scores for precursors (peptides and metabolites) More... | |
void | dia_ms1_isotope_scores (double precursor_mz, SpectrumPtrType spectrum, double &isotope_corr, double &isotope_overlap, const EmpiricalFormula &sum_formula) const |
void | dia_by_ion_score (SpectrumPtrType spectrum, AASequence &sequence, int charge, double &bseries_score, double &yseries_score) const |
b/y ion scores More... | |
void | score_with_isotopes (SpectrumPtrType spectrum, const std::vector< TransitionType > &transitions, double &dotprod, double &manhattan) const |
Dotproduct / Manhattan score with theoretical spectrum. More... | |
DIAScoring (const DIAScoring &rhs) | |
Copy constructor (algorithm class) More... | |
DIAScoring & | operator= (const DIAScoring &rhs) |
Assignment operator (algorithm class) More... | |
void | updateMembers_ () override |
Synchronize members with param class. More... | |
void | diaIsotopeScoresSub_ (const std::vector< TransitionType > &transitions, SpectrumPtrType spectrum, std::map< std::string, double > &intensities, double &isotope_corr, double &isotope_overlap) const |
Subfunction of dia_isotope_scores. More... | |
void | getFirstIsotopeRelativeIntensities_ (const std::vector< TransitionType > &transitions, OpenSwath::IMRMFeature *mrmfeature, std::map< std::string, double > &intensities) const |
void | largePeaksBeforeFirstIsotope_ (SpectrumPtrType spectrum, double mono_mz, double mono_int, int &nr_occurrences, double &max_ratio) const |
Determine whether the current m/z value is a monoisotopic peak. More... | |
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. More... | |
double | scoreIsotopePattern_ (const std::vector< double > &isotopes_int, const EmpiricalFormula &sum_formula) const |
Compare an experimental isotope pattern to a theoretical one. More... | |
double | scoreIsotopePattern_ (const std::vector< double > &isotopes_int, const IsotopeDistribution &isotope_dist) const |
Compare an experimental isotope pattern to a theoretical one. More... | |
void | getIsotopeIntysFromExpSpec_ (double precursor_mz, SpectrumPtrType spectrum, std::vector< double > &isotopes_int, int charge_state) const |
Additional Inherited Members | |
Static Public Member Functions inherited from DefaultParamHandler | |
static void | writeParametersToMetaValues (const Param &write_this, MetaInfoInterface &write_here, const String &key_prefix="") |
Writes all parameters to meta values. More... | |
Protected Member Functions inherited from DefaultParamHandler | |
void | defaultsToParam_ () |
Updates the parameters after the defaults have been set in the constructor. More... | |
Protected Attributes inherited from DefaultParamHandler | |
Param | param_ |
Container for current parameters. More... | |
Param | defaults_ |
Container for default parameters. This member should be filled in the constructor of derived classes! More... | |
std::vector< String > | subsections_ |
Container for registered subsections. This member should be filled in the constructor of derived classes! More... | |
String | error_name_ |
Name that is displayed in error messages during the parameter checking. More... | |
bool | check_defaults_ |
If this member is set to false no checking if parameters in done;. More... | |
bool | warn_empty_defaults_ |
If this member is set to false no warning is emitted when defaults are empty;. More... | |
Scoring of an spectrum at the peak apex of an chromatographic elution peak.
In DIA (data independent acquisition) / SWATH analysis, at each chromatographic point a full MS2 spectrum is recorded. This class allows to compute a number of scores based on the full MS2 spectrum available. The scores are the following:
This class expects spectra objects that implement the OpenSWATH Spectrum interface. Transitions are expected to be in the light transition format (defined in OPENSWATHALGO/DATAACCESS/TransitionExperiment.h).
Parameters of this class are:Name | Type | Default | Restrictions | Description |
---|---|---|---|---|
dia_extraction_window | float | 0.05 | min: 0.0 | DIA extraction window in Th or ppm. |
dia_extraction_unit | string | Th | Th, ppm | DIA extraction window unit |
dia_centroided | string | false | true, false | Use centroided DIA data. |
dia_byseries_intensity_min | float | 300.0 | min: 0.0 | DIA b/y series minimum intensity to consider. |
dia_byseries_ppm_diff | float | 10.0 | min: 0.0 | DIA b/y series minimal difference in ppm to consider. |
dia_nr_isotopes | int | 4 | min: 0 | DIA number of isotopes to consider. |
dia_nr_charges | int | 4 | min: 0 | DIA number of charges to consider. |
peak_before_mono_max_ppm_diff | float | 20.0 | min: 0.0 | DIA maximal difference in ppm to count a peak at lower m/z when searching for evidence that a peak might not be monoisotopic. |
|
private |
Type definitions.
Spectrum type, see Spectrum interface
|
private |
Transition interface (Transition, Peptide, Protein)
DIAScoring | ( | ) |
Default constructor.
|
override |
Destructor.
|
private |
Copy constructor (algorithm class)
void dia_by_ion_score | ( | SpectrumPtrType | spectrum, |
AASequence & | sequence, | ||
int | charge, | ||
double & | bseries_score, | ||
double & | yseries_score | ||
) | const |
b/y ion scores
void dia_isotope_scores | ( | const std::vector< TransitionType > & | transitions, |
SpectrumPtrType | spectrum, | ||
OpenSwath::IMRMFeature * | mrmfeature, | ||
double & | isotope_corr, | ||
double & | isotope_overlap | ||
) | const |
Isotope scores, see class description.
void dia_massdiff_score | ( | const std::vector< TransitionType > & | transitions, |
SpectrumPtrType | spectrum, | ||
const std::vector< double > & | normalized_library_intensity, | ||
double & | ppm_score, | ||
double & | ppm_score_weighted, | ||
std::vector< double > & | diff_ppm | ||
) | const |
Massdiff scores, see class description.
void dia_ms1_isotope_scores | ( | double | precursor_mz, |
SpectrumPtrType | spectrum, | ||
double & | isotope_corr, | ||
double & | isotope_overlap, | ||
const EmpiricalFormula & | sum_formula | ||
) | const |
void dia_ms1_isotope_scores_averagine | ( | double | precursor_mz, |
SpectrumPtrType | spectrum, | ||
double & | isotope_corr, | ||
double & | isotope_overlap, | ||
int | charge_state | ||
) | const |
Precursor isotope scores for precursors (peptides and metabolites)
bool dia_ms1_massdiff_score | ( | double | precursor_mz, |
SpectrumPtrType | spectrum, | ||
double & | ppm_score | ||
) | const |
Precursor massdifference score
precursor_mz | Exact m/z of the precursor to be evaluated |
spectrum | MS1 spectrum to be evaluated |
ppm_score | Resulting score |
|
private |
Subfunction of dia_isotope_scores.
|
private |
retrieves intensities from MRMFeature computes a vector of relative intensities for each feature (output to intensities)
|
private |
Get the intensities of isotopes around precursor_mz
in experimental spectrum
and fill isotopes_int
.
|
private |
Determine whether the current m/z value is a monoisotopic peak.
This function will try to determine whether the current peak is a monoisotopic peak or not. It will do so by searching for an intense peak at a lower m/z that could explain the current peak as part of a isotope pattern.
spectrum | The spectrum (MS1 or MS2) |
mono_mz | The m/z value where a monoisotopic is expected |
mono_int | The intensity of the monoisotopic peak (peak at mono_mz) |
nr_occurrences | Will contain the count of how often a peak is found at lower m/z than mono_mz with an intensity higher than mono_int. Multiple charge states are tested, see class parameter dia_nr_charges_ |
nr_occurrences | Will contain the maximum ratio of a peaks intensity compared to the monoisotopic peak intensity how often a peak is found at lower m/z than mono_mz with an intensity higher than mono_int. Multiple charge states are tested, see class parameter dia_nr_charges_ |
|
private |
Assignment operator (algorithm class)
void score_with_isotopes | ( | SpectrumPtrType | spectrum, |
const std::vector< TransitionType > & | transitions, | ||
double & | dotprod, | ||
double & | manhattan | ||
) | const |
Dotproduct / Manhattan score with theoretical spectrum.
|
private |
Compare an experimental isotope pattern to a theoretical one.
This function will take an array of isotope intensities and compare them (by order only; no m/z matching) to the theoretically expected ones for the given sum_formula
. The returned value is a Pearson correlation between the experimental and theoretical pattern.
|
private |
Compare an experimental isotope pattern to a theoretical one.
This function will take an array of isotope intensities and compare them (by order only; no m/z matching) to the theoretically expected ones given by isotope_dist
. The returned value is a Pearson correlation between the experimental and theoretical pattern.
|
private |
Compare an experimental isotope pattern to a theoretical one.
This function will take an array of isotope intensities isotopes_int
and compare them (by order only; no m/z matching) to the theoretically expected ones for the given product_mz
using an averagine model. The returned value is a Pearson correlation between the experimental and theoretical pattern.
|
overrideprivatevirtual |
Synchronize members with param class.
Reimplemented from DefaultParamHandler.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |