76 explicit PeakGroup(
int min_abs_charge,
int max_abs_charge,
bool is_positive);
100 void updateMonoMassAndIsotopeIntensities();
123 const std::unordered_set<double>& excluded_peak_mzs);
126 bool isSignalMZ(
double mz,
double tol)
const;
129 void setScanNumber(
int scan_number);
132 void setChargeIsotopeCosine(
int abs_charge,
float cos);
135 void setAbsChargeRange(
int min_abs_charge,
int max_abs_charge);
138 void setIsotopeCosine(
float cos);
141 void setRepAbsCharge(
int max_snr_abs_charge);
144 void setMonoisotopicMass(
double mono_mass);
147 void Qscore(
float qscore);
150 void setChargeScore(
float charge_score);
153 void setAvgPPMError(
float error);
156 void setSNR(
float snr);
159 void setChargeSNR(
int abs_charge,
float c_snr);
165 int getScanNumber()
const;
168 double getMonoMass()
const;
171 float getIntensity()
const;
174 float getChargeSNR(
int abs_charge)
const;
177 float getChargeIsotopeCosine(
int abs_charge)
const;
180 float getChargeIntensity(
int abs_charge)
const;
183 std::tuple<double, double> getRepMzRange()
const;
186 std::tuple<double, double> getMzRange(
int abs_charge)
const;
189 std::tuple<int, int> getAbsChargeRange()
const;
192 const std::vector<float>& getIsotopeIntensities()
const;
195 float getIsotopeCosine()
const;
198 int getRepAbsCharge()
const;
201 float getQscore()
const;
204 float getSNR()
const;
207 float getChargeScore()
const;
210 float getAvgPPMError()
const;
213 float getAvgDaError()
const;
216 bool isPositive()
const;
219 bool isTargeted()
const;
242 void setIsotopeDaDistance(
double d);
245 double getIsotopeDaDistance()
const;
248 void setIndex(uint i);
251 uint getIndex()
const;
254 std::vector<FLASHDeconvHelperStructs::LogMzPeak>::const_iterator begin() const noexcept;
271 Size size() const noexcept;
273 void reserve(
Size n);
278 static const
int isotope_int_shift = 1;
282 void updateChargeFitScoreAndChargeIntensities_();
284 void updateAvgPPMError_();
286 void updateAvgDaError_();
288 float getAbsPPMError_(const
LogMzPeak& p) const;
290 float getAbsDaError_(
LogMzPeak& p) const;
296 void updatePerChargeInformation_(const
std::vector<
LogMzPeak>& noisy_peaks);
298 void updateChargeRange_(
std::vector<
LogMzPeak>& noisy_peaks);
308 float getNoisePeakPower_(const
std::vector<
LogMzPeak>& noisy_peaks, const
std::vector<
LogMzPeak>& signal_peaks) const;
315 std::vector<
float> per_charge_sum_signal_squared_;
316 std::vector<
float> per_charge_noise_pwr_;
317 std::vector<
float> per_charge_cos_;
318 std::vector<
float> per_charge_int_;
319 std::vector<
float> per_charge_snr_;
321 std::vector<
float> per_isotope_int_;
323 int min_abs_charge_ = 0, max_abs_charge_ = -1;
327 int scan_number_ = 0;
331 bool is_targeted_ = false;
333 double monoisotopic_mass_ = -1.0;
334 float intensity_ = 0;
341 int max_snr_abs_charge_ = -1;
342 float isotope_cosine_score_ = 0;
343 float charge_score_ = 0;
345 float avg_ppm_error_ = 0;
346 float avg_da_error_ = 0;
Averagine patterns pre-calculated for speed up. Other variables are also calculated for fast cosine c...
Definition: FLASHDeconvHelperStructs.h:59
Qscore : quality score for PeakGroup. This class is being updated. For now, simply it calculate the Q...
Definition: Qscore.h:57
log transformed peak. After deconvolution, all necessary information from deconvolution such as charg...
Definition: FLASHDeconvHelperStructs.h:164
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
const double ISOTOPE_MASSDIFF_55K_U
Definition: Constants.h:126
bool operator<(const MultiplexDeltaMasses &dm1, const MultiplexDeltaMasses &dm2)
TargetDummyType
target dummy type of PeakGroup. This specifies if a PeakGroup is a target (0), charge dummy (1)...
Definition: PeakGroup.h:58
Definition: PeakGroup.h:61
The representation of a 1D spectrum.
Definition: MSSpectrum.h:66
FLASHDeconvHelperStructs::PrecalculatedAveragine PrecalculatedAveragine
Definition: PeakGroup.h:54
Class describing a deconvolved mass. A mass contains multiple (LogMz) peaks of different charges and ...
Definition: PeakGroup.h:51
FLASHDeconvHelperStructs::LogMzPeak LogMzPeak
Definition: PeakGroup.h:53
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Wrapper struct for all the structs needed by the FLASHDeconv Three structures are defined: Precalcula...
Definition: FLASHDeconvHelperStructs.h:56
Definition: PeakGroup.h:62