90 std::vector<std::pair<double, const Peak1D*> >
peaks;
110 private std::vector<MassTrace>
117 using privvec::reserve;
118 using privvec::push_back;
119 using privvec::operator[];
121 using privvec::clear;
122 using privvec::begin;
134 bool isValid(
double seed_mz,
double trace_tolerance);
A 2-dimensional hull representation in [counter]clockwise direction - depending on axis labelling.
Definition: ConvexHull2D.h:73
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:54
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
Wrapper struct for all the classes needed by the FeatureFinderAlgorithmPicked and the associated clas...
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:57
Helper structure for a found isotope pattern used in FeatureFinderAlgorithmPicked.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:194
TheoreticalIsotopePattern theoretical_pattern
Theoretical isotope pattern.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:206
std::vector< Size > spectrum
Spectrum index (undefined if peak index is -1 or -2)
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:198
std::vector< double > mz_score
m/z score of peak (0 if peak index is -1 or -2)
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:202
std::vector< double > theoretical_mz
Theoretical m/z value of the isotope peak.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:204
std::vector< double > intensity
Peak intensity (0 if peak index is -1 or -2)
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:200
std::vector< SignedSize > peak
Peak index (-1 if peak was not found, -2 if it was removed to improve the isotope fit)
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:196
IsotopePattern(Size size)
Constructor that resizes the internal vectors.
Helper struct for mass traces used in FeatureFinderAlgorithmPicked.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:80
bool isValid() const
Checks if this Trace is valid (has more than 2 points)
std::vector< std::pair< double, const Peak1D * > > peaks
Contained peaks (pair of RT and pointer to peak)
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:90
const Peak1D * max_peak
Maximum peak pointer.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:82
double max_rt
RT of maximum peak.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:84
double getAvgMZ() const
Returns the average m/z of all peaks in this trace (weighted by intensity)
double theoretical_int
Theoretical intensity value (scaled to [0,1])
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:87
void updateMaximum()
Sets the maximum to the highest contained peak of the trace.
ConvexHull2D getConvexhull() const
determines the convex hull of the trace
Helper struct for a collection of mass traces used in FeatureFinderAlgorithmPicked.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:111
bool isValid(double seed_mz, double trace_tolerance)
Checks if still valid (seed still contained and enough traces)
std::vector< MassTrace > privvec
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:112
privvec::const_iterator const_iterator
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:125
Size getTheoreticalmaxPosition() const
Returns the theoretical maximum trace index.
Size getPeakCount() const
Returns the peak count of all traces.
std::pair< double, double > getRTBounds() const
Returns the RT boundaries of the mass traces.
privvec::iterator iterator
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:124
void updateBaseline()
Sets the baseline to the lowest contained peak of the trace.
Size max_trace
Maximum intensity trace.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:165
double baseline
Estimated baseline in the region of the feature (used for the fit)
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:167
void computeIntensityProfile(std::list< std::pair< double, double > > &intensity_profile) const
Computes a flat representation of MassTraces, i.e., a single intensity value for each point in RT....
Helper structure for seeds used in FeatureFinderAlgorithmPicked.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:63
float intensity
Intensity.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:69
bool operator<(const Seed &rhs) const
Comparison operator.
Size spectrum
Spectrum index.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:65
Size peak
Peak index.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:67
Helper structure for a theoretical isotope pattern used in FeatureFinderAlgorithmPicked.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:174
double max
The maximum intensity contribution before scaling the pattern to 1.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:182
Size optional_end
Number of optional peaks at the end of the pattern.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:180
std::vector< double > intensity
Vector of intensity contributions.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:176
Size trimmed_left
The number of isotopes trimmed on the left side. This is needed to reconstruct the monoisotopic peak.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:184
Size size() const
Returns the size.
Size optional_begin
Number of optional peaks at the beginning of the pattern.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:178