|
libpappsomspp
Library for mass spectrometry
|
MS run identity MsRunId identifies an MS run with a unique ID (XmlId) and contains eventually informations on its location (local disk path or URL) More...
#include <msrunid.h>
Public Member Functions | |
| MsRunId () | |
| MsRunId (const QString &file_name) | |
| MsRunId (const QString &file_name, const QString &run_id) | |
| MsRunId (const MsRunId &other) | |
| virtual | ~MsRunId () |
| bool | operator== (const MsRunId &other) const |
| MsRunId & | operator= (const MsRunId &other) |
| void | setFileName (const QString &file_name) |
| const QString & | getFileName () const |
| void | setRunId (const QString &run_id) |
| const QString & | getRunId () const |
| void | setXmlId (const QString &xml_id) |
| set an XML unique identifier for this MsRunId | |
| const QString & | getXmlId () const |
| void | setSampleName (const QString &name) |
| set a sample name for this MsRunId | |
| const QString & | getSampleName () const |
| void | setMsDataFormat (Enums::MsDataFormat format) |
| Enums::MsDataFormat | getMsDataFormat () const |
| QString | toString () const |
| bool | isValid () const |
Private Attributes | |
| QString | m_fileName = "NOT_SET" |
| QString | m_runId |
| QString | m_xmlId |
| QString | m_sampleName |
| Enums::MsDataFormat | m_mzFormat = Enums::MsDataFormat::mzXML |
MS run identity MsRunId identifies an MS run with a unique ID (XmlId) and contains eventually informations on its location (local disk path or URL)
| pappso::MsRunId::MsRunId | ( | ) |
Definition at line 39 of file msrunid.cpp.
Referenced by MsRunId(), MsRunId(), operator=(), and operator==().
| pappso::MsRunId::MsRunId | ( | const QString & | file_name | ) |
Definition at line 44 of file msrunid.cpp.
References m_fileName, and m_sampleName.
| pappso::MsRunId::MsRunId | ( | const QString & | file_name, |
| const QString & | run_id ) |
Definition at line 56 of file msrunid.cpp.
| pappso::MsRunId::MsRunId | ( | const MsRunId & | other | ) |
Definition at line 63 of file msrunid.cpp.
References MsRunId(), m_fileName, m_mzFormat, m_runId, m_sampleName, and m_xmlId.
|
virtual |
Definition at line 73 of file msrunid.cpp.
| const QString & pappso::MsRunId::getFileName | ( | ) | const |
Definition at line 151 of file msrunid.cpp.
References m_fileName.
Referenced by pappso::MzxmlOutput::writeHeader().
| Enums::MsDataFormat pappso::MsRunId::getMsDataFormat | ( | ) | const |
| const QString & pappso::MsRunId::getRunId | ( | ) | const |
Definition at line 130 of file msrunid.cpp.
References m_runId.
Referenced by pappso::BafAsciiFileReader::getMsRunIds(), and pappso::XyMsFileReader::getMsRunIds().
| const QString & pappso::MsRunId::getSampleName | ( | ) | const |
Definition at line 86 of file msrunid.cpp.
References m_sampleName.
Referenced by pappso::MgfOutput::write().
| const QString & pappso::MsRunId::getXmlId | ( | ) | const |
Definition at line 144 of file msrunid.cpp.
References m_xmlId.
Referenced by pappso::IonMobilityGrid::storeObservedIdentityBetween(), and pappso::IonMobilityGrid::translateXicCoordFromTo().
| bool pappso::MsRunId::isValid | ( | ) | const |
Definition at line 210 of file msrunid.cpp.
References m_fileName, m_mzFormat, m_runId, m_xmlId, and pappso::Enums::unknown.
Definition at line 181 of file msrunid.cpp.
References MsRunId(), m_fileName, m_mzFormat, m_sampleName, and m_xmlId.
| bool pappso::MsRunId::operator== | ( | const MsRunId & | other | ) | const |
Definition at line 172 of file msrunid.cpp.
| void pappso::MsRunId::setFileName | ( | const QString & | file_name | ) |
Definition at line 93 of file msrunid.cpp.
References m_fileName, m_mzFormat, m_sampleName, pappso::Enums::MGF, pappso::Enums::mzML, pappso::Enums::mzXML, and pappso::Enums::unknown.
| void pappso::MsRunId::setMsDataFormat | ( | Enums::MsDataFormat | format | ) |
Definition at line 158 of file msrunid.cpp.
References m_mzFormat.
Referenced by pappso::BafAsciiFileReader::getMsRunIds(), pappso::PwizMsFileReader::getMsRunIds(), pappso::TimsMsFileReader::getMsRunIds(), and pappso::XyMsFileReader::getMsRunIds().
| void pappso::MsRunId::setRunId | ( | const QString & | run_id | ) |
Definition at line 123 of file msrunid.cpp.
References m_runId.
Referenced by pappso::BafAsciiFileReader::getMsRunIds(), pappso::TimsMsFileReader::getMsRunIds(), and pappso::XyMsFileReader::getMsRunIds().
| void pappso::MsRunId::setSampleName | ( | const QString & | name | ) |
set a sample name for this MsRunId
Definition at line 79 of file msrunid.cpp.
References m_sampleName.
Referenced by pappso::cbor::psm::CborScanMapBase::getCurrentQualifiedMassSpectrumSPtr(), pappso::cbor::psm::PsmFileReaderBase::getCurrentQualifiedMassSpectrumSPtr(), pappso::BafAsciiFileReader::getMsRunIds(), pappso::PwizMsFileReader::getMsRunIds(), pappso::TimsMsFileReader::getMsRunIds(), and pappso::XyMsFileReader::getMsRunIds().
| void pappso::MsRunId::setXmlId | ( | const QString & | xml_id | ) |
set an XML unique identifier for this MsRunId
| xml_id | this id must respect XML constraints (no space characters) |
Definition at line 137 of file msrunid.cpp.
References m_xmlId.
Referenced by pappso::BafAsciiFileReader::getMsRunIds(), pappso::PwizMsFileReader::getMsRunIds(), pappso::TimsMsFileReader::getMsRunIds(), pappso::XyMsFileReader::getMsRunIds(), and pappso::MsFileAccessor::getMsRunReaderSPtrByRunId().
| QString pappso::MsRunId::toString | ( | ) | const |
Definition at line 193 of file msrunid.cpp.
References m_fileName, m_runId, m_sampleName, and m_xmlId.
Referenced by pappso::TimsMsFileReader::getMsRunIds().
|
private |
Definition at line 90 of file msrunid.h.
Referenced by MsRunId(), MsRunId(), getFileName(), isValid(), operator=(), setFileName(), and toString().
|
private |
Definition at line 94 of file msrunid.h.
Referenced by MsRunId(), getMsDataFormat(), isValid(), operator=(), setFileName(), and setMsDataFormat().
|
private |
Definition at line 91 of file msrunid.h.
Referenced by MsRunId(), MsRunId(), getRunId(), isValid(), setRunId(), and toString().
|
private |
Definition at line 93 of file msrunid.h.
Referenced by MsRunId(), MsRunId(), getSampleName(), operator=(), setFileName(), setSampleName(), and toString().
|
private |
Definition at line 92 of file msrunid.h.
Referenced by MsRunId(), getXmlId(), isValid(), operator=(), operator==(), setXmlId(), and toString().