libpappsomspp
Library for mass spectrometry
|
#include <timsdata.h>
Classes | |
struct | FrameIdDescr |
struct | SpectrumDescr |
Public Member Functions | |
TimsData (QDir timsDataDirectory) | |
build using the tims data directory More... | |
TimsData (const TimsData &other) | |
virtual | ~TimsData () |
pappso::MassSpectrumCstSPtr | getMassSpectrumCstSPtrByRawIndex (std::size_t raw_index) |
get a mass spectrum given its spectrum index More... | |
pappso::MassSpectrumCstSPtr | getMassSpectrumCstSPtr (std::size_t timsId, std::size_t scanNum) |
get a mass spectrum given the tims frame database id and scan number within tims frame More... | |
std::size_t | getTotalNumberOfScans () const |
get the total number of scans More... | |
std::size_t | getTotalNumberOfPrecursors () const |
get the number of precursors analyzes by PASEF More... | |
std::vector< std::size_t > | getPrecursorsFromMzRtCharge (int charge, double mz_val, double rt_sec, double k0) |
guess possible precursor ids given a charge, m/z, retention time and k0 More... | |
unsigned int | getMsLevelBySpectrumIndex (std::size_t spectrum_index) |
void | getQualifiedMassSpectrumByRawIndex (const MsRunIdCstSPtr &msrun_id, QualifiedMassSpectrum &mass_spectrum, std::size_t spectrum_index, bool want_binary_data) |
Trace | getTicChromatogram () |
void | getQualifiedMs2MassSpectrumByPrecursorId (const MsRunIdCstSPtr &msrun_id, QualifiedMassSpectrum &mass_spectrum, SpectrumDescr &spectrum_descr, bool want_binary_data) |
void | getQualifiedMs1MassSpectrumByPrecursorId (const MsRunIdCstSPtr &msrun_id, QualifiedMassSpectrum &mass_spectrum, SpectrumDescr &spectrum_descr, bool want_binary_data) |
void | setMs2FilterCstSPtr (pappso::FilterInterfaceCstSPtr &filter) |
filter interface to apply just after raw MS2 specturm extraction the filter can be a list of filters inside a FilterSuite object More... | |
void | setMs1FilterCstSPtr (pappso::FilterInterfaceCstSPtr &filter) |
filter interface to apply just after raw MS1 specturm extraction the filter can be a list of filters inside a FilterSuite object More... | |
void | setMs2BuiltinCentroid (bool centroid) |
enable or disable simple centroid filter on raw tims data for MS2 More... | |
bool | getMs2BuiltinCentroid () const |
tells if simple centroid filter on raw tims data for MS2 is enabled or not More... | |
std::vector< std::size_t > | getTimsMS1FrameIdRange (double rt_begin, double rt_end) const |
TimsFrameCstSPtr | getTimsFrameCstSPtr (std::size_t timsId) |
get a Tims frame with his database ID More... | |
XicCoordTims | getXicCoordTimsFromPrecursorId (std::size_t precursor_id, PrecisionPtr precision_ptr) |
void | ms2ReaderSpectrumCollectionByMsLevel (const MsRunIdCstSPtr &msrun_id, SpectrumCollectionHandlerInterface &handler, unsigned int ms_level) |
function to visit an MsRunReader and get each Spectrum in a spectrum collection handler by Ms Levels More... | |
void | rawReaderSpectrumCollectionByMsLevel (const MsRunIdCstSPtr &msrun_id, SpectrumCollectionHandlerInterface &handler, unsigned int ms_level) |
function to visit an MsRunReader and get each raw Spectrum in a spectrum collection handler by Ms Levels More... | |
std::map< quint32, quint32 > | getRawMs2ByPrecursorId (std::size_t precursor_index) |
get cumulated raw signal for a given precursor only to use to see the raw signal More... | |
std::map< quint32, quint32 > | getRawMsBySpectrumIndex (std::size_t spectrum_index) |
get raw signal for a spectrum index only to use to see the raw signal More... | |
virtual std::vector< double > | getRetentionTimeLine () const |
retention timeline get retention times along the MSrun in seconds More... | |
SpectrumDescr | getSpectrumDescrWithPrecursorId (std::size_t precursor_id) |
get an intermediate structure describing a spectrum More... | |
Private Member Functions | |
SpectrumDescr | getSpectrumDescrWithScanCoordinate (const std::pair< std::size_t, std::size_t > &scan_coordinate) |
std::pair< std::size_t, std::size_t > | getScanCoordinateFromRawIndex (std::size_t spectrum_index) const |
std::size_t | getRawIndexFromCoordinate (std::size_t frame_id, std::size_t scan_num) const |
QSqlDatabase | openDatabaseConnection () const |
TimsFrameBaseCstSPtr | getTimsFrameBaseCstSPtr (std::size_t timsId) |
get a Tims frame base (no binary data file access) with his database ID More... | |
TimsFrameCstSPtr | getTimsFrameCstSPtrCached (std::size_t timsId) |
get a Tims frame with his database ID but look in the cache first More... | |
TimsFrameBaseCstSPtr | getTimsFrameBaseCstSPtrCached (std::size_t timsId) |
std::vector< std::size_t > | getMatchPrecursorIdByKo (std::vector< std::vector< double >> ids, double ko_value) |
std::vector< std::size_t > | getClosestPrecursorIdByMz (std::vector< std::vector< double >> ids, double mz_value) |
void | fillFrameIdDescrList () |
private function to fill m_frameIdDescrList More... | |
void | ms2ReaderGenerateMS1MS2Spectrum (const MsRunIdCstSPtr &msrun_id, SpectrumCollectionHandlerInterface &handler, SpectrumDescr &spectrum_descr, unsigned int ms_level) |
void | fillSpectrumDescriptionWithSqlRecord (SpectrumDescr &spectrum_descr, QSqlQuery &qprecursor_list) |
Private Attributes | |
QDir | m_timsDataDirectory |
TimsBinDec * | mpa_timsBinDec = nullptr |
std::size_t | m_totalNumberOfScans |
std::size_t | m_totalNumberOfPrecursors |
std::size_t | m_cacheSize = 60 |
std::deque< TimsFrameCstSPtr > | m_timsFrameCache |
std::deque< TimsFrameBaseCstSPtr > | m_timsFrameBaseCache |
pappso::FilterInterfaceCstSPtr | mcsp_ms2Filter = nullptr |
pappso::FilterInterfaceCstSPtr | mcsp_ms1Filter = nullptr |
bool | m_builtinMs2Centroid = true |
enable builtin centroid on raw tims integers by default More... | |
std::map< int, QSqlRecord > | m_mapMzCalibrationRecord |
std::map< int, QSqlRecord > | m_mapTimsCalibrationRecord |
std::map< std::size_t, QSqlRecord > | m_mapFramesRecord |
std::map< std::size_t, QSqlRecord > | m_mapXicCoordRecord |
MzCalibrationStore * | mpa_mzCalibrationStore |
std::vector< FrameIdDescr > | m_frameIdDescrList |
store every frame id and corresponding sizes More... | |
std::map< std::size_t, std::size_t > | m_thousandIndexToFrameIdDescrListIndex |
index to find quickly a frameId in the description list with the raw index of spectrum modulo 1000 @key thousands of TOF scans @value corresponding m_frameIdDescrList index More... | |
QMutex | m_mutex |
Definition at line 55 of file timsdata.h.
pappso::TimsData::TimsData | ( | QDir | timsDataDirectory | ) |
build using the tims data directory
Definition at line 48 of file timsdata.cpp.
References fillFrameIdDescrList(), m_mapFramesRecord, m_mapMzCalibrationRecord, m_mapTimsCalibrationRecord, m_timsDataDirectory, m_totalNumberOfPrecursors, m_totalNumberOfScans, mcsp_ms1Filter, mcsp_ms2Filter, mpa_mzCalibrationStore, mpa_timsBinDec, and openDatabaseConnection().
pappso::TimsData::TimsData | ( | const TimsData & | other | ) |
Copy constructor
other | TODO |
|
virtual |
Destructor
Definition at line 255 of file timsdata.cpp.
References mpa_mzCalibrationStore, and mpa_timsBinDec.
|
private |
private function to fill m_frameIdDescrList
number of scans in mobility dimension (number of TOF scans)
Definition at line 281 of file timsdata.cpp.
References m_frameIdDescrList, m_thousandIndexToFrameIdDescrListIndex, m_timsDataDirectory, and openDatabaseConnection().
Referenced by TimsData().
|
private |
Definition at line 1904 of file timsdata.cpp.
References pappso::TimsData::SpectrumDescr::collisionEnergy, pappso::TimsData::SpectrumDescr::isolationMz, pappso::TimsData::SpectrumDescr::isolationWidth, pappso::TimsData::SpectrumDescr::ms1_index, pappso::TimsData::SpectrumDescr::ms2_index, pappso::TimsData::SpectrumDescr::parent_frame, pappso::TimsData::SpectrumDescr::precursor_id, pappso::TimsData::SpectrumDescr::precursor_ion_data, pappso::TimsData::SpectrumDescr::scan_mobility_end, pappso::TimsData::SpectrumDescr::scan_mobility_start, and pappso::TimsData::SpectrumDescr::tims_frame_list.
|
private |
Definition at line 734 of file timsdata.cpp.
Referenced by getPrecursorsFromMzRtCharge().
pappso::MassSpectrumCstSPtr pappso::TimsData::getMassSpectrumCstSPtr | ( | std::size_t | timsId, |
std::size_t | scanNum | ||
) |
get a mass spectrum given the tims frame database id and scan number within tims frame
Definition at line 607 of file timsdata.cpp.
References getTimsFrameCstSPtrCached().
Referenced by getMassSpectrumCstSPtrByRawIndex().
pappso::MassSpectrumCstSPtr pappso::TimsData::getMassSpectrumCstSPtrByRawIndex | ( | std::size_t | raw_index | ) |
get a mass spectrum given its spectrum index
raw_index | a number begining at 0, corresponding to a Tims Scan in the order they lies in the binary data file |
Definition at line 385 of file timsdata.cpp.
References getMassSpectrumCstSPtr(), getScanCoordinateFromRawIndex(), and pappso::PappsoException::qwhat().
|
private |
Definition at line 708 of file timsdata.cpp.
References getScanCoordinateFromRawIndex(), and getTimsFrameBaseCstSPtrCached().
bool pappso::TimsData::getMs2BuiltinCentroid | ( | ) | const |
tells if simple centroid filter on raw tims data for MS2 is enabled or not
Definition at line 275 of file timsdata.cpp.
References m_builtinMs2Centroid.
unsigned int pappso::TimsData::getMsLevelBySpectrumIndex | ( | std::size_t | spectrum_index | ) |
Definition at line 758 of file timsdata.cpp.
References getScanCoordinateFromRawIndex(), and getTimsFrameCstSPtrCached().
std::vector< std::size_t > pappso::TimsData::getPrecursorsFromMzRtCharge | ( | int | charge, |
double | mz_val, | ||
double | rt_sec, | ||
double | k0 | ||
) |
guess possible precursor ids given a charge, m/z, retention time and k0
Definition at line 629 of file timsdata.cpp.
References getClosestPrecursorIdByMz(), m_timsDataDirectory, and openDatabaseConnection().
void pappso::TimsData::getQualifiedMassSpectrumByRawIndex | ( | const MsRunIdCstSPtr & | msrun_id, |
QualifiedMassSpectrum & | mass_spectrum, | ||
std::size_t | spectrum_index, | ||
bool | want_binary_data | ||
) |
Definition at line 767 of file timsdata.cpp.
References pappso::QualifiedMassSpectrum::appendPrecursorIonData(), pappso::BrukerPrecursorIndex, pappso::CollisionEnergy, getRawIndexFromCoordinate(), getScanCoordinateFromRawIndex(), getSpectrumDescrWithScanCoordinate(), getTimsFrameBaseCstSPtrCached(), getTimsFrameCstSPtrCached(), pappso::IsolationMz, pappso::IsolationWidth, pappso::OneOverK0, pappso::PappsoException::qwhat(), pappso::QualifiedMassSpectrum::setDtInMilliSeconds(), pappso::QualifiedMassSpectrum::setEmptyMassSpectrum(), pappso::QualifiedMassSpectrum::setMassSpectrumId(), pappso::QualifiedMassSpectrum::setMassSpectrumSPtr(), pappso::QualifiedMassSpectrum::setMsLevel(), pappso::MassSpectrumId::setMsRunId(), pappso::MassSpectrumId::setNativeId(), pappso::QualifiedMassSpectrum::setParameterValue(), pappso::QualifiedMassSpectrum::setPrecursorNativeId(), pappso::QualifiedMassSpectrum::setPrecursorSpectrumIndex(), pappso::QualifiedMassSpectrum::setRtInSeconds(), pappso::MassSpectrumId::setSpectrumIndex(), and pappso::QualifiedMassSpectrum::size().
void pappso::TimsData::getQualifiedMs1MassSpectrumByPrecursorId | ( | const MsRunIdCstSPtr & | msrun_id, |
QualifiedMassSpectrum & | mass_spectrum, | ||
SpectrumDescr & | spectrum_descr, | ||
bool | want_binary_data | ||
) |
Definition at line 956 of file timsdata.cpp.
References pappso::TracePlusCombiner::combine(), getTimsFrameBaseCstSPtrCached(), getTimsFrameCstSPtrCached(), mcsp_ms1Filter, pappso::TimsData::SpectrumDescr::ms1_index, pappso::TimsData::SpectrumDescr::ms2_index, pappso::OneOverK0begin, pappso::OneOverK0end, pappso::TimsData::SpectrumDescr::parent_frame, pappso::TimsData::SpectrumDescr::precursor_id, pappso::TimsData::SpectrumDescr::scan_mobility_end, pappso::TimsData::SpectrumDescr::scan_mobility_start, pappso::QualifiedMassSpectrum::setEmptyMassSpectrum(), pappso::QualifiedMassSpectrum::setMassSpectrumId(), pappso::QualifiedMassSpectrum::setMassSpectrumSPtr(), pappso::QualifiedMassSpectrum::setMsLevel(), pappso::MassSpectrumId::setMsRunId(), pappso::MassSpectrumId::setNativeId(), pappso::QualifiedMassSpectrum::setParameterValue(), pappso::QualifiedMassSpectrum::setPrecursorSpectrumIndex(), pappso::QualifiedMassSpectrum::setRtInSeconds(), pappso::MassSpectrumId::setSpectrumIndex(), and pappso::PappsoException::what().
Referenced by pappso::TimsMsRunReaderMs2Selected::qualifiedMassSpectrum().
void pappso::TimsData::getQualifiedMs2MassSpectrumByPrecursorId | ( | const MsRunIdCstSPtr & | msrun_id, |
QualifiedMassSpectrum & | mass_spectrum, | ||
SpectrumDescr & | spectrum_descr, | ||
bool | want_binary_data | ||
) |
Definition at line 1338 of file timsdata.cpp.
References pappso::QualifiedMassSpectrum::appendPrecursorIonData(), pappso::BrukerPrecursorIndex, pappso::CollisionEnergy, pappso::TimsData::SpectrumDescr::collisionEnergy, getTimsFrameBaseCstSPtrCached(), getTimsFrameCstSPtrCached(), pappso::IsolationMz, pappso::TimsData::SpectrumDescr::isolationMz, pappso::IsolationWidth, pappso::TimsData::SpectrumDescr::isolationWidth, m_builtinMs2Centroid, mcsp_ms2Filter, pappso::TimsData::SpectrumDescr::ms1_index, pappso::TimsData::SpectrumDescr::ms2_index, pappso::OneOverK0begin, pappso::OneOverK0end, pappso::TimsData::SpectrumDescr::parent_frame, pappso::TimsData::SpectrumDescr::precursor_id, pappso::TimsData::SpectrumDescr::precursor_ion_data, pappso::PappsoException::qwhat(), pappso::TimsData::SpectrumDescr::scan_mobility_end, pappso::TimsData::SpectrumDescr::scan_mobility_start, pappso::QualifiedMassSpectrum::setEmptyMassSpectrum(), pappso::QualifiedMassSpectrum::setMassSpectrumId(), pappso::QualifiedMassSpectrum::setMassSpectrumSPtr(), pappso::QualifiedMassSpectrum::setMsLevel(), pappso::MassSpectrumId::setMsRunId(), pappso::MassSpectrumId::setNativeId(), pappso::QualifiedMassSpectrum::setParameterValue(), pappso::QualifiedMassSpectrum::setPrecursorNativeId(), pappso::QualifiedMassSpectrum::setPrecursorSpectrumIndex(), pappso::QualifiedMassSpectrum::setRtInSeconds(), pappso::MassSpectrumId::setSpectrumIndex(), pappso::TimsData::SpectrumDescr::tims_frame_list, and pappso::PappsoException::what().
Referenced by pappso::TimsMsRunReaderMs2Selected::qualifiedMassSpectrum().
|
private |
Definition at line 362 of file timsdata.cpp.
References m_frameIdDescrList.
Referenced by getQualifiedMassSpectrumByRawIndex().
std::map< quint32, quint32 > pappso::TimsData::getRawMs2ByPrecursorId | ( | std::size_t | precursor_index | ) |
get cumulated raw signal for a given precursor only to use to see the raw signal
precursor_index | precursor index to extract signal from |
Definition at line 1210 of file timsdata.cpp.
References getTimsFrameCstSPtrCached(), m_timsDataDirectory, openDatabaseConnection(), pappso::PappsoException::qwhat(), and pappso::PappsoException::what().
std::map< quint32, quint32 > pappso::TimsData::getRawMsBySpectrumIndex | ( | std::size_t | spectrum_index | ) |
get raw signal for a spectrum index only to use to see the raw signal
spectrum_index | spcetrum index |
Definition at line 2176 of file timsdata.cpp.
|
virtual |
retention timeline get retention times along the MSrun in seconds
Definition at line 1815 of file timsdata.cpp.
|
private |
Definition at line 326 of file timsdata.cpp.
References m_frameIdDescrList, and m_thousandIndexToFrameIdDescrListIndex.
Referenced by getMassSpectrumCstSPtrByRawIndex(), getMatchPrecursorIdByKo(), getMsLevelBySpectrumIndex(), and getQualifiedMassSpectrumByRawIndex().
pappso::TimsData::SpectrumDescr pappso::TimsData::getSpectrumDescrWithPrecursorId | ( | std::size_t | precursor_id | ) |
get an intermediate structure describing a spectrum
Definition at line 1732 of file timsdata.cpp.
References pappso::TimsData::SpectrumDescr::collisionEnergy, pappso::TimsData::SpectrumDescr::isolationMz, pappso::TimsData::SpectrumDescr::isolationWidth, pappso::TimsData::SpectrumDescr::ms1_index, pappso::TimsData::SpectrumDescr::ms2_index, pappso::TimsData::SpectrumDescr::parent_frame, pappso::TimsData::SpectrumDescr::precursor_id, pappso::TimsData::SpectrumDescr::precursor_ion_data, pappso::TimsData::SpectrumDescr::scan_mobility_end, pappso::TimsData::SpectrumDescr::scan_mobility_start, and pappso::TimsData::SpectrumDescr::tims_frame_list.
Referenced by pappso::TimsMsRunReaderMs2Selected::qualifiedMassSpectrum().
|
private |
Definition at line 1832 of file timsdata.cpp.
References pappso::TimsData::SpectrumDescr::collisionEnergy, pappso::TimsData::SpectrumDescr::isolationMz, pappso::TimsData::SpectrumDescr::isolationWidth, pappso::TimsData::SpectrumDescr::ms1_index, pappso::TimsData::SpectrumDescr::ms2_index, pappso::TimsData::SpectrumDescr::parent_frame, pappso::TimsData::SpectrumDescr::precursor_id, pappso::TimsData::SpectrumDescr::precursor_ion_data, pappso::TimsData::SpectrumDescr::scan_mobility_end, pappso::TimsData::SpectrumDescr::scan_mobility_start, and pappso::TimsData::SpectrumDescr::tims_frame_list.
Referenced by getQualifiedMassSpectrumByRawIndex().
Trace pappso::TimsData::getTicChromatogram | ( | ) |
Definition at line 873 of file timsdata.cpp.
References m_timsDataDirectory, openDatabaseConnection(), pappso::res, pappso::rt, and pappso::MapTrace::toTrace().
|
private |
get a Tims frame base (no binary data file access) with his database ID
Definition at line 406 of file timsdata.cpp.
References pappso::MzCalibrationStore::getInstance(), m_mapFramesRecord, m_mapMzCalibrationRecord, m_mapTimsCalibrationRecord, and mpa_mzCalibrationStore.
Referenced by getTimsFrameBaseCstSPtrCached().
|
private |
Definition at line 1056 of file timsdata.cpp.
References getTimsFrameBaseCstSPtr(), m_cacheSize, and m_timsFrameBaseCache.
Referenced by getMatchPrecursorIdByKo(), getQualifiedMassSpectrumByRawIndex(), getQualifiedMs1MassSpectrumByPrecursorId(), and getQualifiedMs2MassSpectrumByPrecursorId().
TimsFrameCstSPtr pappso::TimsData::getTimsFrameCstSPtr | ( | std::size_t | timsId | ) |
get a Tims frame with his database ID
Definition at line 517 of file timsdata.cpp.
References pappso::MzCalibrationStore::getInstance(), pappso::TimsBinDec::getTimsFrameSPtrByOffset(), m_mapFramesRecord, m_mapMzCalibrationRecord, m_mapTimsCalibrationRecord, m_mutex, mpa_mzCalibrationStore, and mpa_timsBinDec.
Referenced by getTimsFrameCstSPtrCached().
|
private |
get a Tims frame with his database ID but look in the cache first
Definition at line 1075 of file timsdata.cpp.
References getTimsFrameCstSPtr(), m_cacheSize, and m_timsFrameCache.
Referenced by getMassSpectrumCstSPtr(), getMsLevelBySpectrumIndex(), getQualifiedMassSpectrumByRawIndex(), getQualifiedMs1MassSpectrumByPrecursorId(), getQualifiedMs2MassSpectrumByPrecursorId(), and getRawMs2ByPrecursorId().
std::vector< std::size_t > pappso::TimsData::getTimsMS1FrameIdRange | ( | double | rt_begin, |
double | rt_end | ||
) | const |
Definition at line 481 of file timsdata.cpp.
References m_timsDataDirectory, and openDatabaseConnection().
std::size_t pappso::TimsData::getTotalNumberOfPrecursors | ( | ) | const |
get the number of precursors analyzes by PASEF
Definition at line 623 of file timsdata.cpp.
References m_totalNumberOfPrecursors.
Referenced by pappso::TimsMsRunReaderMs2Selected::spectrumListSize().
std::size_t pappso::TimsData::getTotalNumberOfScans | ( | ) | const |
get the total number of scans
Definition at line 616 of file timsdata.cpp.
References m_totalNumberOfScans.
pappso::XicCoordTims pappso::TimsData::getXicCoordTimsFromPrecursorId | ( | std::size_t | precursor_id, |
PrecisionPtr | precision_ptr | ||
) |
Definition at line 1105 of file timsdata.cpp.
References pappso::XicCoord::mzRange, pappso::XicCoord::rtTarget, pappso::XicCoordTims::scanNumBegin, pappso::XicCoordTims::scanNumEnd, pappso::PappsoException::what(), and pappso::XicCoord::xicSptr.
|
private |
Definition at line 1695 of file timsdata.cpp.
References pappso::SpectrumCollectionHandlerInterface::needMsLevelPeakList(), and pappso::SpectrumCollectionHandlerInterface::setQualifiedMassSpectrum().
void pappso::TimsData::ms2ReaderSpectrumCollectionByMsLevel | ( | const MsRunIdCstSPtr & | msrun_id, |
pappso::SpectrumCollectionHandlerInterface & | handler, | ||
unsigned int | ms_level | ||
) |
function to visit an MsRunReader and get each Spectrum in a spectrum collection handler by Ms Levels
this function will retrieve processed qualified spectrum depending on each Bruker precursors
Definition at line 1542 of file timsdata.cpp.
References pappso::TimsData::SpectrumDescr::collisionEnergy, pappso::TimsData::SpectrumDescr::isolationMz, pappso::TimsData::SpectrumDescr::isolationWidth, pappso::TimsData::SpectrumDescr::ms1_index, pappso::TimsData::SpectrumDescr::ms2_index, pappso::TimsData::SpectrumDescr::parent_frame, pappso::TimsData::SpectrumDescr::precursor_id, pappso::TimsData::SpectrumDescr::precursor_ion_data, pappso::TimsData::SpectrumDescr::scan_mobility_end, pappso::TimsData::SpectrumDescr::scan_mobility_start, pappso::SpectrumCollectionHandlerInterface::shouldStop(), and pappso::TimsData::SpectrumDescr::tims_frame_list.
|
private |
Definition at line 220 of file timsdata.cpp.
References m_timsDataDirectory.
Referenced by TimsData(), fillFrameIdDescrList(), getPrecursorsFromMzRtCharge(), getRawMs2ByPrecursorId(), getTicChromatogram(), and getTimsMS1FrameIdRange().
void pappso::TimsData::rawReaderSpectrumCollectionByMsLevel | ( | const MsRunIdCstSPtr & | msrun_id, |
pappso::SpectrumCollectionHandlerInterface & | handler, | ||
unsigned int | ms_level | ||
) |
function to visit an MsRunReader and get each raw Spectrum in a spectrum collection handler by Ms Levels
this function will retrieve every scans as a qualified mass spectrum
Definition at line 1934 of file timsdata.cpp.
References pappso::QualifiedMassSpectrum::appendPrecursorIonData(), pappso::BrukerPrecursorIndex, pappso::CollisionEnergy, pappso::TimsData::SpectrumDescr::collisionEnergy, pappso::MassSpectrumId::getSpectrumIndex(), pappso::IsolationMz, pappso::TimsData::SpectrumDescr::isolationMz, pappso::IsolationWidth, pappso::TimsData::SpectrumDescr::isolationWidth, pappso::SpectrumCollectionHandlerInterface::needMsLevelPeakList(), pappso::OneOverK0, pappso::TimsData::SpectrumDescr::parent_frame, pappso::TimsData::SpectrumDescr::precursor_id, pappso::TimsData::SpectrumDescr::precursor_ion_data, pappso::PappsoException::qwhat(), pappso::TimsData::SpectrumDescr::scan_mobility_end, pappso::TimsData::SpectrumDescr::scan_mobility_start, pappso::QualifiedMassSpectrum::setDtInMilliSeconds(), pappso::QualifiedMassSpectrum::setEmptyMassSpectrum(), pappso::QualifiedMassSpectrum::setMassSpectrumId(), pappso::QualifiedMassSpectrum::setMassSpectrumSPtr(), pappso::QualifiedMassSpectrum::setMsLevel(), pappso::MassSpectrumId::setMsRunId(), pappso::MassSpectrumId::setNativeId(), pappso::QualifiedMassSpectrum::setParameterValue(), pappso::QualifiedMassSpectrum::setPrecursorNativeId(), pappso::QualifiedMassSpectrum::setPrecursorSpectrumIndex(), pappso::SpectrumCollectionHandlerInterface::setQualifiedMassSpectrum(), pappso::QualifiedMassSpectrum::setRtInSeconds(), pappso::MassSpectrumId::setSpectrumIndex(), pappso::SpectrumCollectionHandlerInterface::shouldStop(), pappso::QualifiedMassSpectrum::size(), and pappso::SpectrumCollectionHandlerInterface::spectrumListHasSize().
void pappso::TimsData::setMs1FilterCstSPtr | ( | pappso::FilterInterfaceCstSPtr & | filter | ) |
filter interface to apply just after raw MS1 specturm extraction the filter can be a list of filters inside a FilterSuite object
Definition at line 1099 of file timsdata.cpp.
References mcsp_ms1Filter.
Referenced by pappso::TimsMsRunReaderMs2Selected::setMs1FilterCstSPtr().
void pappso::TimsData::setMs2BuiltinCentroid | ( | bool | centroid | ) |
enable or disable simple centroid filter on raw tims data for MS2
Definition at line 269 of file timsdata.cpp.
References m_builtinMs2Centroid.
void pappso::TimsData::setMs2FilterCstSPtr | ( | pappso::FilterInterfaceCstSPtr & | filter | ) |
filter interface to apply just after raw MS2 specturm extraction the filter can be a list of filters inside a FilterSuite object
Definition at line 1094 of file timsdata.cpp.
References mcsp_ms2Filter.
Referenced by pappso::TimsMsRunReaderMs2Selected::setMs2FilterCstSPtr().
|
private |
enable builtin centroid on raw tims integers by default
Definition at line 295 of file timsdata.h.
Referenced by getMs2BuiltinCentroid(), getQualifiedMs2MassSpectrumByPrecursorId(), and setMs2BuiltinCentroid().
|
private |
Definition at line 286 of file timsdata.h.
Referenced by getTimsFrameBaseCstSPtrCached(), and getTimsFrameCstSPtrCached().
|
private |
store every frame id and corresponding sizes
Definition at line 316 of file timsdata.h.
Referenced by fillFrameIdDescrList(), getRawIndexFromCoordinate(), and getScanCoordinateFromRawIndex().
|
private |
Definition at line 300 of file timsdata.h.
Referenced by TimsData(), getTimsFrameBaseCstSPtr(), and getTimsFrameCstSPtr().
|
private |
Definition at line 298 of file timsdata.h.
Referenced by TimsData(), getTimsFrameBaseCstSPtr(), and getTimsFrameCstSPtr().
|
private |
Definition at line 299 of file timsdata.h.
Referenced by TimsData(), getTimsFrameBaseCstSPtr(), and getTimsFrameCstSPtr().
|
private |
Definition at line 301 of file timsdata.h.
|
private |
Definition at line 325 of file timsdata.h.
Referenced by getTimsFrameCstSPtr().
|
private |
index to find quickly a frameId in the description list with the raw index of spectrum modulo 1000 @key thousands of TOF scans @value corresponding m_frameIdDescrList index
Definition at line 323 of file timsdata.h.
Referenced by fillFrameIdDescrList(), and getScanCoordinateFromRawIndex().
|
private |
Definition at line 281 of file timsdata.h.
Referenced by TimsData(), fillFrameIdDescrList(), getPrecursorsFromMzRtCharge(), getRawMs2ByPrecursorId(), getTicChromatogram(), getTimsMS1FrameIdRange(), and openDatabaseConnection().
|
private |
Definition at line 288 of file timsdata.h.
Referenced by getTimsFrameBaseCstSPtrCached().
|
private |
Definition at line 287 of file timsdata.h.
Referenced by getTimsFrameCstSPtrCached().
|
private |
Definition at line 285 of file timsdata.h.
Referenced by TimsData(), and getTotalNumberOfPrecursors().
|
private |
Definition at line 284 of file timsdata.h.
Referenced by TimsData(), and getTotalNumberOfScans().
|
private |
Definition at line 291 of file timsdata.h.
Referenced by TimsData(), getQualifiedMs1MassSpectrumByPrecursorId(), and setMs1FilterCstSPtr().
|
private |
Definition at line 290 of file timsdata.h.
Referenced by TimsData(), getQualifiedMs2MassSpectrumByPrecursorId(), and setMs2FilterCstSPtr().
|
private |
Definition at line 303 of file timsdata.h.
Referenced by TimsData(), ~TimsData(), getTimsFrameBaseCstSPtr(), and getTimsFrameCstSPtr().
|
private |
Definition at line 282 of file timsdata.h.
Referenced by TimsData(), ~TimsData(), and getTimsFrameCstSPtr().