11 #include <OpenMS/config.h>
68 std::vector<std::pair<Size,double>>& scores,
73 const std::vector<MSSpectrum>& library,
74 const std::map<String,DataValue>& options
92 std::vector<std::pair<Size,double>>& scores,
97 const BinnedSpectrum in_bs(spec, bin_size_,
false, peak_spread_, bin_offset_);
98 for (
Size i = 0; i < bs_library_.size(); ++i)
100 const double cmp_score = cmp_bs_(in_bs, bs_library_[i]);
101 if (cmp_score >= min_score)
103 scores.emplace_back(i, cmp_score);
108 void init(
const std::vector<MSSpectrum>& library,
const std::map<String,DataValue>& options)
override;
113 double bin_size_ = 0.02;
115 double bin_offset_ = 0.0;
137 const std::vector<MSSpectrum>& spectra,
139 std::vector<MSSpectrum>& annotated_spectra,
141 bool compute_features =
true
159 const std::vector<MSSpectrum>& spectra,
161 std::vector<MSSpectrum>& annotated_spectra
177 const std::vector<MSSpectrum>& spectra,
180 std::vector<MSSpectrum>& annotated_spectra)
const;
192 bool add_unidentified_features =
false)
const;
232 const std::vector<MSSpectrum>& annotated_spectra,
233 const std::vector<MSSpectrum>& picked_spectra,
235 std::vector<MSSpectrum>& scored_spectra,
236 bool compute_features =
true
253 const std::vector<MSSpectrum>& annotated_spectra,
254 const std::vector<MSSpectrum>& picked_spectra,
255 std::vector<MSSpectrum>& scored_spectra
271 const std::vector<MSSpectrum>& scored_spectra,
273 std::vector<MSSpectrum>& selected_spectra,
275 bool compute_features =
true
286 const std::vector<MSSpectrum>& scored_spectra,
287 std::vector<MSSpectrum>& selected_spectra
309 std::vector<MSSpectrum>& extracted_spectra,
311 bool compute_features =
true
330 std::vector<MSSpectrum>& extracted_spectra
350 std::vector<MSSpectrum>& extracted_spectra
371 std::vector<MSSpectrum>& extracted_spectra,
386 std::vector<Match>& matches
412 const std::vector<MSSpectrum>& spectra,
439 const std::vector<MSSpectrum>& spectra,
502 std::vector<MSSpectrum>& extracted_spectra,
504 const bool compute_features
Compare functor scoring the spectral contrast angle for similarity measurement.
Definition: BinnedSpectralContrastAngle.h:33
This is a binned representation of a PeakSpectrum.
Definition: BinnedSpectrum.h:55
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
A container for features.
Definition: FeatureMap.h:80
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:46
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
Management and storage of parameters / INI files.
Definition: Param.h:44
A more convenient string class.
Definition: String.h:34
A description of a targeted experiment containing precursor and production ions.
Definition: TargetedExperiment.h:39
unsigned int UInt
Unsigned integer type.
Definition: Types.h:64
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:97
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19