MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / findByReference

Method findByReference

src/openms/source/METADATA/SpectrumLookup.cpp:187–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 }
186
187 Size SpectrumLookup::findByReference(const String& spectrum_ref) const
188 {
189 for (const boost::regex& reg : reference_formats)
190 {
191 boost::smatch match;
192 bool found = boost::regex_search(spectrum_ref, match, reg);
193 if (found)
194 {
195 return findByRegExpMatch_(spectrum_ref, reg.str(), match);
196 }
197 }
198 String msg = "Spectrum reference doesn't match any known format";
199 throw Exception::ParseError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
200 spectrum_ref, msg);
201 }
202
203
204 bool SpectrumLookup::isNativeID(const String& id)

Callers 2

readRTMZCharge_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected