|
libpappsomspp
Library for mass spectrometry
|
#include <peptide.h>
Classes | |
| struct | AlignedPeakPositionElement |
| internal structure to compute consensus retention times More... | |
| struct | MsRunXicCoordCharge |
| internal structure to store msrun + charge + intensity + xic coordinate More... | |
Public Member Functions | |
| Peptide (const QString &id, const pappso::PeptideSp &peptide_sp, const std::vector< ProteinSp > &protein_list) | |
| constructor | |
| Peptide (const Peptide &other) | |
| virtual | ~Peptide () |
| virtual void | computeIsotopologues (double ni_min_abundance) override |
| compute possible isotopes for this molecule | |
| const QString & | getId () const |
| get peptide unique identifier | |
| void | setMods (const QString &mods) |
| set optional information as text to this peptide | |
| const QString & | getMods () const |
| get optional information as text | |
| void | addObservedChargeState (std::uint8_t charge) |
| void | addObservedInMsRunSp (const MsRunSp &msrun_sp) |
| const std::vector< std::uint8_t > & | getAllObservedChargeStateList () const |
| const std::vector< ProteinSp > & | getProteinSpList () const |
| void | addAlignedPeakMeasurement (const PeptideMeasurements::Measurement &one_xic_measure, const pappso::MsRunRetentionTime< QString > &msrun_retention_time) |
| accumulate retention time information for MS1 peak measurement | |
| void | addAlignedPeptideObservation (const PeptideObservation &peptide_observation, const pappso::MsRunRetentionTime< QString > &msrun_retention_time) |
| accumulate retention time information for MS2 observation convenient function used while collecting data from first pass quantification process | |
| void | computeConsensusRetentionTime () |
| compute consensus retention time (on MS2 observations and MS1 peak measurements) the computation is based on data collected during the first pass of quantification | |
| bool | isObservedInMsRunSp (const MsRun *msrun_p) |
| tell if this peptide is observed (MS2 fragmentation and identification) in this msrun | |
| pappso::XicCoordSPtr | getBestXicCoordSPtrForChargeInMsRunGroup (const MsRunGroup *msrun_group_p, std::uint8_t charge) const |
| get the XIC coordinates of the higher observed intensity for this peptide and charge in other MS run in the group | |
| pappso::XicCoordSPtr | getBestIonMobilityXicCoordToExtractOverallMsRunGroup (const MsRunGroup &msrun_group, const pappso::MsRunId &targeted_msrun, std::uint8_t charge) const |
| get ion mobility coordinates corrected against other MSruns in the group | |
| void | setReferenceMsRunRetentionTimePtr (const pappso::MsRunRetentionTime< QString > *msrun_retention_time_reference_p) |
| sets the current msrun retention time reference | |
| double | getConsensusPeakRetentionTime () const |
| get consensus retention time based on XIC peak measurements | |
| double | getConsensusMs2RetentionTime () const |
| get consensus retention time based on MS2 fragmenation and identification events | |
| void | addMsRunXicCoordCharge (const MsRunXicCoordCharge &msrun_xic_coord) |
| void | populateIonMobilityGrid (pappso::IonMobilityGrid *ion_mobility_grid_p) const |
| Populate ion mobility grid with observed XIC coordinates for this peptide on all MSruns The ion mobility grid only works with Tims TOF mobility index. | |
| void | setJsonLabelList (const QJsonObject &json_label_list) |
| build peptide label map from JSON label_list object | |
| PeptideLabel * | getPeptideLabelPtr (const QString &label) const |
| get a peptide label pointer with the corresponding label identifier | |
| const std::map< QString, PeptideLabelSp > & | getPeptideLabelMap () const |
| get the peptide label label_list | |
Public Member Functions inherited from pappso::masschroq::PeptideBase | |
| PeptideBase (const pappso::PeptideSp &peptide_sp) | |
| virtual | ~PeptideBase () |
| virtual const pappso::PeptideSp & | getPappsoPeptideSp () const |
| get the peptide sequence | |
| virtual const pappso::PeptideNaturalIsotopeList * | getPeptideNaturalIsotopeList () const |
| get list of isotopes for this peptide needs computeIsotopologues before | |
| virtual const std::vector< pappso::PeptideNaturalIsotopeAverageSp > & | getPeptideNaturalIsotopeAverageSpList (pappso::PrecisionPtr precision, std::uint8_t charge, double ni_min_abundance) |
| get possible and distinguishable masses of isotopes get list of distinguishable isotopes given the charge and mass precision | |
Private Attributes | |
| const QString | m_id |
| const std::vector< ProteinSp > | m_proteinSpList |
| QString | m_mods |
| std::vector< std::uint8_t > | m_allObservedChargeStateList |
| std::vector< MsRunSp > | m_observedInMsRunSpList |
| std::vector< AlignedPeakPositionElement > | m_alignedPeakPositionElementList |
| double | m_consensusAlignedPeakRetentionTime = 0 |
| double | m_consensusAlignedMs2RetentionTime = 0 |
| const pappso::MsRunRetentionTime< QString > * | mp_referenceMsRunRetentionTime = nullptr |
| std::vector< double > | m_referenceMs2ObservationList |
| std::vector< MsRunXicCoordCharge > | m_msRunXicCoordChargeList |
| std::map< QString, PeptideLabelSp > | m_peptideLabelMap |
Additional Inherited Members | |
Protected Attributes inherited from pappso::masschroq::PeptideBase | |
| const pappso::PeptideSp | msp_peptide |
| pappso::PeptideNaturalIsotopeList * | mpa_peptideNaturalIsotopeList = nullptr |
| std::map< std::uint8_t, std::vector< pappso::PeptideNaturalIsotopeAverageSp > > | m_peptideNaturalIsotopeAverageSpListByCharge |
| double | m_niMinAbundance = 0 |
| QMutex | m_mutex |
unique studied entity representing the molecule we want to measure
| pappso::masschroq::Peptide::Peptide | ( | const QString & | id, |
| const pappso::PeptideSp & | peptide_sp, | ||
| const std::vector< ProteinSp > & | protein_list | ||
| ) |
constructor
| id | unique identifier for this peptide |
| msp_peptide | peptide sequence |
| protein_list | vector of protein shared pointer linked to this peptide^ |
Definition at line 36 of file peptide.cpp.
| pappso::masschroq::Peptide::Peptide | ( | const Peptide & | other | ) |
Copy constructor
| other | TODO |
Definition at line 43 of file peptide.cpp.
References m_mods.
|
virtual |
Destructor
Definition at line 49 of file peptide.cpp.
| void pappso::masschroq::Peptide::addAlignedPeakMeasurement | ( | const PeptideMeasurements::Measurement & | one_xic_measure, |
| const pappso::MsRunRetentionTime< QString > & | msrun_retention_time | ||
| ) |
accumulate retention time information for MS1 peak measurement
convenient function used while collecting data from first pass quantification process
| one_xic_measure | a peak to process |
| msrun_retention_time | the msrun retention time converter for this msrun |
Definition at line 140 of file peptide.cpp.
References pappso::masschroq::Peptide::AlignedPeakPositionElement::alignedRetentionTime, pappso::masschroq::Peptide::AlignedPeakPositionElement::alignedRetentionTimeCenter, pappso::masschroq::Peptide::AlignedPeakPositionElement::intensity, pappso::MsRunRetentionTime< T >::isAligned(), pappso::masschroq::PeptideMeasurementsBase::Measurement::m_tracePeakSp, pappso::MsRunRetentionTime< T >::translateOriginal2AlignedRetentionTime(), and pappso::masschroq::Peptide::AlignedPeakPositionElement::wide.
Referenced by pappso::masschroq::MsRunPeptideList::collectPeptidePeakRetentionTime().
| void pappso::masschroq::Peptide::addAlignedPeptideObservation | ( | const PeptideObservation & | peptide_observation, |
| const pappso::MsRunRetentionTime< QString > & | msrun_retention_time | ||
| ) |
accumulate retention time information for MS2 observation convenient function used while collecting data from first pass quantification process
| peptide_observation | an MS2 observation |
| msrun_retention_time | the msrun retention time converter for this msrun |
Definition at line 180 of file peptide.cpp.
References pappso::masschroq::PeptideObservation::getBestXicCoord(), pappso::MsRunRetentionTime< T >::isAligned(), and pappso::MsRunRetentionTime< T >::translateOriginal2AlignedRetentionTime().
Referenced by pappso::masschroq::MsRunPeptideList::collectPeptideMs2RetentionTime().
| void pappso::masschroq::Peptide::addMsRunXicCoordCharge | ( | const MsRunXicCoordCharge & | msrun_xic_coord | ) |
Definition at line 271 of file peptide.cpp.
| void pappso::masschroq::Peptide::addObservedChargeState | ( | std::uint8_t | charge | ) |
Definition at line 106 of file peptide.cpp.
| void pappso::masschroq::Peptide::addObservedInMsRunSp | ( | const MsRunSp & | msrun_sp | ) |
Definition at line 123 of file peptide.cpp.
| void pappso::masschroq::Peptide::computeConsensusRetentionTime | ( | ) |
compute consensus retention time (on MS2 observations and MS1 peak measurements) the computation is based on data collected during the first pass of quantification
Definition at line 194 of file peptide.cpp.
References pappso::masschroq::a, and pappso::masschroq::b.
|
overridevirtual |
compute possible isotopes for this molecule
| ni_min_abundance | the minimal isotop abundance proportion to cover (0.9 will compute isotopes to reach at least 90% of its theoretical abundance |
Reimplemented from pappso::masschroq::PeptideBase.
Definition at line 56 of file peptide.cpp.
References pappso::masschroq::PeptideBase::computeIsotopologues().
| const std::vector< std::uint8_t > & pappso::masschroq::Peptide::getAllObservedChargeStateList | ( | ) | const |
Definition at line 116 of file peptide.cpp.
Referenced by pappso::masschroq::MbrPeptideMeasurements::prepareMeasurements(), and pappso::masschroq::PeptideMeasurements::prepareMeasurements().
| pappso::XicCoordSPtr pappso::masschroq::Peptide::getBestIonMobilityXicCoordToExtractOverallMsRunGroup | ( | const MsRunGroup & | msrun_group, |
| const pappso::MsRunId & | targeted_msrun, | ||
| std::uint8_t | charge | ||
| ) | const |
get ion mobility coordinates corrected against other MSruns in the group
| msrun_group_p | pointer on the msrun group |
| targeted_msrun | the xic coordinate target (required to adjust ion mobility to this msrun) |
| charge | the targeted charge |
Definition at line 348 of file peptide.cpp.
References pappso::masschroq::MsRunGroup::contains(), pappso::masschroq::MsRunGroup::getIonMobilityGridSp(), and pappso::IonMobilityGrid::translateXicCoordFromTo().
Referenced by pappso::masschroq::MbrPeptideMeasurements::prepareMeasurements(), and pappso::masschroq::PeptideMeasurements::prepareMeasurements().
| pappso::XicCoordSPtr pappso::masschroq::Peptide::getBestXicCoordSPtrForChargeInMsRunGroup | ( | const MsRunGroup * | msrun_group_p, |
| std::uint8_t | charge | ||
| ) | const |
get the XIC coordinates of the higher observed intensity for this peptide and charge in other MS run in the group
| msrun_group_p | pointer on the msrun group |
| charge | the targeted charge |
Definition at line 278 of file peptide.cpp.
References pappso::masschroq::MsRunGroup::contains().
Referenced by pappso::masschroq::MbrPeptideMeasurements::prepareMeasurements().
| double pappso::masschroq::Peptide::getConsensusMs2RetentionTime | ( | ) | const |
get consensus retention time based on MS2 fragmenation and identification events
Definition at line 264 of file peptide.cpp.
Referenced by pappso::masschroq::MbrPeptideMeasurements::prepareMeasurements().
| double pappso::masschroq::Peptide::getConsensusPeakRetentionTime | ( | ) | const |
get consensus retention time based on XIC peak measurements
Definition at line 258 of file peptide.cpp.
Referenced by pappso::masschroq::MbrPeptideMeasurements::prepareMeasurements().
| const QString & pappso::masschroq::Peptide::getId | ( | ) | const |
| const QString & pappso::masschroq::Peptide::getMods | ( | ) | const |
get optional information as text
Definition at line 94 of file peptide.cpp.
| const std::map< QString, pappso::masschroq::PeptideLabelSp > & pappso::masschroq::Peptide::getPeptideLabelMap | ( | ) | const |
get the peptide label label_list
Definition at line 100 of file peptide.cpp.
Referenced by pappso::masschroq::PeptideMeasurementsBase::prepareMeasurementsForPeptide().
| pappso::masschroq::PeptideLabel * pappso::masschroq::Peptide::getPeptideLabelPtr | ( | const QString & | label | ) | const |
get a peptide label pointer with the corresponding label identifier
Definition at line 430 of file peptide.cpp.
| const std::vector< pappso::masschroq::ProteinSp > & pappso::masschroq::Peptide::getProteinSpList | ( | ) | const |
Definition at line 134 of file peptide.cpp.
| bool pappso::masschroq::Peptide::isObservedInMsRunSp | ( | const MsRun * | msrun_p | ) |
tell if this peptide is observed (MS2 fragmentation and identification) in this msrun
| msrun_p | msrun pointer |
Definition at line 240 of file peptide.cpp.
References pappso::masschroq::a.
| void pappso::masschroq::Peptide::populateIonMobilityGrid | ( | pappso::IonMobilityGrid * | ion_mobility_grid_p | ) | const |
Populate ion mobility grid with observed XIC coordinates for this peptide on all MSruns The ion mobility grid only works with Tims TOF mobility index.
Definition at line 306 of file peptide.cpp.
References pappso::IonMobilityGrid::storeObservedIdentityBetween().
| void pappso::masschroq::Peptide::setJsonLabelList | ( | const QJsonObject & | json_label_list | ) |
build peptide label map from JSON label_list object
Definition at line 402 of file peptide.cpp.
References pappso::PeptideProFormaParser::parseString().
| void pappso::masschroq::Peptide::setMods | ( | const QString & | mods | ) |
set optional information as text to this peptide
Definition at line 88 of file peptide.cpp.
| void pappso::masschroq::Peptide::setReferenceMsRunRetentionTimePtr | ( | const pappso::MsRunRetentionTime< QString > * | msrun_retention_time_reference_p | ) |
sets the current msrun retention time reference
| pappso::MsRunRetentionTime<QString> | msrun run retention time reference |
Definition at line 251 of file peptide.cpp.
Referenced by pappso::masschroq::MsRunPeptideList::collectPeptideMs2RetentionTime(), and pappso::masschroq::MsRunPeptideList::collectPeptidePeakRetentionTime().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |