149 rt(std::numeric_limits<double>::quiet_NaN()),
150 precursor_rt(std::numeric_limits<double>::quiet_NaN()),
151 precursor_mz(std::numeric_limits<double>::quiet_NaN()),
152 precursor_charge(0), ms_level(0), scan_number(-1), native_id(
"")
186 template <
typename SpectrumContainer>
188 const String& scan_regexp = default_scan_regexp,
189 bool get_precursor_rt =
false)
194 n_spectra_ = spectra.size();
195 metadata_.reserve(n_spectra_);
196 setScanRegExp_(scan_regexp);
198 std::map<Size, double> precursor_rts;
199 for (
Size i = 0; i < n_spectra_; ++i)
203 getSpectrumMetaData(spectrum, meta, scan_regexp_, precursor_rts);
204 if (get_precursor_rt) precursor_rts[meta.
ms_level] = meta.
rt;
206 metadata_.push_back(meta);
218 this->spectra_data_ref = spectra_data;
242 const boost::regex& scan_regexp = boost::regex(),
243 const std::map<Size, double>& precursor_rts = (std::map<Size, double>()));
300 bool stop_on_error =
false,
301 bool override_spectra_data =
false,
302 bool override_spectra_references =
false,
303 std::vector<ProteinIdentification> proteins = std::vector<ProteinIdentification>());
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:49
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
Container for peptide identifications from multiple spectra.
Definition: PeptideIdentificationList.h:66
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