75 explicit PeakGroup(
int min_abs_charge,
int max_abs_charge,
bool is_positive);
240 std::vector<FLASHDeconvHelperStructs::LogMzPeak>::const_iterator
begin() const noexcept;
255 void shrink_to_fit();
260 void setChargePowers_(
int abs_charge,
float signal_pwr,
float noise_pwr,
float intensity);
262 void updateChargeFitScoreAndChargeIntensities_();
264 void updateAvgPPMError_();
266 void updateAvgDaError_();
281 std::vector<
float> per_charge_signal_pwr_;
282 std::vector<
float> per_charge_noise_pwr_;
283 std::vector<
float> per_charge_cos_;
284 std::vector<
float> per_charge_int_;
285 std::vector<
float> per_charge_snr_;
287 std::vector<
float> per_isotope_int_;
289 int min_abs_charge_ = 0, max_abs_charge_ = -1;
297 bool is_targeted_ = false;
299 double monoisotopic_mass_ = -1.0;
307 int max_qscore_abs_charge_ = -1;
308 float isotope_cosine_score_ = 0;
311 float avg_ppm_error_ = 0;
312 float avg_da_error_ = 0;
log transformed peak. After deconvolution, all necessary information from deconvolution such as charg...
Definition: FLASHDeconvHelperStructs.h:165
Averagine patterns pre-calculated for speed up. Other variables are also calculated for fast cosine c...
Definition: FLASHDeconvHelperStructs.h:60
The representation of a 1D spectrum.
Definition: MSSpectrum.h:70
A two-dimensional matrix. Similar to std::vector, but uses a binary operator(,) for element access.
Definition: Matrix.h:77
Class describing a deconvolved mass. A mass contains multiple (LogMz) peaks of different charges and ...
Definition: PeakGroup.h:52
std::vector< LogMzPeak > recruitAllPeaksInSpectrum(const MSSpectrum &spec, double tol, const FLASHDeconvHelperStructs::PrecalculatedAveragine &avg, double mono_mass, const std::unordered_set< int > &excluded_integer_mzs_, int charge_offset=0, double charge_multiple=1.0, double mz_off=.0)
given a monoisotopic mass, recruit raw peaks from the raw input spectrum and add to this peakGroup....
void updateMonomassAndIsotopeIntensities()
add monoisotopic indices of peaks by offset and discard negative isotope peaks. Total intensity is al...
void setTargeted()
set if it is targeted
void setQScore(float qscore)
set Q score - for FLASHIda log file parsing
void setIsotopeCosine(float cos)
set isotope cosine score
void setAvgPPMError(float error)
set average mass ppm error
std::tuple< double, double > getMzRange(int abs_charge) const
get mz range of the charge
FLASHDeconvHelperStructs::LogMzPeak LogMzPeak
Definition: PeakGroup.h:53
bool isTargeted() const
get if it is targeted
float getChargeSNR(int abs_charge) const
get per abs_charge SNR
uint getIndex() const
get index of this peak group
float getQScore() const
get Q score
float getIntensity() const
get intensity
void setQvalue(float q, PeakGroup::DecoyFlag flag)
set qvalue.
float getAvgDaError() const
get average mass ppm error;
float getSNR() const
get total SNR
float getChargeIntensity(int abs_charge) const
get per abs_charge intenstiy
int getRepAbsCharge() const
get representative charge
bool operator<(const PeakGroup &a) const
comparison operators
void setSNR(float snr)
set SNR manually - for FLASHIda log file parsing
void setIsotopeDaDistance(double d)
set distance between consecutive isotopes
float getChargeIsotopeCosine(int abs_charge) const
get per abs_charge isotope cosine
void setChargeSNR(int abs_charge, float c_snr)
set charge SNR manually - for FLASHIda log file parsing
bool operator>(const PeakGroup &a) const
float getChargeScore() const
get charge score
void setAbsChargeRange(int min_abs_charge, int max_abs_charge)
set min_abs_charge and max_abs_charge charge range
void updateIsotopeCosineSNRAvgErrorAndQScore(const FLASHDeconvHelperStructs::PrecalculatedAveragine &avg, double min_cos)
Update isotope cosine sore and qscore. Mono mass is also updated one last time. SNR,...
PeakGroup(int min_abs_charge, int max_abs_charge, bool is_positive)
Constructor specifying charge range.
int getScanNumber() const
get scan number
PeakGroup()=default
default constructor
~PeakGroup()=default
default destructor
std::tuple< int, int > getAbsChargeRange() const
get charge range - the actual charge values
void setChargeIsotopeCosine(int abs_charge, float cos)
set per abs_charge isotope cosine
PeakGroup(const PeakGroup &)=default
copy constructor
std::vector< FLASHDeconvHelperStructs::LogMzPeak >::const_iterator begin() const noexcept
iterators for the signal LogMz peaks in this PeakGroup
float getIsotopeCosine() const
get isotopic cosine score
PeakGroup & operator=(const PeakGroup &t)=default
assignment operator
void setScanNumber(int scan_number)
set scan number
PeakGroup(PeakGroup &&other)=default
move constructor
void setIndex(uint i)
set index of this peak group
void setDecoyFlag(PeakGroup::DecoyFlag index)
for this PeakGroup, specify the decoy flag.
DecoyFlag
decoy flag. This flag specifies if a PeakGroup is a target, charge decoy, noise decoy,...
Definition: PeakGroup.h:59
@ charge_decoy
Definition: PeakGroup.h:61
@ noise_decoy
Definition: PeakGroup.h:62
double getIsotopeDaDistance() const
get distance between consecutive isotopes
void setChargeScore(float charge_score)
set charge score - for FLASHIda log file parsing
const std::vector< float > & getIsotopeIntensities() const
get per isotope intensities
void setRepAbsCharge(int max_qscore_charge)
set representative max_qscore_charge
bool operator==(const PeakGroup &a) const
bool isSignalMZ(double mz, double tol) const
determine is an mz is a signal of this peakgroup. Input tol is ppm tolerance (e.g....
PeakGroup::DecoyFlag getDecoyFlag() const
get the decoy flag of this
double getMonoMass() const
get monoisotopic mass
bool isPositive() const
get if it is positive mode
std::tuple< double, double > getRepMzRange() const
get mz range that results in max QScore
FLASHDeconvHelperStructs::PrecalculatedAveragine PrecalculatedAveragine
Definition: PeakGroup.h:54
float getQvalue(PeakGroup::DecoyFlag flag=PeakGroup::DecoyFlag::target) const
get calculated qvalue
float getAvgPPMError() const
get average mass ppm error;
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
const double ISOTOPE_MASSDIFF_55K_U
Definition: Constants.h:126
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
Wrapper struct for all the structs needed by the FLASHDeconv Three structures are defined: Precalcula...
Definition: FLASHDeconvHelperStructs.h:57