|
libpappsomspp
Library for mass spectrometry
|
base class to transform mzCBOR stream in a new mzCBOR output stream More...
#include <mzcborprecursorfinder.h>
Public Member Functions | |
| MzcborPrecursorFinder (CborStreamWriter *cbor_output_p, const QJsonObject &json_params) | |
| virtual | ~MzcborPrecursorFinder () |
| void | setRetentionTimeRangeInSeconds (double rt_start, double rt_stop) |
| Public Member Functions inherited from pappso::cbor::mzcbor::MzcborCopyReplaceBase | |
| MzcborCopyReplaceBase (CborStreamWriter *cbor_output_p, const QString &operation) | |
| virtual | ~MzcborCopyReplaceBase () |
| virtual void | readCbor (QFile *cborp, pappso::UiMonitorInterface &monitor) |
| read mzCBOR file | |
| virtual void | readCbor (QIODevice *cborp, pappso::UiMonitorInterface &monitor) |
| read mzCBOR from any device (memory buffer or else) | |
| virtual void | close () |
| convenient function to clean pointer before leaving | |
| Public Member Functions inherited from pappso::cbor::CborStreamReaderInterface | |
| CborStreamReaderInterface () | |
| virtual | ~CborStreamReaderInterface () |
Protected Member Functions | |
| virtual void | processQcborSpectrum (SpectrumTube &spectrum_tube, QcborSpectrum &cbor_spectrum) |
| std::vector< QcborSpectrum > | findPotentialPrecursorIonData (const QcborSpectrum &ms1_spectrum, const QcborSpectrum &ms2_spectrum, const QcborSpectrumPrecursor &precursor) |
| Protected Member Functions inherited from pappso::cbor::mzcbor::MzcborCopyReplaceBase | |
| void | readRoot (pappso::UiMonitorInterface &monitor) |
| void | readCbor (pappso::UiMonitorInterface &monitor) |
| void | readRun (pappso::UiMonitorInterface &monitor) |
| void | readSpectrumList (pappso::UiMonitorInterface &monitor) |
| Protected Member Functions inherited from pappso::cbor::CborStreamReaderInterface | |
| bool | getExpectedString () |
| void | initCborReader (QFile *pcborfile) |
| void | initCborReader (QIODevice *pcborfile) |
Private Member Functions | |
| QJsonValue | getParameterValue (const QString &name) const |
Private Attributes | |
| QJsonObject | m_parameters |
| std::vector< std::int8_t > | m_potentialPrecursorChargeStateList = {1, 2, 3} |
| double | m_rtStart = 0 |
| double | m_rtStop = std::numeric_limits<double>::max() |
| std::map< QString, QString > | m_ms1idOldToNew |
| std::deque< std::pair< QString, QcborSpectrum > > | m_spectrumMs1List |
| std::size_t | m_maxSpectrumMs1ListSize = 100 |
| pappso::PrecisionPtr | m_ms2Tolerance |
| pappso::PrecisionPtr | m_ms1Tolerance |
| double | m_intensityRatioThreshold = 0.3 |
| std::size_t | m_minimumComplementIon = 1 |
| double | m_ms2minimumMz = 150 |
| std::size_t | m_ms2nMostIntense = 60 |
| std::deque< std::pair< const QcborSpectrum *, TraceSPtr > > | m_cacheMs1Trace |
Additional Inherited Members | |
| Protected Attributes inherited from pappso::cbor::mzcbor::MzcborCopyReplaceBase | |
| bool | m_stopParsing = false |
| CborStreamWriter * | mp_cborOutput |
| QString | m_operation |
| Protected Attributes inherited from pappso::cbor::CborStreamReaderInterface | |
| CborStreamReader * | mpa_cborReader = nullptr |
| QString | m_expectedString |
| QByteArray | m_data |
base class to transform mzCBOR stream in a new mzCBOR output stream
ensures stream read on regular file or any readable device
Definition at line 51 of file mzcborprecursorfinder.h.
| pappso::cbor::mzcbor::MzcborPrecursorFinder::MzcborPrecursorFinder | ( | CborStreamWriter * | cbor_output_p, |
| const QJsonObject & | json_params ) |
Default constructor
Definition at line 54 of file mzcborprecursorfinder.cpp.
References pappso::cbor::mzcbor::MzcborCopyReplaceBase::MzcborCopyReplaceBase(), pappso::PrecisionFactory::getDaltonInstance(), getParameterValue(), pappso::PrecisionFactory::getPpmInstance(), m_intensityRatioThreshold, m_minimumComplementIon, m_ms1Tolerance, m_ms2nMostIntense, m_ms2Tolerance, m_parameters, and m_potentialPrecursorChargeStateList.
|
virtual |
|
protected |
Definition at line 251 of file mzcborprecursorfinder.cpp.
References pappso::cbor::mzcbor::QcborSpectrum::decodeTrace(), FilterComplement::filter(), FilterMs1WindowSelection::filter(), pappso::FilterChargeDeconvolution::filter(), pappso::FilterGreatestY::filter(), pappso::FilterHighPass::filter(), pappso::FilterResampleKeepGreater::filter(), pappso::cbor::mzcbor::QcborSpectrum::getId(), pappso::cbor::mzcbor::QcborSpectrumPrecursor::getSelectedIonList(), m_cacheMs1Trace, m_intensityRatioThreshold, m_maxSpectrumMs1ListSize, m_minimumComplementIon, m_ms2minimumMz, m_ms2nMostIntense, m_ms2Tolerance, m_potentialPrecursorChargeStateList, pappso::cbor::mzcbor::QcborSpectrum::setPrecursorList(), and pappso::cbor::mzcbor::QcborSpectrumPrecursor::setSelectedIon().
Referenced by processQcborSpectrum().
|
private |
Definition at line 111 of file mzcborprecursorfinder.cpp.
References m_parameters.
Referenced by MzcborPrecursorFinder().
|
protectedvirtual |
Reimplemented from pappso::cbor::mzcbor::MzcborCopyReplaceBase.
Definition at line 134 of file mzcborprecursorfinder.cpp.
References pappso::MzRange::contains(), findPotentialPrecursorIonData(), pappso::cbor::mzcbor::QcborSpectrum::getId(), pappso::cbor::mzcbor::QcborSpectrum::getMsLevel(), pappso::cbor::mzcbor::QcborSpectrum::getPrecursorList(), pappso::cbor::mzcbor::QcborSpectrum::getRetentionTimeInSeconds(), pappso::cbor::mzcbor::QcborSpectrumPrecursor::getSelectedIonList(), m_maxSpectrumMs1ListSize, m_ms1idOldToNew, m_ms1Tolerance, m_rtStart, m_rtStop, m_spectrumMs1List, pappso::cbor::mzcbor::SpectrumTube::push_back(), pappso::cbor::mzcbor::QcborSpectrum::setPrecursorList(), and pappso::cbor::mzcbor::QcborSpectrumPrecursor::setSpectrumRef().
| void pappso::cbor::mzcbor::MzcborPrecursorFinder::setRetentionTimeRangeInSeconds | ( | double | rt_start, |
| double | rt_stop ) |
|
private |
Definition at line 92 of file mzcborprecursorfinder.h.
Referenced by findPotentialPrecursorIonData().
|
private |
Definition at line 87 of file mzcborprecursorfinder.h.
Referenced by MzcborPrecursorFinder(), and findPotentialPrecursorIonData().
|
private |
Definition at line 84 of file mzcborprecursorfinder.h.
Referenced by findPotentialPrecursorIonData(), and processQcborSpectrum().
|
private |
Definition at line 88 of file mzcborprecursorfinder.h.
Referenced by MzcborPrecursorFinder(), and findPotentialPrecursorIonData().
|
private |
Definition at line 82 of file mzcborprecursorfinder.h.
Referenced by processQcborSpectrum().
|
private |
Definition at line 86 of file mzcborprecursorfinder.h.
Referenced by MzcborPrecursorFinder(), and processQcborSpectrum().
|
private |
Definition at line 89 of file mzcborprecursorfinder.h.
Referenced by findPotentialPrecursorIonData().
|
private |
Definition at line 90 of file mzcborprecursorfinder.h.
Referenced by MzcborPrecursorFinder(), and findPotentialPrecursorIonData().
|
private |
Definition at line 85 of file mzcborprecursorfinder.h.
Referenced by MzcborPrecursorFinder(), and findPotentialPrecursorIonData().
|
private |
Definition at line 77 of file mzcborprecursorfinder.h.
Referenced by MzcborPrecursorFinder(), and getParameterValue().
|
private |
Definition at line 78 of file mzcborprecursorfinder.h.
Referenced by MzcborPrecursorFinder(), and findPotentialPrecursorIonData().
|
private |
Definition at line 79 of file mzcborprecursorfinder.h.
Referenced by processQcborSpectrum(), and setRetentionTimeRangeInSeconds().
|
private |
Definition at line 80 of file mzcborprecursorfinder.h.
Referenced by processQcborSpectrum(), and setRetentionTimeRangeInSeconds().
|
private |
Definition at line 83 of file mzcborprecursorfinder.h.
Referenced by processQcborSpectrum().