46 #undef DEBUG_PEAK_PICKING
204 const double peak_bound_cwt,
const double peak_bound_ms2_level_cwt,
const Int direction = 1)
const;
239 inline double lorentz_(
const double height,
const double lambda,
const double pos,
const double x)
const
241 const double x2 = lambda * (x - pos);
242 return height / (1 + x2*x2);
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:93
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:73
The representation of a 1D spectrum.
Definition: MSSpectrum.h:70
Class containing the data needed for optimization.
Definition: OptimizePeakDeconvolution.h:111
This class implements a peak picking algorithm using wavelet techniques.
Definition: PeakPickerCWT.h:81
float scale_
The dilation of the wavelet.
Definition: PeakPickerCWT.h:140
bool optimization_
Switch for the optimization of peak parameters.
Definition: PeakPickerCWT.h:149
bool deconvolution_
Switch for the deconvolution of peak parameters.
Definition: PeakPickerCWT.h:152
Int getNumberOfPeaks_(ConstPeakIterator first, ConstPeakIterator last, std::vector< double > &peak_values, Int direction, double resolution, ContinuousWaveletTransformNumIntegration &wt, double peak_bound_cwt) const
Determines the number of peaks in the given mass range using the cwt.
float signal_to_noise_
Signal to noise threshold.
Definition: PeakPickerCWT.h:131
float peak_bound_
Threshold for the peak height in the MS 1 level.
Definition: PeakPickerCWT.h:125
void pickExperiment(const PeakMap &input, PeakMap &output)
Picks the peaks in an MSExperiment.
void pick(const MSSpectrum &input, MSSpectrum &output) const
Applies the peak picking algorithm to a single spectrum.
UInt radius_
The search radius for the determination of a peak's maximum position.
Definition: PeakPickerCWT.h:137
bool two_d_optimization_
Switch for the 2D optimization of peak parameters.
Definition: PeakPickerCWT.h:155
bool deconvolutePeak_(PeakShape &shape, std::vector< PeakShape > &peak_shapes, double peak_bound_cwt) const
Separates overlapping peaks.
void addPeak_(std::vector< PeakShape > &peaks_DC, PeakArea_ &area, double left_width, double right_width, OptimizePeakDeconvolution::Data &data) const
Add a peak.
void initializeWT_(ContinuousWaveletTransformNumIntegration &wt, const double peak_bound_in, double &peak_bound_ms_cwt) const
Computes the threshold for the peak height in the wavelet transform and initializes the wavelet trans...
PeakPickerCWT()
Constructor.
PeakIterator left
iterator to the leftmost valid point
Definition: PeakPickerCWT.h:173
MSSpectrum::const_iterator ConstPeakIterator
Const profile data iterator type.
Definition: PeakPickerCWT.h:86
double correlate_(const PeakShape &peak, const PeakArea_ &area, Int direction=0) const
Returns the squared Pearson coefficient.
void getPeakCentroid_(PeakArea_ &area) const
Estimates a peak's centroid position.
PeakIterator right
iterator to the rightmost valid point (inclusive)
Definition: PeakPickerCWT.h:175
DPosition< 1 > centroid_position
The estimated centroid position in m/z.
Definition: PeakPickerCWT.h:176
float peak_corr_bound_
The threshold for correlation.
Definition: PeakPickerCWT.h:143
double estimatePeakWidth(const PeakMap &input)
Estimates average peak width that can then be used for peak picking.
float peak_bound_ms2_level_
Threshold for the peak height in the MS 2 level.
Definition: PeakPickerCWT.h:128
void getPeakArea_(const PeakArea_ &area, double &area_left, double &area_right) const
Computes the peak's left and right area.
bool getMaxPosition_(const PeakIterator first, const PeakIterator last, const ContinuousWaveletTransform &wt, PeakArea_ &area, const Int distance_from_scan_border, const double peak_bound_cwt, const double peak_bound_ms2_level_cwt, const Int direction=1) const
Finds the next maximum position in the wavelet transform wt.
float noise_level_
The threshold for the noise level (TODO: Use the information of the signal to noise estimator)
Definition: PeakPickerCWT.h:146
float fwhm_bound_
The minimal full width at half maximum.
Definition: PeakPickerCWT.h:134
MSSpectrum::iterator PeakIterator
Profile data iterator type.
Definition: PeakPickerCWT.h:84
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
~PeakPickerCWT() override
Destructor.
double lorentz_(const double height, const double lambda, const double pos, const double x) const
Computes the value of a theoretical Lorentz peak at position x.
Definition: PeakPickerCWT.h:239
bool getPeakEndPoints_(PeakIterator first, PeakIterator last, PeakArea_ &area, Int distance_from_scan_border, Int &peak_left_index, Int &peak_right_index, ContinuousWaveletTransformNumIntegration &wt) const
Determines a peaks's endpoints.
PeakShape fitPeakShape_(const PeakArea_ &area) const
Returns the best fitting peakshape.
PeakIterator max
iterator to the maximum position
Definition: PeakPickerCWT.h:174
Int determineChargeState_(std::vector< double > &peak_values) const
Estimate the charge state of the peaks.
Class for the internal peak representation.
Definition: PeakPickerCWT.h:171
Internal representation of a peak shape (used by the PeakPickerCWT)
Definition: PeakShape.h:51
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:53
int Int
Signed integer type.
Definition: Types.h:102
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47