13#include <pwiz/data/msdata/DefaultReaderList.hpp>
49 if(!file.open(QFile::ReadOnly | QFile::Text))
51 qDebug() <<
"Failed to open file" <<
m_fileName;
56 QRegularExpressionMatch regExpMatch;
59 bool file_reading_failed =
false;
63 line = file.readLine();
70 if(
line.startsWith(
'#') ||
line.isEmpty() ||
74 qDebug() <<
"Current xy format line:" <<
line;
86 file_reading_failed =
true;
92 if(!file_reading_failed && line_count >= 1)
113std::vector<MsRunIdCstSPtr>
116 std::vector<MsRunIdCstSPtr> ms_run_ids;
118 std::size_t line_count = 0;
142 QString sample_name = file_info.fileName();
160 ms_run_ids.push_back(std::make_shared<MsRunId>(ms_run_id));
MsDataFormat m_fileFormat
MS run identity MsRunId identifies an MS run with a unique ID (XmlId) and contains eventually informa...
const QString & getRunId() const
void setRunId(const QString &run_id)
void setXmlId(const QString &xml_id)
set an XML unique identifier for this MsRunId
void setMsDataFormat(MsDataFormat format)
void setSampleName(const QString &name)
set a sample name for this MsRunId
static QRegularExpression xyMassDataFormatRegExp
static const QString getLexicalOrderedString(unsigned int num)
static QRegularExpression endOfLineRegExp
Regular expression that tracks the end of line in text files.
virtual std::vector< MsRunIdCstSPtr > getMsRunIds(const QString &run_prefix) override
virtual MsDataFormat getFileFormat() override
virtual bool initialize(std::size_t &line_count)
XyMsFileReader(const QString &file_name)
virtual ~XyMsFileReader()
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
This header contains all the type re-definitions and all the global variables definitions used in the...