libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::masschroq::MsRun Class Reference

#include <msrun.h>

Public Member Functions

 MsRun (pappso::MsRunReaderSPtr msrun_reader)
 
virtual ~MsRun ()
 
const pappso::MsRunReaderSPtrgetMsRunReaderSPtr () const
 
pappso::MsRunReaderSPtrgetMsRunReaderSPtr ()
 
const PrecursorSpgetPrecursorSPtrBySpectrumIndex (std::size_t spectrum_index) const
 
const PrecursorSpgetPrecursorSPtrByScanNumber (std::size_t scan_number) const
 
const std::vector< double > & getRetentionTimeLine () const
 
bool hasTimsTofMobilityIndex () const
 

Private Attributes

pappso::MsRunReaderSPtr msp_msRunReader
 
std::map< std::size_t, PrecursorSpm_spectrumIndex2precursorMap
 new map dedicated to spectrum index to replace obsolete scan number
 
pappso::MsRunXicExtractorInterfaceSp msp_msRunXicExtractorInterfaceSp
 
PrecursorParsermpa_precursorParser
 
std::vector< double > m_retentionTimeLine
 
bool m_hasTimsTofMobilityIndex = false
 

Detailed Description

@description group together an msrun reader object and list of precursors (MS1 peak chosen for fragmentation)

Definition at line 49 of file msrun.h.

Constructor & Destructor Documentation

◆ MsRun()

pappso::masschroq::MsRun::MsRun ( pappso::MsRunReaderSPtr msrun_reader)

Default constructor

Definition at line 35 of file msrun.cpp.

35 : msp_msRunReader(msrun_reader)
36{
37
38 pappso::TimsMsRunReaderMs2 *tims2_reader =
39 dynamic_cast<pappso::TimsMsRunReaderMs2 *>(msp_msRunReader.get());
40 if(tims2_reader != nullptr)
41 {
43 }
44
45 m_retentionTimeLine = msp_msRunReader.get()->getRetentionTimeLine();
46 mpa_precursorParser = new PrecursorParser(msp_msRunReader);
47
48 pappso::MsRunReadConfig config;
49 config.setNeedPeakList(false);
50 config.setMsLevels({2});
51 qDebug();
52 // msrunA01.get()->readSpectrumCollection(spectrum_list_reader);
53 msp_msRunReader.get()->readSpectrumCollection2(config, *mpa_precursorParser);
54}
void setNeedPeakList(bool need_peak_list)
void setMsLevels(std::vector< std::size_t > ms_levels)
PrecursorParser * mpa_precursorParser
Definition msrun.h:83
std::vector< double > m_retentionTimeLine
Definition msrun.h:85
bool m_hasTimsTofMobilityIndex
Definition msrun.h:87
pappso::MsRunReaderSPtr msp_msRunReader
Definition msrun.h:75

References getRetentionTimeLine(), m_hasTimsTofMobilityIndex, m_retentionTimeLine, mpa_precursorParser, msp_msRunReader, pappso::MsRunReadConfig::setMsLevels(), and pappso::MsRunReadConfig::setNeedPeakList().

◆ ~MsRun()

pappso::masschroq::MsRun::~MsRun ( )
virtual

Destructor

Definition at line 56 of file msrun.cpp.

57{
59}

References mpa_precursorParser.

Member Function Documentation

◆ getMsRunReaderSPtr() [1/2]

pappso::MsRunReaderSPtr & pappso::masschroq::MsRun::getMsRunReaderSPtr ( )

Definition at line 68 of file msrun.cpp.

69{
70 return msp_msRunReader;
71}

References msp_msRunReader.

◆ getMsRunReaderSPtr() [2/2]

const pappso::MsRunReaderSPtr & pappso::masschroq::MsRun::getMsRunReaderSPtr ( ) const

◆ getPrecursorSPtrByScanNumber()

const pappso::masschroq::PrecursorSp & pappso::masschroq::MsRun::getPrecursorSPtrByScanNumber ( std::size_t scan_number) const

Definition at line 75 of file msrun.cpp.

76{
77 return mpa_precursorParser->getPrecursorSPtrByScanNumber(scan_number);
78}

References mpa_precursorParser.

◆ getPrecursorSPtrBySpectrumIndex()

const pappso::masschroq::PrecursorSp & pappso::masschroq::MsRun::getPrecursorSPtrBySpectrumIndex ( std::size_t spectrum_index) const

Definition at line 80 of file msrun.cpp.

81{
82 return mpa_precursorParser->getPrecursorSPtrBySpectrumIndex(spectrum_index);
83}

References mpa_precursorParser.

◆ getRetentionTimeLine()

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

Definition at line 86 of file msrun.cpp.

87{
89}

References m_retentionTimeLine.

Referenced by MsRun().

◆ hasTimsTofMobilityIndex()

bool pappso::masschroq::MsRun::hasTimsTofMobilityIndex ( ) const

Definition at line 92 of file msrun.cpp.

93{
95}

References m_hasTimsTofMobilityIndex.

Member Data Documentation

◆ m_hasTimsTofMobilityIndex

bool pappso::masschroq::MsRun::m_hasTimsTofMobilityIndex = false
private

Definition at line 87 of file msrun.h.

Referenced by MsRun(), and hasTimsTofMobilityIndex().

◆ m_retentionTimeLine

std::vector<double> pappso::masschroq::MsRun::m_retentionTimeLine
private

Definition at line 85 of file msrun.h.

Referenced by MsRun(), and getRetentionTimeLine().

◆ m_spectrumIndex2precursorMap

std::map<std::size_t, PrecursorSp> pappso::masschroq::MsRun::m_spectrumIndex2precursorMap
private

new map dedicated to spectrum index to replace obsolete scan number

Definition at line 79 of file msrun.h.

◆ mpa_precursorParser

PrecursorParser* pappso::masschroq::MsRun::mpa_precursorParser
private

◆ msp_msRunReader

pappso::MsRunReaderSPtr pappso::masschroq::MsRun::msp_msRunReader
private

Definition at line 75 of file msrun.h.

Referenced by MsRun(), getMsRunReaderSPtr(), and getMsRunReaderSPtr().

◆ msp_msRunXicExtractorInterfaceSp

pappso::MsRunXicExtractorInterfaceSp pappso::masschroq::MsRun::msp_msRunXicExtractorInterfaceSp
private

Definition at line 81 of file msrun.h.


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