35 #ifndef OPENMS_FILTERING_TRANSFORMERS_MARKERMOWER_H 36 #define OPENMS_FILTERING_TRANSFORMERS_MARKERMOWER_H 76 template <
typename SpectrumType>
81 std::map<double, int> marks;
82 for (std::vector<PeakMarker *>::const_iterator cvit = markers_.begin(); cvit != markers_.end(); ++cvit)
84 std::map<double, bool> marked;
85 (*cvit)->apply(marked, spectrum);
86 for (std::map<double, bool>::const_iterator cmit = marked.begin(); cmit != marked.end(); ++cmit)
95 for (Iterator it = spectrum.begin(); it != spectrum.end(); )
97 if (marks[it->getMZ()] > 0)
103 it = spectrum.erase(it);
110 void filterPeakMap(
PeakMap & exp);
114 return "MarkerMower";
130 #endif // OPENMS_COMPARISON_CLUSTERING_MARKERMOWER_H
A more convenient string class.
Definition: String.h:57
MarkerMower uses PeakMarker to find peaks, those that are not marked get removed. ...
Definition: MarkerMower.h:55
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
ContainerType::iterator Iterator
Mutable iterator.
Definition: MSSpectrum.h:102
PeakMarker marks peaks that seem to fulfill some criterion.
Definition: PeakMarker.h:48
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67
void filterSpectrum(SpectrumType &spectrum)
Definition: MarkerMower.h:77
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:82
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
std::vector< PeakMarker * > markers_
used peak markers
Definition: MarkerMower.h:126
static const String getProductName()
Definition: MarkerMower.h:112