75 explicit PeakGroup(
int min_abs_charge,
int max_abs_charge,
bool is_positive);
99 void updateMonomassAndIsotopeIntensities();
120 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);
123 bool isSignalMZ(
double mz,
double tol)
const;
126 void setScanNumber(
int scan_number);
129 void setChargeIsotopeCosine(
int abs_charge,
float cos);
132 void setAbsChargeRange(
int min_abs_charge,
int max_abs_charge);
135 void setIsotopeCosine(
float cos);
138 void setRepAbsCharge(
int max_qscore_charge);
141 void setQScore(
float qscore);
144 void setChargeScore(
float charge_score);
147 void setAvgPPMError(
float error);
150 void setSNR(
float snr);
153 void setChargeSNR(
int abs_charge,
float c_snr);
159 int getScanNumber()
const;
162 double getMonoMass()
const;
165 float getIntensity()
const;
168 float getChargeSNR(
int abs_charge)
const;
171 float getChargeIsotopeCosine(
int abs_charge)
const;
174 float getChargeIntensity(
int abs_charge)
const;
177 std::tuple<double, double> getRepMzRange()
const;
180 std::tuple<double, double> getMzRange(
int abs_charge)
const;
183 std::tuple<int, int> getAbsChargeRange()
const;
186 const std::vector<float>& getIsotopeIntensities()
const;
189 float getIsotopeCosine()
const;
192 int getRepAbsCharge()
const;
195 float getQScore()
const;
198 float getSNR()
const;
201 float getChargeScore()
const;
204 float getAvgPPMError()
const;
207 float getAvgDaError()
const;
210 bool isPositive()
const;
213 bool isTargeted()
const;
228 void setIsotopeDaDistance(
double d);
231 double getIsotopeDaDistance()
const;
234 void setIndex(uint i);
237 uint getIndex()
const;
240 std::vector<FLASHDeconvHelperStructs::LogMzPeak>::const_iterator begin() const noexcept;
250 Size size() const noexcept;
252 void reserve (
Size n);
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_();
268 float getAbsPPMError_(const LogMzPeak& p) const;
270 float getAbsDaError_(LogMzPeak& p) const;
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;
Averagine patterns pre-calculated for speed up. Other variables are also calculated for fast cosine c...
Definition: FLASHDeconvHelperStructs.h:59
Definition: PeakGroup.h:61
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)
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
DecoyFlag
decoy flag. This flag specifies if a PeakGroup is a target, charge decoy, noise decoy, or isotope decoy.
Definition: PeakGroup.h:58
Definition: PeakGroup.h:62
A two-dimensional matrix. Similar to std::vector, but uses a binary operator(,) for element access...
Definition: IsobaricQuantitationMethod.h:51