libpappsomspp
Library for mass spectrometry
|
#include <msrunpeptidelist.h>
Public Member Functions | |
MsRunPeptideList (MsRunSp msrun) | |
MsRunPeptideList (const MsRunPeptideList &other) | |
virtual | ~MsRunPeptideList () |
void | addPeptideSpectrumIndexObservation (PeptideSp peptide_sp, PeptideLabel *p_label, std::size_t spectrum_index, std::uint8_t charge) |
void | addPeptideScanNumberObservation (PeptideSp peptide_sp, PeptideLabel *p_label, std::size_t spectrum_index, std::uint8_t charge) |
void | quantify (const MsRunGroup *msrun_group_p, const QString &tmp_dir, pappso::UiMonitorInterface &m_uiMonitor, const QuantificationMethodSp &quantification_method) |
void | quantifyMatchBetweenRun (const MsRunGroup *msrun_group_p, const std::vector< PeptideSp > &peptide_mbr_list, const QString &tmp_dir, pappso::UiMonitorInterface &m_uiMonitor, const QuantificationMethodSp &quantification_method) |
const MsRunSp & | getMsRunSp () const |
void | flushChromatogramTraces () |
void | clearMeasurements () |
clear all measurements MBR or not Clearing measurements also removes every chromatogram | |
std::shared_ptr< pappso::MsRunRetentionTime< QString > > & | buildMsRunRetentionTimeSpOnPeptideObservations (const AlignmentMethodSp &alignment_method) |
build a retention time vector with seamarks using MS2 best intensities | |
void | collectPeptidePeakRetentionTime (const pappso::MsRunRetentionTime< QString > *msrun_retention_time_reference_p) const |
collect peak retention times collect all quantified peptides retention times and convert it to the reference time to store it for each peptides | |
void | collectPeptideMs2RetentionTime (const pappso::MsRunRetentionTime< QString > *msrun_retention_time_reference_p) const |
collect ms2 retention times collect all MS2 events retention times and convert it to the reference time to store it for each peptides | |
const pappso::MsRunRetentionTime< QString > * | getMsRunRetentionTimeConstPtr () const |
pappso::MsRunRetentionTime< QString > * | getMsRunRetentionTimePtr () const |
const std::vector< PeptideMeasurementsSp > & | getPeptideMeasurementsList () const |
const std::vector< MbrPeptideMeasurementsSp > & | getMbrPeptideMeasurementsList () const |
Private Member Functions | |
std::vector< pappso::XicCoordSPtr > | buildXicCoordList (const MsRunGroup *msrun_group_p, const QuantificationMethodSp &quantification_method) |
void | detectQuantifyPeaks (pappso::UiMonitorInterface &m_uiMonitor, const QuantificationMethodSp &quantification_method) |
void | mbrDetectQuantifyPeaks (pappso::UiMonitorInterface &m_uiMonitor, const QuantificationMethodSp &quantification_method) |
void | addPeptideObservation2XicCoordList (const MsRunGroup *msrun_group_p, const QuantificationMethodSp &quantification_method, const PeptideObservationSp &peptide_events_sp, std::vector< pappso::XicCoordSPtr > &xic_coord_list) |
void | addMbrPeptideMeasurementsSp2XicCoordList (const MsRunGroup *msrun_group_p, const QuantificationMethodSp &quantification_method, const PeptideSp &peptide, std::vector< pappso::XicCoordSPtr > &xic_coord_list) |
Private Attributes | |
MsRunSp | msp_msRun |
std::map< Peptide *, PeptideObservationSp > | m_peptideObservationList |
std::vector< PeptideMeasurementsSp > | m_peptideMeasurementsList |
std::shared_ptr< pappso::MsRunRetentionTime< QString > > | msp_msRunRetentionTime = nullptr |
std::vector< MbrPeptideMeasurementsSp > | m_mbrPeptideMeasurementsList |
group together an msrun, available peptide observations, and peptide measurements
Definition at line 53 of file msrunpeptidelist.h.
pappso::masschroq::MsRunPeptideList::MsRunPeptideList | ( | MsRunSp | msrun | ) |
Default constructor
Definition at line 35 of file msrunpeptidelist.cpp.
References msp_msRun.
pappso::masschroq::MsRunPeptideList::MsRunPeptideList | ( | const MsRunPeptideList & | other | ) |
Copy constructor
other | TODO |
Definition at line 40 of file msrunpeptidelist.cpp.
References msp_msRun.
|
virtual |
|
private |
Definition at line 439 of file msrunpeptidelist.cpp.
References m_mbrPeptideMeasurementsList, msp_msRun, msp_msRunRetentionTime, pappso::masschroq::MbrPeptideMeasurements::prepareMeasurements(), and pappso::masschroq::PeptideMeasurementsBase::pushBackXicCoordList().
Referenced by quantifyMatchBetweenRun().
|
private |
Definition at line 175 of file msrunpeptidelist.cpp.
References m_peptideMeasurementsList, msp_msRun, pappso::masschroq::PeptideMeasurements::prepareMeasurements(), and pappso::masschroq::PeptideMeasurementsBase::pushBackXicCoordList().
Referenced by buildXicCoordList().
void pappso::masschroq::MsRunPeptideList::addPeptideScanNumberObservation | ( | PeptideSp | peptide_sp, |
PeptideLabel * | p_label, | ||
std::size_t | spectrum_index, | ||
std::uint8_t | charge ) |
Definition at line 72 of file msrunpeptidelist.cpp.
References pappso::masschroq::Peptide::addMsRunXicCoordCharge(), pappso::masschroq::Precursor::getIntensity(), pappso::masschroq::Precursor::getXicCoordSPtr(), m_peptideObservationList, and msp_msRun.
Referenced by pappso::masschroq::JsonInput::read_msrun_peptide_observations().
void pappso::masschroq::MsRunPeptideList::addPeptideSpectrumIndexObservation | ( | PeptideSp | peptide_sp, |
PeptideLabel * | p_label, | ||
std::size_t | spectrum_index, | ||
std::uint8_t | charge ) |
Definition at line 51 of file msrunpeptidelist.cpp.
References pappso::masschroq::Peptide::addMsRunXicCoordCharge(), pappso::masschroq::Precursor::getIntensity(), pappso::masschroq::Precursor::getXicCoordSPtr(), m_peptideObservationList, and msp_msRun.
Referenced by pappso::masschroq::JsonInput::read_msrun_peptide_observations().
std::shared_ptr< pappso::MsRunRetentionTime< QString > > & pappso::masschroq::MsRunPeptideList::buildMsRunRetentionTimeSpOnPeptideObservations | ( | const AlignmentMethodSp & | alignment_method | ) |
build a retention time vector with seamarks using MS2 best intensities
alignment_method | parameters to use for alignment |
Definition at line 244 of file msrunpeptidelist.cpp.
References pappso::masschroq::AlignmentMethod::getMs1SmoothingWindow(), pappso::masschroq::AlignmentMethod::getMs2SmoothingWindow(), pappso::masschroq::AlignmentMethod::getMs2TendencyWindow(), m_peptideObservationList, msp_msRun, and msp_msRunRetentionTime.
|
private |
Definition at line 155 of file msrunpeptidelist.cpp.
References addPeptideObservation2XicCoordList(), and m_peptideObservationList.
Referenced by quantify().
void pappso::masschroq::MsRunPeptideList::clearMeasurements | ( | ) |
clear all measurements MBR or not Clearing measurements also removes every chromatogram
Definition at line 514 of file msrunpeptidelist.cpp.
References m_mbrPeptideMeasurementsList, and m_peptideMeasurementsList.
void pappso::masschroq::MsRunPeptideList::collectPeptideMs2RetentionTime | ( | const pappso::MsRunRetentionTime< QString > * | msrun_retention_time_reference_p | ) | const |
collect ms2 retention times collect all MS2 events retention times and convert it to the reference time to store it for each peptides
Definition at line 321 of file msrunpeptidelist.cpp.
References pappso::masschroq::Peptide::addAlignedPeptideObservation(), m_peptideMeasurementsList, msp_msRun, msp_msRunRetentionTime, pappso::PappsoException::qwhat(), and pappso::masschroq::Peptide::setReferenceMsRunRetentionTimePtr().
void pappso::masschroq::MsRunPeptideList::collectPeptidePeakRetentionTime | ( | const pappso::MsRunRetentionTime< QString > * | msrun_retention_time_reference_p | ) | const |
collect peak retention times collect all quantified peptides retention times and convert it to the reference time to store it for each peptides
Definition at line 293 of file msrunpeptidelist.cpp.
References pappso::masschroq::Peptide::addAlignedPeakMeasurement(), m_peptideMeasurementsList, msp_msRun, msp_msRunRetentionTime, pappso::PappsoException::qwhat(), and pappso::masschroq::Peptide::setReferenceMsRunRetentionTimePtr().
|
private |
Definition at line 194 of file msrunpeptidelist.cpp.
References pappso::UiMonitorInterface::appendText(), and m_peptideMeasurementsList.
Referenced by quantify().
void pappso::masschroq::MsRunPeptideList::flushChromatogramTraces | ( | ) |
flush (remove) transient chromatogram traces after peak detection to save space in memory
Definition at line 229 of file msrunpeptidelist.cpp.
References m_mbrPeptideMeasurementsList, and m_peptideMeasurementsList.
const std::vector< pappso::masschroq::MbrPeptideMeasurementsSp > & pappso::masschroq::MsRunPeptideList::getMbrPeptideMeasurementsList | ( | ) | const |
Definition at line 508 of file msrunpeptidelist.cpp.
References m_mbrPeptideMeasurementsList.
Referenced by pappso::masschroq::CborOutputStream::writeQrDataBlock().
const pappso::MsRunRetentionTime< QString > * pappso::masschroq::MsRunPeptideList::getMsRunRetentionTimeConstPtr | ( | ) | const |
Definition at line 496 of file msrunpeptidelist.cpp.
References msp_msRunRetentionTime.
Referenced by pappso::masschroq::CborOutputStream::writeQrDataBlock().
pappso::MsRunRetentionTime< QString > * pappso::masschroq::MsRunPeptideList::getMsRunRetentionTimePtr | ( | ) | const |
Definition at line 491 of file msrunpeptidelist.cpp.
References msp_msRunRetentionTime.
const pappso::masschroq::MsRunSp & pappso::masschroq::MsRunPeptideList::getMsRunSp | ( | ) | const |
Definition at line 223 of file msrunpeptidelist.cpp.
References msp_msRun.
Referenced by pappso::masschroq::JsonInput::read_msrun_peptide_observations(), and pappso::masschroq::CborOutputStream::writeQrDataBlock().
const std::vector< pappso::masschroq::PeptideMeasurementsSp > & pappso::masschroq::MsRunPeptideList::getPeptideMeasurementsList | ( | ) | const |
Definition at line 502 of file msrunpeptidelist.cpp.
References m_peptideMeasurementsList.
Referenced by pappso::masschroq::CborOutputStream::writeQrDataBlock().
|
private |
Definition at line 459 of file msrunpeptidelist.cpp.
References pappso::UiMonitorInterface::appendText(), and m_mbrPeptideMeasurementsList.
Referenced by quantifyMatchBetweenRun().
void pappso::masschroq::MsRunPeptideList::quantify | ( | const MsRunGroup * | msrun_group_p, |
const QString & | tmp_dir, | ||
pappso::UiMonitorInterface & | m_uiMonitor, | ||
const QuantificationMethodSp & | quantification_method ) |
Definition at line 93 of file msrunpeptidelist.cpp.
References pappso::UiMonitorInterface::appendText(), pappso::MsRunXicExtractorFactory::buildMsRunXicExtractorSp(), buildXicCoordList(), detectQuantifyPeaks(), pappso::diskbuffer, pappso::MsRunXicExtractorFactory::getInstance(), pappso::masschroq::QuantificationMethod::getXicExtractionRtRange(), pappso::masschroq::QuantificationMethod::getXicExtractMethod(), pappso::masschroq::QuantificationMethod::getXicFilter(), m_peptideMeasurementsList, m_peptideObservationList, msp_msRun, pappso::MsRunXicExtractorFactory::setMsRunXicExtractorFactoryType(), and pappso::MsRunXicExtractorFactory::setTmpDir().
void pappso::masschroq::MsRunPeptideList::quantifyMatchBetweenRun | ( | const MsRunGroup * | msrun_group_p, |
const std::vector< PeptideSp > & | peptide_mbr_list, | ||
const QString & | tmp_dir, | ||
pappso::UiMonitorInterface & | m_uiMonitor, | ||
const QuantificationMethodSp & | quantification_method ) |
Definition at line 348 of file msrunpeptidelist.cpp.
References addMbrPeptideMeasurementsSp2XicCoordList(), pappso::UiMonitorInterface::appendText(), pappso::MsRunXicExtractorFactory::buildMsRunXicExtractorSp(), pappso::diskbuffer, pappso::MsRunXicExtractorFactory::getInstance(), pappso::masschroq::QuantificationMethod::getXicExtractionRtRange(), pappso::masschroq::QuantificationMethod::getXicExtractMethod(), pappso::masschroq::QuantificationMethod::getXicFilter(), m_mbrPeptideMeasurementsList, m_peptideMeasurementsList, mbrDetectQuantifyPeaks(), msp_msRun, pappso::PappsoException::qwhat(), pappso::MsRunXicExtractorFactory::setMsRunXicExtractorFactoryType(), and pappso::MsRunXicExtractorFactory::setTmpDir().
|
private |
Definition at line 169 of file msrunpeptidelist.h.
Referenced by addMbrPeptideMeasurementsSp2XicCoordList(), clearMeasurements(), flushChromatogramTraces(), getMbrPeptideMeasurementsList(), mbrDetectQuantifyPeaks(), and quantifyMatchBetweenRun().
|
private |
Definition at line 164 of file msrunpeptidelist.h.
Referenced by addPeptideObservation2XicCoordList(), clearMeasurements(), collectPeptideMs2RetentionTime(), collectPeptidePeakRetentionTime(), detectQuantifyPeaks(), flushChromatogramTraces(), getPeptideMeasurementsList(), quantify(), and quantifyMatchBetweenRun().
|
private |
Definition at line 162 of file msrunpeptidelist.h.
Referenced by addPeptideScanNumberObservation(), addPeptideSpectrumIndexObservation(), buildMsRunRetentionTimeSpOnPeptideObservations(), buildXicCoordList(), and quantify().
|
private |
Definition at line 160 of file msrunpeptidelist.h.
Referenced by MsRunPeptideList(), MsRunPeptideList(), addMbrPeptideMeasurementsSp2XicCoordList(), addPeptideObservation2XicCoordList(), addPeptideScanNumberObservation(), addPeptideSpectrumIndexObservation(), buildMsRunRetentionTimeSpOnPeptideObservations(), collectPeptideMs2RetentionTime(), collectPeptidePeakRetentionTime(), getMsRunSp(), quantify(), and quantifyMatchBetweenRun().
|
private |
Definition at line 166 of file msrunpeptidelist.h.
Referenced by addMbrPeptideMeasurementsSp2XicCoordList(), buildMsRunRetentionTimeSpOnPeptideObservations(), collectPeptideMs2RetentionTime(), collectPeptidePeakRetentionTime(), getMsRunRetentionTimeConstPtr(), and getMsRunRetentionTimePtr().