libpappsomspp
Library for mass spectrometry
pappso::MsRunReaderRetentionTimeLine Class Reference

collect retention times along MS run More...

#include <msrunreader.h>

Inheritance diagram for pappso::MsRunReaderRetentionTimeLine:
pappso::SpectrumCollectionHandlerInterface

Public Member Functions

 MsRunReaderRetentionTimeLine ()
 
virtual ~MsRunReaderRetentionTimeLine ()
 
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...
 
const std::vector< double > & getRetentionTimeLine () const
 
- Public Member Functions inherited from pappso::SpectrumCollectionHandlerInterface
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

std::vector< double > m_retention_time_list
 

Detailed Description

collect retention times along MS run

Definition at line 149 of file msrunreader.h.

Constructor & Destructor Documentation

◆ MsRunReaderRetentionTimeLine()

pappso::MsRunReaderRetentionTimeLine::MsRunReaderRetentionTimeLine ( )

Definition at line 223 of file msrunreader.cpp.

224 {
225  // qDebug();
226 }

◆ ~MsRunReaderRetentionTimeLine()

pappso::MsRunReaderRetentionTimeLine::~MsRunReaderRetentionTimeLine ( )
virtual

Definition at line 229 of file msrunreader.cpp.

230 {
231  // qDebug();
232 }

Member Function Documentation

◆ getRetentionTimeLine()

const std::vector< double > & pappso::MsRunReaderRetentionTimeLine::getRetentionTimeLine ( ) const

Definition at line 252 of file msrunreader.cpp.

253 {
254  return m_retention_time_list;
255 }
std::vector< double > m_retention_time_list
Definition: msrunreader.h:153

References m_retention_time_list.

Referenced by pappso::MsRunReader::getRetentionTimeLine().

◆ needPeakList()

bool pappso::MsRunReaderRetentionTimeLine::needPeakList ( ) const
overridevirtual

tells if we need the peak list (if we want the binary data) for each spectrum

Implements pappso::SpectrumCollectionHandlerInterface.

Definition at line 236 of file msrunreader.cpp.

237 {
238  return false;
239 }

◆ setQualifiedMassSpectrum()

void pappso::MsRunReaderRetentionTimeLine::setQualifiedMassSpectrum ( const QualifiedMassSpectrum spectrum)
overridevirtual

Implements pappso::SpectrumCollectionHandlerInterface.

Definition at line 243 of file msrunreader.cpp.

245 {
246  qDebug() << " " << qspectrum.getMassSpectrumId().getNativeId();
247 
248  m_retention_time_list.push_back(qspectrum.getRtInSeconds());
249 }

References pappso::QualifiedMassSpectrum::getMassSpectrumId(), pappso::MassSpectrumId::getNativeId(), pappso::QualifiedMassSpectrum::getRtInSeconds(), and m_retention_time_list.

Member Data Documentation

◆ m_retention_time_list

std::vector<double> pappso::MsRunReaderRetentionTimeLine::m_retention_time_list
private

Definition at line 153 of file msrunreader.h.

Referenced by getRetentionTimeLine(), and setQualifiedMassSpectrum().


The documentation for this class was generated from the following files: