libpappsomspp
Library for mass spectrometry
|
#include <timsmsrunreader.h>
Public Member Functions | |
TimsMsRunReader (MsRunIdCstSPtr &msrun_id_csp) | |
virtual | ~TimsMsRunReader () |
virtual MassSpectrumSPtr | massSpectrumSPtr (std::size_t spectrum_index) override |
get a MassSpectrumSPtr class given its spectrum index More... | |
virtual MassSpectrumCstSPtr | massSpectrumCstSPtr (std::size_t spectrum_index) override |
virtual QualifiedMassSpectrum | qualifiedMassSpectrum (std::size_t spectrum_index, bool want_binary_data=true) const override |
get a QualifiedMassSpectrum class given its scan number More... | |
virtual void | readSpectrumCollection (SpectrumCollectionHandlerInterface &handler) override |
function to visit an MsRunReader and get each Spectrum in a spectrum collection handler More... | |
virtual void | readSpectrumCollectionByMsLevel (SpectrumCollectionHandlerInterface &handler, unsigned int ms_level) override |
function to visit an MsRunReader and get each Spectrum in a spectrum collection handler by Ms Levels More... | |
virtual pappso::XicCoordSPtr | newXicCoordSPtrFromSpectrumIndex (std::size_t spectrum_index, pappso::PrecisionPtr precision) const override |
get a xic coordinate object from a given spectrum index More... | |
virtual pappso::XicCoordSPtr | newXicCoordSPtrFromQualifiedMassSpectrum (const pappso::QualifiedMassSpectrum &mass_spectrum, pappso::PrecisionPtr precision) const override |
get a xic coordinate object from a given spectrum More... | |
virtual std::size_t | spectrumListSize () const override |
get the totat number of spectrum conained in the MSrun data file More... | |
virtual bool | hasScanNumbers () const override |
tells if spectra can be accessed using scan numbers by default, it returns false. Only overrided functions can check if scan numbers are available in the current file More... | |
virtual bool | releaseDevice () override |
release data back end device if a the data back end is released, the developper has to use acquireDevice before using the msrunreader object More... | |
virtual bool | acquireDevice () override |
acquire data back end device More... | |
virtual TimsDataSp | getTimsDataSPtr () |
give an access to the underlying raw data pointer More... | |
virtual Trace | getTicChromatogram () override |
get a TIC chromatogram More... | |
![]() | |
MsRunReader (MsRunIdCstSPtr &ms_run_id) | |
MsRunReader (const MsRunReader &other) | |
virtual | ~MsRunReader () |
const MsRunIdCstSPtr & | getMsRunId () const |
virtual std::size_t | scanNumber2SpectrumIndex (std::size_t scan_number) |
if possible, converts a scan number into a spectrum index This is a convenient function to help transition from the old scan number (not implemented by all vendors) to more secure spectrum index (not vendor dependant). It is better to not rely on this function. More... | |
virtual std::vector< double > | getRetentionTimeLine () |
retention timeline get retention times along the MSrun in seconds More... | |
void | setMonoThread (bool is_mono_thread) |
set only one is_mono_thread to true More... | |
bool | isMonoThread () const |
Protected Member Functions | |
virtual void | initialize () override |
virtual bool | accept (const QString &file_name) const override |
tells if the reader is able to handle this file must be implemented by private MS run reader, specific of one or more file format More... | |
Private Attributes | |
TimsDataSp | msp_timsData = nullptr |
Friends | |
class | MsFileAccessor |
Additional Inherited Members | |
![]() | |
MsRunIdCstSPtr | mcsp_msRunId |
MsRunReaderScanNumberMultiMap * | mpa_multiMapScanNumber = nullptr |
Definition at line 37 of file timsmsrunreader.h.
TimsMsRunReader::TimsMsRunReader | ( | MsRunIdCstSPtr & | msrun_id_csp | ) |
Definition at line 34 of file timsmsrunreader.cpp.
References initialize().
|
virtual |
|
overrideprotectedvirtual |
tells if the reader is able to handle this file must be implemented by private MS run reader, specific of one or more file format
Implements pappso::MsRunReader.
Definition at line 60 of file timsmsrunreader.cpp.
|
overridevirtual |
acquire data back end device
Implements pappso::MsRunReader.
Definition at line 146 of file timsmsrunreader.cpp.
References initialize(), and msp_timsData.
Referenced by getTicChromatogram(), and getTimsDataSPtr().
|
overridevirtual |
get a TIC chromatogram
for each retention time, computes the sum of all intensities. For IM-MS, combines the mobility spectra
Note that, formally, a TIC chromatogram is computed only for MS1 spectra.
Reimplemented from pappso::MsRunReader.
Definition at line 188 of file timsmsrunreader.cpp.
References acquireDevice(), and msp_timsData.
|
virtual |
give an access to the underlying raw data pointer
Definition at line 180 of file timsmsrunreader.cpp.
References acquireDevice(), and msp_timsData.
|
overridevirtual |
tells if spectra can be accessed using scan numbers by default, it returns false. Only overrided functions can check if scan numbers are available in the current file
Reimplemented from pappso::MsRunReader.
Definition at line 132 of file timsmsrunreader.cpp.
|
overrideprotectedvirtual |
Implements pappso::MsRunReader.
Definition at line 46 of file timsmsrunreader.cpp.
References pappso::MsRunReader::mcsp_msRunId, and msp_timsData.
Referenced by TimsMsRunReader(), and acquireDevice().
|
overridevirtual |
Implements pappso::MsRunReader.
Definition at line 77 of file timsmsrunreader.cpp.
References msp_timsData.
|
overridevirtual |
get a MassSpectrumSPtr class given its spectrum index
Implements pappso::MsRunReader.
Definition at line 68 of file timsmsrunreader.cpp.
|
overridevirtual |
get a xic coordinate object from a given spectrum
Implements pappso::MsRunReader.
Definition at line 169 of file timsmsrunreader.cpp.
|
overridevirtual |
get a xic coordinate object from a given spectrum index
Implements pappso::MsRunReader.
Definition at line 157 of file timsmsrunreader.cpp.
|
overridevirtual |
get a QualifiedMassSpectrum class given its scan number
Implements pappso::MsRunReader.
Definition at line 84 of file timsmsrunreader.cpp.
References pappso::MsRunReader::getMsRunId(), and msp_timsData.
|
overridevirtual |
function to visit an MsRunReader and get each Spectrum in a spectrum collection handler
Implements pappso::MsRunReader.
Definition at line 97 of file timsmsrunreader.cpp.
References readSpectrumCollectionByMsLevel().
|
overridevirtual |
function to visit an MsRunReader and get each Spectrum in a spectrum collection handler by Ms Levels
Implements pappso::MsRunReader.
Definition at line 105 of file timsmsrunreader.cpp.
References pappso::MsRunReader::getMsRunId(), pappso::SpectrumCollectionHandlerInterface::loadingEnded(), and msp_timsData.
Referenced by readSpectrumCollection().
|
overridevirtual |
release data back end device if a the data back end is released, the developper has to use acquireDevice before using the msrunreader object
Implements pappso::MsRunReader.
Definition at line 139 of file timsmsrunreader.cpp.
References msp_timsData.
|
overridevirtual |
get the totat number of spectrum conained in the MSrun data file
Implements pappso::MsRunReader.
Definition at line 125 of file timsmsrunreader.cpp.
References msp_timsData.
|
friend |
Definition at line 39 of file timsmsrunreader.h.
|
private |
Definition at line 93 of file timsmsrunreader.h.
Referenced by ~TimsMsRunReader(), acquireDevice(), getTicChromatogram(), getTimsDataSPtr(), initialize(), massSpectrumCstSPtr(), qualifiedMassSpectrum(), readSpectrumCollectionByMsLevel(), releaseDevice(), and spectrumListSize().