| 
    libpappsomspp
    
   Library for mass spectrometry 
   | 
 
interface to collect spectrums from the MsRunReader class More...
#include <spectrumcollectionhandlerinterface.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   | |
| 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   | |
| virtual void | setNeedMsLevelPeakList (unsigned int ms_level, bool want_peak_list) final | 
| tells if we need the peak list given   | |
| 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   | |
| virtual bool | isReadAhead () const | 
| tells if we want to read ahead spectrum   | |
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 spectrumcollectionhandlerinterface.h.
      
  | 
  virtual | 
tells if we want to read ahead spectrum
Reimplemented in pappso::masschroq::PrecursorParser.
Definition at line 58 of file spectrumcollectionhandlerinterface.cpp.
References m_isReadAhead.
Referenced by needPeakList(), and pappso::TimsMsRunReaderMs2Selected::readSpectrumCollection().
      
  | 
  virtual | 
Reimplemented in pappso::MsRunSimpleStatistics, and pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints.
Definition at line 43 of file spectrumcollectionhandlerinterface.cpp.
Referenced by pappso::TimsDdaPrecursors::ms2ReaderSpectrumCollectionByMsLevel(), needPeakList(), pappso::TimsMsRunReaderMs2Selected::readSpectrumCollection(), pappso::XyMsRunReader::readSpectrumCollection(), pappso::BafAsciiMsRunReader::readSpectrumCollectionByMsLevel(), pappso::PwizMsRunReader::readSpectrumCollectionByMsLevel(), pappso::TimsMsRunReader::readSpectrumCollectionByMsLevel(), pappso::TimsMsRunReaderMs2::readSpectrumCollectionByMsLevel(), pappso::XyMsRunReader::readSpectrumCollectionByMsLevel(), and pappso::PwizMsRunReader::readSpectrumCollectionWithMsrunReadConfig().
      
  | 
  finalvirtual | 
tells if we need the peak list (if we want the binary data) for each spectrum, given an MS level
Definition at line 64 of file spectrumcollectionhandlerinterface.cpp.
References m_needPeakListByMsLevel, and needPeakList().
Referenced by pappso::TimsDdaPrecursors::ms2ReaderGenerateMS1MS2Spectrum(), needPeakList(), pappso::TimsDdaPrecursors::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::masschroq::PrecursorParser, pappso::MsRunQualifiedSpectrumLoader, pappso::MsRunReaderRetentionTimeLine, pappso::MsRunReaderScanNumberMultiMap, pappso::MsRunReaderTicChromatogram, pappso::MsRunSimpleStatistics, pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints, and pappso::MzxmlOutput::Translater.
References isReadAhead(), loadingEnded(), needMsLevelPeakList(), setNeedMsLevelPeakList(), setReadAhead(), shouldStop(), and spectrumListHasSize().
Referenced by needMsLevelPeakList(), pappso::TimsMsRunReaderMs2Selected::readSpectrumCollection(), pappso::BafAsciiMsRunReader::readSpectrumCollectionByMsLevel(), and pappso::PwizMsRunReader::readSpectrumCollectionByMsLevel().
      
  | 
  finalvirtual | 
tells if we need the peak list given
Definition at line 82 of file spectrumcollectionhandlerinterface.cpp.
References m_needPeakListByMsLevel.
Referenced by needPeakList(), pappso::MzxmlOutput::write(), and pappso::MzxmlOutput::write().
      
  | 
  pure virtual | 
Implemented in pappso::masschroq::PrecursorParser, pappso::MsRunQualifiedSpectrumLoader, pappso::MsRunReaderRetentionTimeLine, pappso::MsRunReaderScanNumberMultiMap, pappso::MsRunReaderTicChromatogram, pappso::MsRunSimpleStatistics, pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints, and pappso::MzxmlOutput::Translater.
Referenced by pappso::TimsDdaPrecursors::ms2ReaderSpectrumCollectionByMsLevel(), pappso::TimsDdaPrecursors::rawReaderSpectrumCollectionByMsLevel(), pappso::TimsMsRunReaderMs2Selected::readSpectrumCollection(), pappso::XyMsRunReader::readSpectrumCollection(), pappso::TimsFramesMsRunReader::readSpectrumCollection2(), pappso::TimsMsRunReader::readSpectrumCollection2(), pappso::BafAsciiMsRunReader::readSpectrumCollectionByMsLevel(), pappso::PwizMsRunReader::readSpectrumCollectionByMsLevel(), pappso::XyMsRunReader::readSpectrumCollectionByMsLevel(), and pappso::PwizMsRunReader::readSpectrumCollectionWithMsrunReadConfig().
      
  | 
  finalvirtual | 
use threads to read a spectrum by batch of batch_size
| is_read_ahead | boolean to use threads or not | 
Definition at line 52 of file spectrumcollectionhandlerinterface.cpp.
References m_isReadAhead.
Referenced by needPeakList(), pappso::MzxmlOutput::write(), and pappso::MzxmlOutput::write().
      
  | 
  virtual | 
Definition at line 38 of file spectrumcollectionhandlerinterface.cpp.
Referenced by pappso::TimsDdaPrecursors::ms2ReaderSpectrumCollectionByMsLevel(), needPeakList(), pappso::TimsDdaPrecursors::rawReaderSpectrumCollectionByMsLevel(), pappso::TimsMsRunReaderMs2Selected::readSpectrumCollection(), pappso::TimsFramesMsRunReader::readSpectrumCollection2(), pappso::TimsMsRunReader::readSpectrumCollection2(), pappso::BafAsciiMsRunReader::readSpectrumCollectionByMsLevel(), pappso::PwizMsRunReader::readSpectrumCollectionByMsLevel(), and pappso::PwizMsRunReader::readSpectrumCollectionWithMsrunReadConfig().
      
  | 
  virtual | 
Reimplemented in pappso::MsRunQualifiedSpectrumLoader.
Definition at line 47 of file spectrumcollectionhandlerinterface.cpp.
Referenced by needPeakList(), pappso::TimsDdaPrecursors::rawReaderSpectrumCollectionByMsLevel(), pappso::TimsMsRunReaderMs2Selected::readSpectrumCollection(), pappso::TimsFramesMsRunReader::readSpectrumCollection2(), pappso::TimsMsRunReader::readSpectrumCollection2(), pappso::PwizMsRunReader::readSpectrumCollectionByMsLevel(), pappso::TimsMsRunReaderMs2::readSpectrumCollectionByMsLevel(), and pappso::PwizMsRunReader::readSpectrumCollectionWithMsrunReadConfig().
      
  | 
  private | 
Definition at line 90 of file spectrumcollectionhandlerinterface.h.
Referenced by isReadAhead(), and setReadAhead().
      
  | 
  private | 
Definition at line 92 of file spectrumcollectionhandlerinterface.h.
Referenced by needMsLevelPeakList(), and setNeedMsLevelPeakList().