12#include <OpenMS/OpenMSConfig.h>
14#include <boost/regex.hpp>
78 const boost::regex& scan_regexp,
79 bool no_error =
false);
94 const String& native_id_type_accession);
Parser for extracting scan numbers from spectrum native IDs.
Definition SpectrumNativeIDParser.h:61
static Int extractScanNumber(const String &native_id, const boost::regex &scan_regexp, bool no_error=false)
Extract the scan number from the native ID of a spectrum using a regular expression.
static Int extractScanNumber(const String &native_id, const String &native_id_type_accession)
Extract the scan number from the native ID using a CV accession.
static bool isNativeID(const String &id)
Check if a spectrum identifier is a native ID from a vendor file.
static std::string getRegExFromNativeID(const String &native_id)
Determine the regular expression to extract scan/index numbers from native IDs.
A more convenient string class.
Definition String.h:34
int Int
Signed integer type.
Definition Types.h:72
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19