libpappsomspp
Library for mass spectrometry
|
example of interface to count MS levels of all spectrum in an MSrun More...
#include <msrunreader.h>
Public Member Functions | |
virtual void | setQualifiedMassSpectrum (const QualifiedMassSpectrum &spectrum) override |
virtual bool | needPeakList () const override |
tells if we need the peak list (if we want the binary data) for each spectrum More... | |
virtual void | loadingEnded () override |
unsigned long | getMsLevelCount (unsigned int ms_level) const |
unsigned long | getTotalCount () const |
![]() | |
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 | 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 | |
std::vector< unsigned long > | m_countMsLevelSpectrum |
example of interface to count MS levels of all spectrum in an MSrun
Definition at line 112 of file msrunreader.h.
unsigned long pappso::MsRunSimpleStatistics::getMsLevelCount | ( | unsigned int | ms_level | ) | const |
Definition at line 133 of file msrunreader.cpp.
References m_countMsLevelSpectrum.
unsigned long pappso::MsRunSimpleStatistics::getTotalCount | ( | ) | const |
|
overridevirtual |
Reimplemented from pappso::SpectrumCollectionHandlerInterface.
Definition at line 105 of file msrunreader.cpp.
|
overridevirtual |
tells if we need the peak list (if we want the binary data) for each spectrum
Implements pappso::SpectrumCollectionHandlerInterface.
Definition at line 98 of file msrunreader.cpp.
|
overridevirtual |
Implements pappso::SpectrumCollectionHandlerInterface.
Definition at line 113 of file msrunreader.cpp.
References pappso::QualifiedMassSpectrum::getMsLevel(), and m_countMsLevelSpectrum.
|
private |
Definition at line 116 of file msrunreader.h.
Referenced by getMsLevelCount(), getTotalCount(), and setQualifiedMassSpectrum().