libpappsomspp
Library for mass spectrometry
|
interface to collect spectrums from the MsRunReader class More...
#include <msrunreader.h>
Public Member Functions | |
virtual void | setQualifiedMassSpectrum (const QualifiedMassSpectrum &spectrum)=0 |
virtual bool | needPeakList () const =0 |
tells if we need the peak list (if we want the binary data) for each spectrum More... | |
virtual bool | needMsLevelPeakList (unsigned int ms_level) const final |
tells if we need the peak list (if we want the binary data) for each spectrum, given an MS level More... | |
virtual void | setNeedMsLevelPeakList (unsigned int ms_level, bool want_peak_list) final |
tells if we need the peak list given More... | |
virtual bool | shouldStop () |
virtual void | loadingEnded () |
virtual void | spectrumListHasSize (std::size_t size) |
virtual void | setReadAhead (bool is_read_ahead) final |
use threads to read a spectrum by batch of batch_size More... | |
virtual bool | isReadAhead () const |
tells if we want to read ahead spectrum More... | |
Private Attributes | |
bool | m_isReadAhead = false |
std::vector< bool > | m_needPeakListByMsLevel |
interface to collect spectrums from the MsRunReader class
Definition at line 55 of file msrunreader.h.
|
virtual |
tells if we want to read ahead spectrum
Definition at line 64 of file msrunreader.cpp.
References m_isReadAhead.
Referenced by pappso::TimsMsRunReaderMs2Selected::readSpectrumCollection().
|
virtual |
Reimplemented in pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints, and pappso::MsRunSimpleStatistics.
Definition at line 49 of file msrunreader.cpp.
Referenced by pappso::TimsData::ms2ReaderSpectrumCollectionByMsLevel(), pappso::TimsMsRunReaderMs2Selected::readSpectrumCollection(), pappso::XyMsRunReader::readSpectrumCollection(), pappso::PwizMsRunReader::readSpectrumCollectionByMsLevel(), pappso::TimsMsRunReader::readSpectrumCollectionByMsLevel(), pappso::TimsMsRunReaderMs2::readSpectrumCollectionByMsLevel(), and pappso::XyMsRunReader::readSpectrumCollectionByMsLevel().
|
finalvirtual |
tells if we need the peak list (if we want the binary data) for each spectrum, given an MS level
Definition at line 70 of file msrunreader.cpp.
References m_needPeakListByMsLevel, and needPeakList().
Referenced by pappso::TimsData::ms2ReaderGenerateMS1MS2Spectrum(), pappso::TimsData::rawReaderSpectrumCollectionByMsLevel(), and pappso::TimsMsRunReaderMs2Selected::readSpectrumCollection().
|
pure virtual |
tells if we need the peak list (if we want the binary data) for each spectrum
Implemented in pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints, pappso::MzxmlOutput::Translater, pappso::MsRunReaderTicChromatogram, pappso::MsRunReaderRetentionTimeLine, pappso::MsRunReaderScanNumberMultiMap, and pappso::MsRunSimpleStatistics.
Referenced by needMsLevelPeakList(), pappso::TimsMsRunReaderMs2Selected::readSpectrumCollection(), and pappso::PwizMsRunReader::readSpectrumCollectionByMsLevel().
|
finalvirtual |
tells if we need the peak list given
Definition at line 88 of file msrunreader.cpp.
References m_needPeakListByMsLevel.
Referenced by pappso::MzxmlOutput::write().
|
pure virtual |
Implemented in pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints, pappso::MzxmlOutput::Translater, pappso::MsRunReaderRetentionTimeLine, pappso::MsRunReaderScanNumberMultiMap, pappso::MsRunSimpleStatistics, and pappso::MsRunReaderTicChromatogram.
Referenced by pappso::TimsData::ms2ReaderSpectrumCollectionByMsLevel(), pappso::TimsData::rawReaderSpectrumCollectionByMsLevel(), pappso::TimsFramesMsRunReader::readSpectrumCollection(), pappso::TimsMsRunReaderMs2Selected::readSpectrumCollection(), pappso::XyMsRunReader::readSpectrumCollection(), pappso::PwizMsRunReader::readSpectrumCollectionByMsLevel(), and pappso::XyMsRunReader::readSpectrumCollectionByMsLevel().
|
finalvirtual |
use threads to read a spectrum by batch of batch_size
is_read_ahead | boolean to use threads or not |
Definition at line 58 of file msrunreader.cpp.
References m_isReadAhead.
Referenced by pappso::MzxmlOutput::write().
|
virtual |
Definition at line 44 of file msrunreader.cpp.
Referenced by pappso::TimsData::ms2ReaderSpectrumCollectionByMsLevel(), pappso::TimsData::rawReaderSpectrumCollectionByMsLevel(), pappso::TimsMsRunReaderMs2Selected::readSpectrumCollection(), and pappso::PwizMsRunReader::readSpectrumCollectionByMsLevel().
|
virtual |
Definition at line 53 of file msrunreader.cpp.
Referenced by pappso::TimsData::rawReaderSpectrumCollectionByMsLevel(), pappso::TimsFramesMsRunReader::readSpectrumCollection(), pappso::TimsMsRunReaderMs2Selected::readSpectrumCollection(), pappso::PwizMsRunReader::readSpectrumCollectionByMsLevel(), and pappso::TimsMsRunReaderMs2::readSpectrumCollectionByMsLevel().
|
private |
Definition at line 90 of file msrunreader.h.
Referenced by isReadAhead(), and setReadAhead().
|
private |
Definition at line 92 of file msrunreader.h.
Referenced by needMsLevelPeakList(), and setNeedMsLevelPeakList().