37 #include <OpenMS/config.h>
94 std::vector<std::pair<Size,double>>& scores,
99 const std::vector<MSSpectrum>& library,
100 const std::map<String,DataValue>& options
118 std::vector<std::pair<Size,double>>& scores,
123 const BinnedSpectrum in_bs(spec, bin_size_,
false, peak_spread_, bin_offset_);
124 for (
Size i = 0; i < bs_library_.size(); ++i)
126 const double cmp_score = cmp_bs_(in_bs, bs_library_[i]);
127 if (cmp_score >= min_score)
129 scores.emplace_back(i, cmp_score);
134 void init(
const std::vector<MSSpectrum>& library,
const std::map<String,DataValue>& options)
override;
139 double bin_size_ = 0.02;
141 double bin_offset_ = 0.0;
163 const std::vector<MSSpectrum>& spectra,
165 std::vector<MSSpectrum>& annotated_spectra,
167 bool compute_features =
true
185 const std::vector<MSSpectrum>& spectra,
187 std::vector<MSSpectrum>& annotated_spectra
203 const std::vector<MSSpectrum>& spectra,
206 std::vector<MSSpectrum>& annotated_spectra)
const;
218 bool add_unidentified_features =
false)
const;
258 const std::vector<MSSpectrum>& annotated_spectra,
259 const std::vector<MSSpectrum>& picked_spectra,
261 std::vector<MSSpectrum>& scored_spectra,
262 bool compute_features =
true
279 const std::vector<MSSpectrum>& annotated_spectra,
280 const std::vector<MSSpectrum>& picked_spectra,
281 std::vector<MSSpectrum>& scored_spectra
297 const std::vector<MSSpectrum>& scored_spectra,
299 std::vector<MSSpectrum>& selected_spectra,
301 bool compute_features =
true
312 const std::vector<MSSpectrum>& scored_spectra,
313 std::vector<MSSpectrum>& selected_spectra
335 std::vector<MSSpectrum>& extracted_spectra,
337 bool compute_features =
true
356 std::vector<MSSpectrum>& extracted_spectra
376 std::vector<MSSpectrum>& extracted_spectra
397 std::vector<MSSpectrum>& extracted_spectra,
412 std::vector<Match>& matches
438 const std::vector<MSSpectrum>& spectra,
465 const std::vector<MSSpectrum>& spectra,
528 std::vector<MSSpectrum>& extracted_spectra,
530 const bool compute_features
Compare functor scoring the spectral contrast angle for similarity measurement.
Definition: BinnedSpectralContrastAngle.h:59
This is a binned representation of a PeakSpectrum.
Definition: BinnedSpectrum.h:81
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
A container for features.
Definition: FeatureMap.h:106
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:72
The representation of a 1D spectrum.
Definition: MSSpectrum.h:70
Management and storage of parameters / INI files.
Definition: Param.h:70
A more convenient string class.
Definition: String.h:60
A description of a targeted experiment containing precursor and production ions.
Definition: TargetedExperiment.h:65
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
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