![]() |
OpenMS
3.0.0
|
Class describing a deconvolved mass. A mass contains multiple peaks of different charges and isotope indices. PeakGroup is the set of such peaks representing a single monoisotopic mass. PeakGroup also contains features that define the quality of it. It is used by QScore calculation DeconvolvedSpectrum consists of PeakGroups. More...
#include <OpenMS/ANALYSIS/TOPDOWN/PeakGroup.h>
Public Member Functions | |
| PeakGroup ()=default | |
| default constructor More... | |
| PeakGroup (const int min_abs_charge, const int max_abs_charge, const bool is_positive) | |
| Constructor specifying charge range. More... | |
| ~PeakGroup () | |
| default destructor More... | |
| PeakGroup (const PeakGroup &)=default | |
| copy constructor More... | |
| PeakGroup (PeakGroup &&other)=default | |
| move constructor More... | |
| bool | operator< (const PeakGroup &a) const |
| comparison operators More... | |
| bool | operator> (const PeakGroup &a) const |
| bool | operator== (const PeakGroup &a) const |
| PeakGroup & | operator= (const PeakGroup &t)=default |
| assignment operator More... | |
| void | updateMonomassAndIsotopeIntensities () |
| add monoisotopic indices of peaks by offset and discard negative isotope peaks. Total intensity is also updated More... | |
| void | updateIsotopeCosineAndQScore (const FLASHDeconvHelperStructs::PrecalculatedAveragine &avg, double min_cos, double iso_da_distance) |
| void | recruitAllPeaksInSpectrum (const MSSpectrum &spec, const double tol, const FLASHDeconvHelperStructs::PrecalculatedAveragine &avg, double mono_mass, bool write_detail) |
| recruit peaks and then return as a spectrum. More... | |
| void | updateSNR () |
| using signal and total (signal + noise) power, update SNR value More... | |
| bool | isSignalMZ (const double mz, const double tol) const |
| determine is an mz is a signal of this peakgroup. Input tol is ppm tolerance (e.g., 10.0 for 10ppm tolerance) More... | |
| void | setScanNumber (const int scan_number) |
| set scan number More... | |
| void | setChargeIsotopeCosine (const int abs_charge, const float cos) |
| set per abs_charge isotope cosine More... | |
| void | setMaxQScoreMzRange (const double min, const double max) |
| set mz range that results in max QScore More... | |
| void | setAbsChargeRange (const int min_abs_charge, const int max_abs_charge) |
| set min_abs_charge and max_abs_charge charge range More... | |
| void | setIsotopeCosine (const float cos) |
| set isotope cosine score More... | |
| void | setRepAbsCharge (const int max_qscore_charge) |
| set representative max_qscore_charge More... | |
| void | setQScore (const float qscore) |
| set Q score - for FLASHIda log file parsing More... | |
| void | setChargeScore (const float charge_score) |
| set charge score - for FLASHIda log file parsing More... | |
| void | setAvgPPMError (const float error) |
| set average mass ppm error More... | |
| void | setSNR (const float snr) |
| set SNR manually - for FLASHIda log file parsing More... | |
| void | setChargeSNR (const int abs_charge, const float c_snr) |
| set charge SNR manually - for FLASHIda log file parsing More... | |
| void | setTargeted () |
| set if it is targeted More... | |
| void | setSecondBestMonsMass (const double mass) |
| set second best monoisotopic mass More... | |
| int | getScanNumber () const |
| get scan number More... | |
| double | getMonoMass () const |
| get monoisotopic mass More... | |
| double | getSecondBestMonoMass () const |
| get second best monoisotopic mass More... | |
| double | getIntensity () const |
| get intensity More... | |
| float | getChargeSNR (const int abs_charge) const |
| get per abs_charge SNR More... | |
| float | getChargeIsotopeCosine (const int abs_charge) const |
| get per abs_charge isotope cosine More... | |
| float | getChargeIntensity (const int abs_charge) const |
| get per abs_charge intenstiy More... | |
| std::tuple< double, double > | getMaxQScoreMzRange () const |
| get mz range that results in max QScore More... | |
| std::tuple< double, double > | getMzRange (int abs_charge) const |
| get mz range of the charge More... | |
| std::tuple< int, int > | getAbsChargeRange () const |
| get charge range - the actual charge values More... | |
| std::vector< float > | getIsotopeIntensities () const |
| float | getIsotopeCosine () const |
| get isotopic cosine score More... | |
| int | getRepAbsCharge () const |
| get representative charge More... | |
| float | getQScore () const |
| get Q score More... | |
| float | getSNR () const |
| get total SNR More... | |
| float | getChargeScore () const |
| get charge score More... | |
| float | getAvgPPMError () const |
| get average mass ppm error; More... | |
| bool | isPositive () const |
| get if it is positive mode More... | |
| bool | isTargeted () const |
| get if it is targeted More... | |
| int | getDecoyIndex () const |
| void | setDecoyIndex (int index) |
| float | getQvalue () const |
| void | setQvalue (const float q) |
| float | getQvalueWithChargeDecoyOnly () const |
| float | getQvalueWithIsotopeDecoyOnly () const |
| float | getQvalueWithNoiseDecoyOnly () const |
| void | setQvalueWithChargeDecoyOnly (const float q) |
| void | setQvalueWithIsotopeDecoyOnly (const float q) |
| void | setQvalueWithNoiseDecoyOnly (const float q) |
| void | setIsotopeDaDistance (const double d) |
| double | getIsotopeDaDistance () const |
| std::vector< FLASHDeconvHelperStructs::LogMzPeak >::const_iterator | begin () const noexcept |
| std::vector< FLASHDeconvHelperStructs::LogMzPeak >::const_iterator | end () const noexcept |
| std::vector< FLASHDeconvHelperStructs::LogMzPeak >::iterator | begin () noexcept |
| std::vector< FLASHDeconvHelperStructs::LogMzPeak >::iterator | end () noexcept |
| const FLASHDeconvHelperStructs::LogMzPeak & | operator[] (const Size i) const |
| void | push_back (const FLASHDeconvHelperStructs::LogMzPeak &pg) |
| Size | size () const noexcept |
| void | clear () |
| void | reserve (Size n) |
| bool | empty () const |
| void | swap (std::vector< FLASHDeconvHelperStructs::LogMzPeak > &x) |
| void | shrink_to_fit () |
| void | sort () |
Public Attributes | |
| std::vector< FLASHDeconvHelperStructs::LogMzPeak > | noisy_peaks |
Private Types | |
| typedef FLASHDeconvHelperStructs::LogMzPeak | LogMzPeak |
| typedef FLASHDeconvHelperStructs::PrecalculatedAveragine | PrecalculatedAveragine |
Private Member Functions | |
| void | setChargePowers_ (const int abs_charge, const double signal_pwr, const double noise_pwr, const double intensity) |
| set per abs_charge signal power More... | |
| void | updateChargeFitScoreAndChargeIntensities_ () |
| void | updateAvgPPMError_ (double iso_da_distance) |
Private Attributes | |
| std::vector< FLASHDeconvHelperStructs::LogMzPeak > | logMzpeaks_ |
| log Mz peaks More... | |
| std::vector< float > | per_charge_signal_pwr_ |
| per charge SNR, isotope cosine, and intensity vectors More... | |
| std::vector< float > | per_charge_pwr_ |
| std::vector< float > | per_charge_cos_ |
| std::vector< float > | per_charge_int_ |
| std::vector< float > | per_charge_snr_ |
| std::vector< float > | per_isotope_int_ |
| per isotope intensity. More... | |
| double | max_qscore_mz_end_ |
| mz range resulting in maximum Q score More... | |
| double | max_qscore_mz_start_ |
| int | min_abs_charge_ = 0 |
| charge range More... | |
| int | max_abs_charge_ = -1 |
| int | scan_number_ |
| scan number More... | |
| bool | is_positive_ |
| is positive or not More... | |
| bool | is_targeted_ = false |
| if this peak group has been targeted More... | |
| double | monoisotopic_mass_ = -1.0 |
| information on the deconvolved mass More... | |
| double | second_best_monomass_ = -1.0 |
| double | intensity_ |
| int | decoy_index_ = 0 |
| index to specify if this peak_group is a target (0), an isotope decoy (1), a noise (2), or a charge decoy (3) More... | |
| double | iso_da_distance_ = Constants::ISOTOPE_MASSDIFF_55K_U |
| distance between consecutive isotopes. Can be different for decoys More... | |
| int | max_qscore_abs_charge_ = -1 |
| scoring variables More... | |
| float | isotope_cosine_score_ = 0 |
| float | charge_score_ |
| float | qscore_ = .0f |
| float | avg_ppm_error_ = 0 |
| float | snr_ = 0 |
| float | qvalue_ = 1.0 |
| float | qvalue_with_isotope_decoy_only_ = 1.0 |
| float | qvalue_with_noise_decoy_only_ = 1.0 |
| float | qvalue_with_charge_decoy_only_ = 1.0 |
Class describing a deconvolved mass. A mass contains multiple peaks of different charges and isotope indices. PeakGroup is the set of such peaks representing a single monoisotopic mass. PeakGroup also contains features that define the quality of it. It is used by QScore calculation DeconvolvedSpectrum consists of PeakGroups.
|
private |
|
default |
default constructor
|
explicit |
Constructor specifying charge range.
| min_abs_charge | min Charge |
| max_abs_charge | max Charge |
| is_positive | whether MS is positive mode |
| ~PeakGroup | ( | ) |
default destructor
|
noexcept |
|
noexcept |
| void clear | ( | ) |
| bool empty | ( | ) | const |
|
noexcept |
|
noexcept |
| std::tuple<int, int> getAbsChargeRange | ( | ) | const |
get charge range - the actual charge values
| float getAvgPPMError | ( | ) | const |
get average mass ppm error;
| float getChargeIntensity | ( | const int | abs_charge | ) | const |
get per abs_charge intenstiy
| float getChargeIsotopeCosine | ( | const int | abs_charge | ) | const |
get per abs_charge isotope cosine
| float getChargeScore | ( | ) | const |
get charge score
| float getChargeSNR | ( | const int | abs_charge | ) | const |
get per abs_charge SNR
| int getDecoyIndex | ( | ) | const |
| double getIntensity | ( | ) | const |
get intensity
| float getIsotopeCosine | ( | ) | const |
get isotopic cosine score
| double getIsotopeDaDistance | ( | ) | const |
| std::vector<float> getIsotopeIntensities | ( | ) | const |
| std::tuple<double, double> getMaxQScoreMzRange | ( | ) | const |
get mz range that results in max QScore
| double getMonoMass | ( | ) | const |
get monoisotopic mass
| std::tuple<double, double> getMzRange | ( | int | abs_charge | ) | const |
get mz range of the charge
| float getQScore | ( | ) | const |
get Q score
| float getQvalue | ( | ) | const |
| float getQvalueWithChargeDecoyOnly | ( | ) | const |
| float getQvalueWithIsotopeDecoyOnly | ( | ) | const |
| float getQvalueWithNoiseDecoyOnly | ( | ) | const |
| int getRepAbsCharge | ( | ) | const |
get representative charge
| int getScanNumber | ( | ) | const |
get scan number
| double getSecondBestMonoMass | ( | ) | const |
get second best monoisotopic mass
| float getSNR | ( | ) | const |
get total SNR
| bool isPositive | ( | ) | const |
get if it is positive mode
| bool isSignalMZ | ( | const double | mz, |
| const double | tol | ||
| ) | const |
determine is an mz is a signal of this peakgroup. Input tol is ppm tolerance (e.g., 10.0 for 10ppm tolerance)
| bool isTargeted | ( | ) | const |
get if it is targeted
| bool operator< | ( | const PeakGroup & | a | ) | const |
comparison operators
| bool operator== | ( | const PeakGroup & | a | ) | const |
| bool operator> | ( | const PeakGroup & | a | ) | const |
| const FLASHDeconvHelperStructs::LogMzPeak& operator[] | ( | const Size | i | ) | const |
| void push_back | ( | const FLASHDeconvHelperStructs::LogMzPeak & | pg | ) |
| void recruitAllPeaksInSpectrum | ( | const MSSpectrum & | spec, |
| const double | tol, | ||
| const FLASHDeconvHelperStructs::PrecalculatedAveragine & | avg, | ||
| double | mono_mass, | ||
| bool | write_detail | ||
| ) |
recruit peaks and then return as a spectrum.
| void reserve | ( | Size | n | ) |
| void setAbsChargeRange | ( | const int | min_abs_charge, |
| const int | max_abs_charge | ||
| ) |
set min_abs_charge and max_abs_charge charge range
| void setAvgPPMError | ( | const float | error | ) |
set average mass ppm error
| void setChargeIsotopeCosine | ( | const int | abs_charge, |
| const float | cos | ||
| ) |
set per abs_charge isotope cosine
|
private |
set per abs_charge signal power
| void setChargeScore | ( | const float | charge_score | ) |
set charge score - for FLASHIda log file parsing
| void setChargeSNR | ( | const int | abs_charge, |
| const float | c_snr | ||
| ) |
set charge SNR manually - for FLASHIda log file parsing
| void setDecoyIndex | ( | int | index | ) |
| void setIsotopeCosine | ( | const float | cos | ) |
set isotope cosine score
| void setIsotopeDaDistance | ( | const double | d | ) |
| void setMaxQScoreMzRange | ( | const double | min, |
| const double | max | ||
| ) |
set mz range that results in max QScore
| void setQScore | ( | const float | qscore | ) |
set Q score - for FLASHIda log file parsing
| void setQvalue | ( | const float | q | ) |
| void setQvalueWithChargeDecoyOnly | ( | const float | q | ) |
| void setQvalueWithIsotopeDecoyOnly | ( | const float | q | ) |
| void setQvalueWithNoiseDecoyOnly | ( | const float | q | ) |
| void setRepAbsCharge | ( | const int | max_qscore_charge | ) |
set representative max_qscore_charge
| void setScanNumber | ( | const int | scan_number | ) |
set scan number
| void setSecondBestMonsMass | ( | const double | mass | ) |
set second best monoisotopic mass
| void setSNR | ( | const float | snr | ) |
set SNR manually - for FLASHIda log file parsing
| void setTargeted | ( | ) |
set if it is targeted
| void shrink_to_fit | ( | ) |
|
noexcept |
| void sort | ( | ) |
| void swap | ( | std::vector< FLASHDeconvHelperStructs::LogMzPeak > & | x | ) |
|
private |
|
private |
| void updateIsotopeCosineAndQScore | ( | const FLASHDeconvHelperStructs::PrecalculatedAveragine & | avg, |
| double | min_cos, | ||
| double | iso_da_distance | ||
| ) |
| void updateMonomassAndIsotopeIntensities | ( | ) |
add monoisotopic indices of peaks by offset and discard negative isotope peaks. Total intensity is also updated
| offset | isotope index offset |
| void updateSNR | ( | ) |
using signal and total (signal + noise) power, update SNR value
|
private |
|
private |
|
private |
index to specify if this peak_group is a target (0), an isotope decoy (1), a noise (2), or a charge decoy (3)
|
private |
|
private |
is positive or not
|
private |
if this peak group has been targeted
|
private |
distance between consecutive isotopes. Can be different for decoys
|
private |
|
private |
log Mz peaks
|
private |
|
private |
scoring variables
|
private |
mz range resulting in maximum Q score
|
private |
|
private |
charge range
|
private |
information on the deconvolved mass
| std::vector<FLASHDeconvHelperStructs::LogMzPeak> noisy_peaks |
|
private |
|
private |
|
private |
|
private |
per charge SNR, isotope cosine, and intensity vectors
|
private |
|
private |
per isotope intensity.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
scan number
|
private |
|
private |