148 rt(std::numeric_limits<double>::quiet_NaN()),
149 precursor_rt(std::numeric_limits<double>::quiet_NaN()),
150 precursor_mz(std::numeric_limits<double>::quiet_NaN()),
151 precursor_charge(0), ms_level(0), scan_number(-1), native_id(
"")
185 template <
typename SpectrumContainer>
187 const String& scan_regexp = default_scan_regexp,
188 bool get_precursor_rt =
false)
193 n_spectra_ = spectra.size();
194 metadata_.reserve(n_spectra_);
195 setScanRegExp_(scan_regexp);
197 std::map<Size, double> precursor_rts;
198 for (
Size i = 0; i < n_spectra_; ++i)
202 getSpectrumMetaData(spectrum, meta, scan_regexp_, precursor_rts);
203 if (get_precursor_rt) precursor_rts[meta.
ms_level] = meta.
rt;
205 metadata_.push_back(meta);
217 this->spectra_data_ref = spectra_data;
241 const boost::regex& scan_regexp = boost::regex(),
242 const std::map<Size, double>& precursor_rts = (std::map<Size, double>()));
270 bool stop_on_error =
false);
288 bool stop_on_error =
false,
289 bool override_spectra_data =
false,
290 bool override_spectra_references =
false,
291 std::vector<ProteinIdentification> proteins = std::vector<ProteinIdentification>());
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
Helper class for looking up spectra based on different attributes.
Definition: SpectrumLookup.h:42
A more convenient string class.
Definition: String.h:34
int Int
Signed integer type.
Definition: Types.h:72
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