|
OpenMS
2.6.0
|
Go to the documentation of this file.
43 #define DEBUG_PEAK_PICKING
44 #undef DEBUG_PEAK_PICKING
63 double cm, toti, min_dh;
66 std::vector<double> masses, intens;
70 for (
Size k = 0;
k < input.size() - 1; ++
k)
75 if (input[
k].getIntensity() >= 50.0)
77 masses.push_back(input[
k].getMZ());
78 intens.push_back(input[
k].getIntensity());
83 hw = fWindowWidth / 2;
85 for (i = 2; i < (
int)masses.size() - 2; i++)
89 if (intens[i] > min_dh && intens[i] > intens[i - 1] + min_dh && intens[i] >= intens[i + 1] && intens[i - 1] > intens[i - 2] + min_dh && intens[i + 1] >= intens[i + 2])
95 for (j = -hw; j <= hw; j++)
97 double inte = intens[i - j];
98 double mz = masses[i - j];
101 toti += (
double) intens[i - j];
108 output.push_back(peak);
void setMZ(CoordinateType mz)
Mutable access to m/z.
Definition: Peak1D.h:121
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
void setIntensity(IntensityType intensity)
Mutable access to the data point intensity (height)
Definition: Peak1D.h:112
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:54
Definition: PeakPickerSH.h:48
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:54
void pick(const MSSpectrum &input, MSSpectrum &output, float fWindowWidth)
Picks peaks in one spectrum.
Definition: PeakPickerSH.h:60
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67