libpappsomspp
Library for mass spectrometry
|
#include <timsframesmsrunreader.h>
Public Member Functions | |
TimsFramesMsRunReader (MsRunIdCstSPtr &msrun_id_csp) | |
virtual | ~TimsFramesMsRunReader () |
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... | |
virtual Trace | computeTicChromatogram () |
![]() | |
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 43 of file timsframesmsrunreader.h.
TimsFramesMsRunReader::TimsFramesMsRunReader | ( | MsRunIdCstSPtr & | msrun_id_csp | ) |
Definition at line 34 of file timsframesmsrunreader.cpp.
References initialize().
|
virtual |
Definition at line 42 of file timsframesmsrunreader.cpp.
References msp_timsData.
|
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 62 of file timsframesmsrunreader.cpp.
|
overridevirtual |
acquire data back end device
Implements pappso::MsRunReader.
Definition at line 216 of file timsframesmsrunreader.cpp.
References initialize(), and msp_timsData.
Referenced by getTicChromatogram(), and getTimsDataSPtr().
|
virtual |
Definition at line 269 of file timsframesmsrunreader.cpp.
References pappso::Trace::append(), msp_timsData, and pappso::rt.
|
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 257 of file timsframesmsrunreader.cpp.
References acquireDevice(), and msp_timsData.
|
virtual |
give an access to the underlying raw data pointer
Definition at line 249 of file timsframesmsrunreader.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 202 of file timsframesmsrunreader.cpp.
|
overrideprotectedvirtual |
Implements pappso::MsRunReader.
Definition at line 48 of file timsframesmsrunreader.cpp.
References pappso::MsRunReader::mcsp_msRunId, and msp_timsData.
Referenced by TimsFramesMsRunReader(), and acquireDevice().
|
overridevirtual |
Implements pappso::MsRunReader.
Definition at line 82 of file timsframesmsrunreader.cpp.
References msp_timsData.
|
overridevirtual |
get a MassSpectrumSPtr class given its spectrum index
Implements pappso::MsRunReader.
Definition at line 70 of file timsframesmsrunreader.cpp.
|
overridevirtual |
get a xic coordinate object from a given spectrum
Implements pappso::MsRunReader.
Definition at line 238 of file timsframesmsrunreader.cpp.
|
overridevirtual |
get a xic coordinate object from a given spectrum index
Implements pappso::MsRunReader.
Definition at line 227 of file timsframesmsrunreader.cpp.
|
overridevirtual |
get a QualifiedMassSpectrum class given its scan number
Implements pappso::MsRunReader.
Definition at line 89 of file timsframesmsrunreader.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 102 of file timsframesmsrunreader.cpp.
References pappso::MsRunReader::getMsRunId(), msp_timsData, pappso::QualifiedMassSpectrum::setDtInMilliSeconds(), pappso::QualifiedMassSpectrum::setEmptyMassSpectrum(), pappso::QualifiedMassSpectrum::setMassSpectrumId(), pappso::QualifiedMassSpectrum::setMassSpectrumSPtr(), pappso::QualifiedMassSpectrum::setMsLevel(), pappso::MassSpectrumId::setMsRunId(), pappso::MassSpectrumId::setNativeId(), pappso::SpectrumCollectionHandlerInterface::setQualifiedMassSpectrum(), pappso::QualifiedMassSpectrum::setRtInSeconds(), pappso::MassSpectrumId::setSpectrumIndex(), and pappso::SpectrumCollectionHandlerInterface::spectrumListHasSize().
|
overridevirtual |
function to visit an MsRunReader and get each Spectrum in a spectrum collection handler by Ms Levels
Implements pappso::MsRunReader.
Definition at line 185 of file timsframesmsrunreader.cpp.
|
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 209 of file timsframesmsrunreader.cpp.
References msp_timsData.
|
overridevirtual |
get the totat number of spectrum conained in the MSrun data file
Implements pappso::MsRunReader.
Definition at line 195 of file timsframesmsrunreader.cpp.
References msp_timsData.
|
friend |
Definition at line 45 of file timsframesmsrunreader.h.
|
private |
Definition at line 100 of file timsframesmsrunreader.h.
Referenced by ~TimsFramesMsRunReader(), acquireDevice(), computeTicChromatogram(), getTicChromatogram(), getTimsDataSPtr(), initialize(), massSpectrumCstSPtr(), qualifiedMassSpectrum(), readSpectrumCollection(), releaseDevice(), and spectrumListSize().