|
libpappsomspp
Library for mass spectrometry
|
#include <mzcborspectrumcollectionreader.h>
Public Member Functions | |
| MzcborSpectrumCollectionReader (const MsRunReadConfig &config, SpectrumCollectionHandlerInterface &handler) | |
| virtual | ~MzcborSpectrumCollectionReader () |
| void | setMsRunId (const MsRunIdCstSPtr &msrun_id) |
| void | setNativeId2SpectrumIndexMapPtr (const std::map< QString, std::size_t > *nativeId2SpectrumIndexMap) |
| Public Member Functions inherited from pappso::cbor::mzcbor::MzcborReaderBase | |
| MzcborReaderBase () | |
| virtual | ~MzcborReaderBase () |
| virtual void | readCbor (QFile *cborp, pappso::UiMonitorInterface &monitor) |
| read mzCBOR file | |
| virtual void | readCbor (QIODevice *cborp, pappso::UiMonitorInterface &monitor) |
| read mzCBOR from any device (memory buffer or else) | |
| virtual void | close () |
| convenient function to clean pointer before leaving | |
| bool | isMzcbor () const |
| const QStringList & | getMsrunIdList () const |
| Public Member Functions inherited from pappso::cbor::CborStreamReaderInterface | |
| CborStreamReaderInterface () | |
| virtual | ~CborStreamReaderInterface () |
Protected Member Functions | |
| virtual void | readMsrun () override |
| read only the targeted msrun | |
| void | readSpectrumListAndLeave () |
| only the spectrum list of targeted msrun, then stop parsing | |
| void | readSpectrum (std::size_t index_count, bool want_binary_data) |
| read each spectrum in the targeted msrun (msrunId) | |
| std::map< QString, CvParam > | readScan () |
| Protected Member Functions inherited from pappso::cbor::mzcbor::MzcborReaderBase | |
| void | readRoot (pappso::UiMonitorInterface &monitor) |
| virtual void | readReferenceableParamGroupList () |
| std::map< QString, CvParam > | getCvParamsMap () |
| read the array containing cvParams to give accessions and values | |
| Protected Member Functions inherited from pappso::cbor::CborStreamReaderInterface | |
| bool | getExpectedString () |
| void | initCborReader (QFile *pcborfile) |
| void | initCborReader (QIODevice *pcborfile) |
Private Attributes | |
| const MsRunReadConfig & | m_msRunReadConfig |
| SpectrumCollectionHandlerInterface & | m_SpectrumCollectionHandlerInterface |
| MsRunIdCstSPtr | mcsp_msRunId |
| QString | m_xmlMzMlRunId |
| const std::map< QString, std::size_t > * | mp_nativeId2SpectrumIndexMap = nullptr |
Additional Inherited Members | |
| Protected Attributes inherited from pappso::cbor::mzcbor::MzcborReaderBase | |
| bool | m_stopParsing = false |
| Protected Attributes inherited from pappso::cbor::CborStreamReaderInterface | |
| CborStreamReader * | mpa_cborReader = nullptr |
| QString | m_expectedString |
| QByteArray | m_data |
Definition at line 45 of file mzcborspectrumcollectionreader.h.
| pappso::cbor::mzcbor::MzcborSpectrumCollectionReader::MzcborSpectrumCollectionReader | ( | const MsRunReadConfig & | config, |
| SpectrumCollectionHandlerInterface & | handler ) |
Default constructor
Definition at line 36 of file mzcborspectrumcollectionreader.cpp.
References m_msRunReadConfig, and m_SpectrumCollectionHandlerInterface.
|
virtual |
|
overrideprotectedvirtual |
read only the targeted msrun
Reimplemented from pappso::cbor::mzcbor::MzcborReaderBase.
Definition at line 64 of file mzcborspectrumcollectionreader.cpp.
References pappso::cbor::CborStreamReaderInterface::getExpectedString(), pappso::cbor::CborStreamReaderInterface::m_expectedString, m_xmlMzMlRunId, pappso::cbor::CborStreamReaderInterface::mpa_cborReader, and readSpectrumListAndLeave().
|
protected |
Definition at line 370 of file mzcborspectrumcollectionreader.cpp.
References pappso::cbor::mzcbor::MzcborReaderBase::getCvParamsMap(), pappso::cbor::CborStreamReaderInterface::getExpectedString(), pappso::cbor::CborStreamReaderInterface::m_expectedString, and pappso::cbor::CborStreamReaderInterface::mpa_cborReader.
|
protected |
read each spectrum in the targeted msrun (msrunId)
Definition at line 181 of file mzcborspectrumcollectionreader.cpp.
References pappso::QualifiedMassSpectrum::appendPrecursorIonData(), pappso::cbor::mzcbor::Spectrum::binaryDataArrayList, pappso::PrecursorIonData::charge, pappso::cbor::mzcbor::Spectrum::decodeTrace(), pappso::cbor::mzcbor::Spectrum::defaultArrayLength, pappso::cbor::mzcbor::Spectrum::fromCbor(), pappso::QualifiedMassSpectrum::getMassSpectrumId(), pappso::cbor::mzcbor::Spectrum::getMsLevel(), pappso::QualifiedMassSpectrum::getMsLevel(), pappso::MassSpectrumId::getNativeId(), pappso::cbor::mzcbor::Spectrum::getRtInSeconds(), pappso::QualifiedMassSpectrum::getRtInSeconds(), pappso::MassSpectrumId::getSpectrumIndex(), pappso::cbor::mzcbor::Spectrum::id, pappso::cbor::mzcbor::Spectrum::index, pappso::PrecursorIonData::intensity, m_msRunReadConfig, m_SpectrumCollectionHandlerInterface, mcsp_msRunId, mp_nativeId2SpectrumIndexMap, pappso::cbor::CborStreamReaderInterface::mpa_cborReader, pappso::PrecursorIonData::mz, pappso::cbor::mzcbor::Spectrum::precursorList, pappso::PappsoException::qwhat(), pappso::QualifiedMassSpectrum::setEmptyMassSpectrum(), pappso::QualifiedMassSpectrum::setMassSpectrumId(), pappso::QualifiedMassSpectrum::setMassSpectrumSPtr(), pappso::QualifiedMassSpectrum::setMsLevel(), pappso::MassSpectrumId::setNativeId(), pappso::QualifiedMassSpectrum::setPrecursorNativeId(), pappso::QualifiedMassSpectrum::setPrecursorSpectrumIndex(), pappso::QualifiedMassSpectrum::setRtInSeconds(), and pappso::MassSpectrumId::setSpectrumIndex().
Referenced by readSpectrumListAndLeave().
|
protected |
only the spectrum list of targeted msrun, then stop parsing
Definition at line 103 of file mzcborspectrumcollectionreader.cpp.
References pappso::cbor::CborStreamReaderInterface::getExpectedString(), pappso::cbor::CborStreamReaderInterface::m_expectedString, m_msRunReadConfig, m_SpectrumCollectionHandlerInterface, pappso::cbor::mzcbor::MzcborReaderBase::m_stopParsing, pappso::cbor::CborStreamReaderInterface::mpa_cborReader, and readSpectrum().
Referenced by readMsrun().
| void pappso::cbor::mzcbor::MzcborSpectrumCollectionReader::setMsRunId | ( | const MsRunIdCstSPtr & | msrun_id | ) |
Definition at line 49 of file mzcborspectrumcollectionreader.cpp.
References m_xmlMzMlRunId, and mcsp_msRunId.
Referenced by pappso::MzcborMsRunReader::readSpectrumCollectionWithMsrunReadConfig().
| void pappso::cbor::mzcbor::MzcborSpectrumCollectionReader::setNativeId2SpectrumIndexMapPtr | ( | const std::map< QString, std::size_t > * | nativeId2SpectrumIndexMap | ) |
Definition at line 56 of file mzcborspectrumcollectionreader.cpp.
References mp_nativeId2SpectrumIndexMap.
Referenced by pappso::MzcborMsRunReader::readSpectrumCollectionWithMsrunReadConfig().
|
private |
Definition at line 81 of file mzcborspectrumcollectionreader.h.
Referenced by MzcborSpectrumCollectionReader(), readSpectrum(), and readSpectrumListAndLeave().
|
private |
Definition at line 82 of file mzcborspectrumcollectionreader.h.
Referenced by MzcborSpectrumCollectionReader(), readSpectrum(), and readSpectrumListAndLeave().
|
private |
Definition at line 84 of file mzcborspectrumcollectionreader.h.
Referenced by readMsrun(), and setMsRunId().
|
private |
Definition at line 83 of file mzcborspectrumcollectionreader.h.
Referenced by readSpectrum(), and setMsRunId().
|
private |
Definition at line 86 of file mzcborspectrumcollectionreader.h.
Referenced by readSpectrum(), and setNativeId2SpectrumIndexMapPtr().