64 explicit PeakGroup(
const int min_abs_charge,
const int max_abs_charge,
const bool is_positive);
231 std::vector<FLASHDeconvHelperStructs::LogMzPeak>::const_iterator
begin() const noexcept;
246 void shrink_to_fit();
253 void setChargePowers_(const
int abs_charge, const
double signal_pwr, const
double noise_pwr, const
double intensity);
254 void updateChargeFitScoreAndChargeIntensities_();
256 void updateAvgPPMError_(
double iso_da_distance);
264 std::vector<
float> per_charge_signal_pwr_;
265 std::vector<
float> per_charge_pwr_;
266 std::vector<
float> per_charge_cos_;
267 std::vector<
float> per_charge_int_;
268 std::vector<
float> per_charge_snr_;
270 std::vector<
float> per_isotope_int_;
272 double max_qscore_mz_end_, max_qscore_mz_start_;
274 int min_abs_charge_ = 0, max_abs_charge_ = -1;
280 bool is_targeted_ = false;
282 double monoisotopic_mass_ = -1.0;
283 double second_best_monomass_ = -1.0;
286 int decoy_index_ = 0;
291 int max_qscore_abs_charge_ = -1;
292 float isotope_cosine_score_ = 0;
295 float avg_ppm_error_ = 0;
299 float qvalue_with_isotope_decoy_only_ = 1.0;
300 float qvalue_with_noise_decoy_only_ = 1.0;
301 float qvalue_with_charge_decoy_only_ = 1.0;
log transformed peak. After deconvolution, all necessary information from deconvolution such as charg...
Definition: FLASHDeconvHelperStructs.h:192
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
Class describing a deconvolved mass. A mass contains multiple peaks of different charges and isotope ...
Definition: PeakGroup.h:51
void setScanNumber(const int scan_number)
set scan number
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
std::vector< float > getIsotopeIntensities() const
void setChargeScore(const float charge_score)
set charge score - for FLASHIda log file parsing
std::tuple< double, double > getMzRange(int abs_charge) const
get mz range of the charge
FLASHDeconvHelperStructs::LogMzPeak LogMzPeak
Definition: PeakGroup.h:52
std::tuple< double, double > getMaxQScoreMzRange() const
get mz range that results in max QScore
bool isTargeted() const
get if it is targeted
void setIsotopeCosine(const float cos)
set isotope cosine score
void setQvalueWithIsotopeDecoyOnly(const float q)
void setSecondBestMonsMass(const double mass)
set second best monoisotopic mass
float getQScore() const
get Q score
void setChargeIsotopeCosine(const int abs_charge, const float cos)
set per abs_charge isotope cosine
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....
float getChargeIsotopeCosine(const int abs_charge) const
get per abs_charge isotope cosine
double getSecondBestMonoMass() const
get second best monoisotopic mass
float getSNR() const
get total SNR
int getRepAbsCharge() const
get representative charge
bool operator<(const PeakGroup &a) const
comparison operators
~PeakGroup()
default destructor
void updateSNR()
using signal and total (signal + noise) power, update SNR value
void setQvalueWithNoiseDecoyOnly(const float q)
bool operator>(const PeakGroup &a) const
float getChargeScore() const
get charge score
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 setAbsChargeRange(const int min_abs_charge, const int max_abs_charge)
set min_abs_charge and max_abs_charge charge range
void setDecoyIndex(int index)
void setSNR(const float snr)
set SNR manually - for FLASHIda log file parsing
void setAvgPPMError(const float error)
set average mass ppm error
float getQvalueWithIsotopeDecoyOnly() const
float getChargeSNR(const int abs_charge) const
get per abs_charge SNR
int getScanNumber() const
get scan number
PeakGroup()=default
default constructor
std::tuple< int, int > getAbsChargeRange() const
get charge range - the actual charge values
void setChargeSNR(const int abs_charge, const float c_snr)
set charge SNR manually - for FLASHIda log file parsing
PeakGroup(const PeakGroup &)=default
copy constructor
std::vector< FLASHDeconvHelperStructs::LogMzPeak >::const_iterator begin() const noexcept
float getIsotopeCosine() const
get isotopic cosine score
void setQvalue(const float q)
PeakGroup & operator=(const PeakGroup &t)=default
assignment operator
PeakGroup(PeakGroup &&other)=default
move constructor
float getChargeIntensity(const int abs_charge) const
get per abs_charge intenstiy
double getIsotopeDaDistance() const
bool operator==(const PeakGroup &a) const
int getDecoyIndex() const
void updateIsotopeCosineAndQScore(const FLASHDeconvHelperStructs::PrecalculatedAveragine &avg, double min_cos, double iso_da_distance)
void setIsotopeDaDistance(const double d)
float getQvalueWithNoiseDecoyOnly() const
double getMonoMass() const
get monoisotopic mass
bool isPositive() const
get if it is positive mode
FLASHDeconvHelperStructs::PrecalculatedAveragine PrecalculatedAveragine
Definition: PeakGroup.h:53
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 setQvalueWithChargeDecoyOnly(const float q)
void setRepAbsCharge(const int max_qscore_charge)
set representative max_qscore_charge
float getQvalueWithChargeDecoyOnly() const
PeakGroup(const int min_abs_charge, const int max_abs_charge, const bool is_positive)
Constructor specifying charge range.
float getAvgPPMError() const
get average mass ppm error;
double getIntensity() const
get intensity
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
FLASHIda C++ to C# (or vice versa) bridge functions The functions here are called in C# to invoke fun...
Definition: FeatureDeconvolution.h:48
static FLASHDeconvHelperStructs::PrecalculatedAveragine avg
keeps the precalculated averagine to calculate average masses from monoisotopic masses
Definition: FLASHIdaBridgeFunctions.h:81
Wrapper struct for all the structs needed by the FLASHDeconv Three structures are defined: Precalcula...
Definition: FLASHDeconvHelperStructs.h:57