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.

36 : msp_msRunReader(msrun_reader)
37{
38
39 pappso::TimsMsRunReaderMs2 *tims2_reader =
40 dynamic_cast<pappso::TimsMsRunReaderMs2 *>(msp_msRunReader.get());
41 if(tims2_reader != nullptr)
42 {
44 }
45
47 mpa_precursorParser = new PrecursorParser(msp_msRunReader);
48
50 config.setNeedPeakList(false);
51 config.setMsLevels({2});
52 qDebug();
53 // msrunA01.get()->readSpectrumCollection(spectrum_list_reader);
54 msp_msRunReader.get()->readSpectrumCollection2(config, *mpa_precursorParser);
55}
void setNeedPeakList(bool need_peak_list)
void setMsLevels(std::vector< std::size_t > ms_levels)
virtual std::vector< double > getRetentionTimeLine() override
retention timeline get retention times along the MSrun in seconds
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 pappso::TimsMsRunReaderMs2::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 57 of file msrun.cpp.

58{
60}

Member Function Documentation

◆ getMsRunReaderSPtr() [1/2]

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

Definition at line 69 of file msrun.cpp.

70{
71 return msp_msRunReader;
72}

◆ getMsRunReaderSPtr() [2/2]

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

Definition at line 63 of file msrun.cpp.

64{
65 return msp_msRunReader;
66}

Referenced by pappso::masschroq::CborOutputStream::writeMsRun().

◆ getPrecursorSPtrByScanNumber()

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

Definition at line 76 of file msrun.cpp.

77{
78 std::size_t spectrum_index = msp_msRunReader.get()->scanNumber2SpectrumIndex(scan_number);
80}
const PrecursorSp & getPrecursorSPtrBySpectrumIndex(std::size_t spectrum_index) const

◆ getPrecursorSPtrBySpectrumIndex()

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

Definition at line 82 of file msrun.cpp.

83{
85}

◆ getRetentionTimeLine()

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

Definition at line 88 of file msrun.cpp.

89{
91}

◆ hasTimsTofMobilityIndex()

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

Definition at line 94 of file msrun.cpp.

95{
97}

Member Data Documentation

◆ m_hasTimsTofMobilityIndex

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

Definition at line 87 of file msrun.h.

Referenced by MsRun().

◆ m_retentionTimeLine

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

Definition at line 85 of file msrun.h.

Referenced by MsRun().

◆ 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

Definition at line 83 of file msrun.h.

Referenced by MsRun().

◆ msp_msRunReader

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

Definition at line 75 of file msrun.h.

Referenced by MsRun().

◆ 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: