| 
    libpappsomspp
    
   Library for mass spectrometry 
   | 
 
#include <msrunretentiontime.h>
Classes | |
| struct | PeptideMs2Point | 
Public Member Functions | |
| MsRunRetentionTime (const std::vector< double > &msrun_retention_time_line) | |
| MsRunRetentionTime (const MsRunRetentionTime< T > &other) | |
| ~MsRunRetentionTime () | |
| void | setMs2MedianFilter (const FilterMorphoMedian &ms2MedianFilter) | 
| void | setMs2MeanFilter (const FilterMorphoMean &ms2MeanFilter) | 
| void | setMs1MeanFilter (const FilterMorphoMean &ms1MeanFilter) | 
| const FilterMorphoMedian & | getMs2MedianFilter () const | 
| const FilterMorphoMean & | getMs2MeanFilter () const | 
| const FilterMorphoMean & | getMs1MeanFilter () const | 
| Trace | getCommonDeltaRt (const std::vector< MsRunRetentionTimeSeamarkPoint< T > > &other_seamarks) const | 
| void | addPeptideAsSeamark (const T &peptide_id, double retentionTime, double precursorIntensity) | 
| collects all peptide evidences of a given MSrun seamarks has to be converted to peptide retention time using computePeptideRetentionTimes   | |
| std::size_t | getNumberOfCorrectedValues () const | 
| Trace | align (const MsRunRetentionTime< T > &msrun_retention_time_reference) | 
| align the current msrunretentiontime object using the given reference   | |
| Trace | getCommonSeamarksDeltaRt (const MsRunRetentionTime< T > &msrun_retention_time_reference) const | 
| get common seamarks between msrunretentiontime objects and their deltart   | |
| const std::vector< MsRunRetentionTimeSeamarkPoint< T > > & | getSeamarks () const | 
| const std::vector< double > & | getAlignedRetentionTimeVector () const | 
| get aligned retention time vector   | |
| void | setAlignedRetentionTimeVector (const std::vector< double > &aligned_times) | 
| const std::vector< double > & | getMs1RetentionTimeVector () const | 
| get orginal retention time vector (not aligned)   | |
| bool | isAligned () const | 
| double | translateOriginal2AlignedRetentionTime (double original_retention_time) const | 
| double | translateAligned2OriginalRetentionTime (double aligned_retention_time) const | 
| void | computeSeamarks () | 
| convert PeptideMs2Point into Peptide seamarks this is required before computing alignment   | |
Protected Member Functions | |
| double | getFrontRetentionTimeReference () const | 
| double | getBackRetentionTimeReference () const | 
| const std::vector< MsRunRetentionTimeSeamarkPoint< T > > | getSeamarksReferences () const | 
Private Types | |
| enum class | ComputeRetentionTimeReference { maximum_intensity , weighted_intensity , last } | 
Private Member Functions | |
| void | getCommonDeltaRt (Trace &delta_rt, const std::vector< MsRunRetentionTimeSeamarkPoint< T > > &other_seamarks) const | 
| get a trace of common MS2 retention times (x values) by their deltart (y values)   | |
| void | correctNewTimeValues (Trace &ms1_aligned_points, double correction_parameter) | 
| void | linearRegressionMs2toMs1 (Trace &ms1_aligned_points, const Trace &common_points) | 
Private Attributes | |
| FilterMorphoMedian | m_ms2MedianFilter | 
| FilterMorphoMean | m_ms2MeanFilter | 
| FilterMorphoMean | m_ms1MeanFilter | 
| std::vector< double > | m_ms1RetentionTimeVector | 
| std::vector< double > | m_alignedRetentionTimeVector | 
| std::vector< MsRunRetentionTimeSeamarkPoint< T > > | m_seamarks | 
| std::size_t | m_valuesCorrected = 0 | 
| std::vector< PeptideMs2Point > | m_allMs2Points | 
| ComputeRetentionTimeReference | m_retentionTimeReferenceMethod | 
Definition at line 42 of file msrunretentiontime.h.
      
  | 
  strongprivate | 
| Enumerator | |
|---|---|
| maximum_intensity | |
| weighted_intensity | |
| last | |
Definition at line 52 of file msrunretentiontime.h.
| MsRunRetentionTime::MsRunRetentionTime | ( | const std::vector< double > & | msrun_retention_time_line | ) | 
Definition at line 37 of file msrunretentiontime.cpp.
References pappso::a, pappso::b, m_ms1MeanFilter, m_ms1RetentionTimeVector, m_ms2MeanFilter, and m_ms2MedianFilter.
Referenced by MsRunRetentionTime(), align(), and getCommonSeamarksDeltaRt().
| MsRunRetentionTime::MsRunRetentionTime | ( | const MsRunRetentionTime< T > & | other | ) | 
Definition at line 49 of file msrunretentiontime.cpp.
References MsRunRetentionTime(), m_alignedRetentionTimeVector, m_ms1MeanFilter, m_ms1RetentionTimeVector, m_ms2MeanFilter, m_ms2MedianFilter, m_seamarks, and m_valuesCorrected.
| MsRunRetentionTime::~MsRunRetentionTime | ( | ) | 
Definition at line 66 of file msrunretentiontime.cpp.
| void MsRunRetentionTime::addPeptideAsSeamark | ( | const T & | peptide_id, | 
| double | retentionTime, | ||
| double | precursorIntensity ) | 
collects all peptide evidences of a given MSrun seamarks has to be converted to peptide retention time using computePeptideRetentionTimes
| peptide_id | unique identifier (whichever type) of a peptide | 
| retentionTime | retention time of this peptide observation | 
| precursorIntensity | MS2 precursorIntensity of this peptide | 
Definition at line 153 of file msrunretentiontime.cpp.
References pappso::MsRunRetentionTime< T >::PeptideMs2Point::entityHash, m_allMs2Points, pappso::MsRunRetentionTime< T >::PeptideMs2Point::precursorIntensity, and pappso::MsRunRetentionTime< T >::PeptideMs2Point::retentionTime.
| Trace MsRunRetentionTime::align | ( | const MsRunRetentionTime< T > & | msrun_retention_time_reference | ) | 
align the current msrunretentiontime object using the given reference
| msrun_retention_time_reference | the reference | 
Definition at line 402 of file msrunretentiontime.cpp.
References MsRunRetentionTime(), computeSeamarks(), correctNewTimeValues(), getBackRetentionTimeReference(), getCommonDeltaRt(), getFrontRetentionTimeReference(), getSeamarks(), getSeamarksReferences(), isAligned(), linearRegressionMs2toMs1(), m_alignedRetentionTimeVector, m_ms1MeanFilter, m_ms1RetentionTimeVector, m_ms2MeanFilter, m_ms2MedianFilter, m_seamarks, pappso::Trace::sortX(), pappso::DataPoint::x, pappso::DataPoint::y, and pappso::Trace::yValues().
| void MsRunRetentionTime::computeSeamarks | ( | ) | 
convert PeptideMs2Point into Peptide seamarks this is required before computing alignment
Definition at line 167 of file msrunretentiontime.cpp.
References pappso::a, pappso::b, m_allMs2Points, m_retentionTimeReferenceMethod, m_seamarks, and maximum_intensity.
Referenced by align().
      
  | 
  private | 
Definition at line 550 of file msrunretentiontime.cpp.
References m_valuesCorrected.
Referenced by align().
| const std::vector< double > & MsRunRetentionTime::getAlignedRetentionTimeVector | ( | ) | const | 
get aligned retention time vector
Definition at line 123 of file msrunretentiontime.cpp.
References m_alignedRetentionTimeVector.
Referenced by pappso::masschroq::CborOutputStream::writeMsRunRetentionTime().
      
  | 
  protected | 
Definition at line 276 of file msrunretentiontime.cpp.
References isAligned(), m_alignedRetentionTimeVector, and m_ms1RetentionTimeVector.
Referenced by align().
| Trace MsRunRetentionTime::getCommonDeltaRt | ( | const std::vector< MsRunRetentionTimeSeamarkPoint< T > > & | other_seamarks | ) | const | 
Definition at line 143 of file msrunretentiontime.cpp.
Referenced by align(), and getCommonSeamarksDeltaRt().
      
  | 
  private | 
get a trace of common MS2 retention times (x values) by their deltart (y values)
| delta_rt | the trace result (common MS2 retention times vs counter part deltart) | 
| other_seamarks | seamarks of the counter part (reference) | 
Definition at line 217 of file msrunretentiontime.cpp.
References m_ms2MeanFilter, m_ms2MedianFilter, m_seamarks, pappso::Trace::sortX(), and pappso::Trace::unique().
| Trace MsRunRetentionTime::getCommonSeamarksDeltaRt | ( | const MsRunRetentionTime< T > & | msrun_retention_time_reference | ) | const | 
get common seamarks between msrunretentiontime objects and their deltart
| msrun_retention_time_reference | the reference | 
Definition at line 609 of file msrunretentiontime.cpp.
References MsRunRetentionTime(), getCommonDeltaRt(), getSeamarks(), getSeamarksReferences(), isAligned(), and m_seamarks.
      
  | 
  protected | 
Definition at line 266 of file msrunretentiontime.cpp.
References isAligned(), m_alignedRetentionTimeVector, and m_ms1RetentionTimeVector.
Referenced by align().
| const pappso::FilterMorphoMean & pappso::MsRunRetentionTime< T >::getMs1MeanFilter | ( | ) | const | 
Definition at line 101 of file msrunretentiontime.cpp.
| const std::vector< double > & MsRunRetentionTime::getMs1RetentionTimeVector | ( | ) | const | 
get orginal retention time vector (not aligned)
Definition at line 136 of file msrunretentiontime.cpp.
References m_ms1RetentionTimeVector.
Referenced by pappso::masschroq::CborOutputStream::writeMsRunRetentionTime().
| const pappso::FilterMorphoMean & pappso::MsRunRetentionTime< T >::getMs2MeanFilter | ( | ) | const | 
Definition at line 86 of file msrunretentiontime.cpp.
References m_ms2MeanFilter.
Referenced by pappso::masschroq::CborOutputStream::writeMsRunRetentionTime().
| const pappso::FilterMorphoMedian & pappso::MsRunRetentionTime< T >::getMs2MedianFilter | ( | ) | const | 
Definition at line 72 of file msrunretentiontime.cpp.
Referenced by pappso::masschroq::CborOutputStream::writeMsRunRetentionTime().
| std::size_t MsRunRetentionTime::getNumberOfCorrectedValues | ( | ) | const | 
Definition at line 130 of file msrunretentiontime.cpp.
| const std::vector< MsRunRetentionTimeSeamarkPoint< T > > & MsRunRetentionTime::getSeamarks | ( | ) | const | 
Definition at line 115 of file msrunretentiontime.cpp.
Referenced by align(), pappso::masschroq::MsRunGroup::alignRetentionTimeBetweenMsRuns(), and getCommonSeamarksDeltaRt().
      
  | 
  protected | 
Definition at line 383 of file msrunretentiontime.cpp.
References m_seamarks, and translateOriginal2AlignedRetentionTime().
Referenced by align(), and getCommonSeamarksDeltaRt().
| bool MsRunRetentionTime::isAligned | ( | ) | const | 
Definition at line 395 of file msrunretentiontime.cpp.
References m_alignedRetentionTimeVector.
Referenced by pappso::masschroq::Peptide::addAlignedPeakMeasurement(), pappso::masschroq::Peptide::addAlignedPeptideObservation(), align(), getBackRetentionTimeReference(), getCommonSeamarksDeltaRt(), getFrontRetentionTimeReference(), pappso::masschroq::MbrPeptideMeasurements::prepareMeasurements(), pappso::masschroq::MsRunGroup::quantify(), and pappso::masschroq::CborOutputStream::writeTracePeak().
      
  | 
  private | 
Definition at line 500 of file msrunretentiontime.cpp.
References m_ms1RetentionTimeVector, pappso::DataPoint::x, and pappso::DataPoint::y.
Referenced by align().
| void pappso::MsRunRetentionTime< T >::setAlignedRetentionTimeVector | ( | const std::vector< double > & | aligned_times | ) | 
Definition at line 569 of file msrunretentiontime.cpp.
References m_alignedRetentionTimeVector, and m_ms1RetentionTimeVector.
| void MsRunRetentionTime::setMs1MeanFilter | ( | const FilterMorphoMean & | ms1MeanFilter | ) | 
Definition at line 108 of file msrunretentiontime.cpp.
| void MsRunRetentionTime::setMs2MeanFilter | ( | const FilterMorphoMean & | ms2MeanFilter | ) | 
Definition at line 94 of file msrunretentiontime.cpp.
References m_ms2MeanFilter.
| void MsRunRetentionTime::setMs2MedianFilter | ( | const FilterMorphoMedian & | ms2MedianFilter | ) | 
Definition at line 79 of file msrunretentiontime.cpp.
References m_ms2MedianFilter.
| double MsRunRetentionTime::translateAligned2OriginalRetentionTime | ( | double | aligned_retention_time | ) | const | 
Definition at line 336 of file msrunretentiontime.cpp.
References m_alignedRetentionTimeVector, and m_ms1RetentionTimeVector.
Referenced by pappso::masschroq::MbrPeptideMeasurements::prepareMeasurements().
| double MsRunRetentionTime::translateOriginal2AlignedRetentionTime | ( | double | original_retention_time | ) | const | 
Definition at line 288 of file msrunretentiontime.cpp.
References m_alignedRetentionTimeVector, and m_ms1RetentionTimeVector.
Referenced by pappso::masschroq::Peptide::addAlignedPeakMeasurement(), pappso::masschroq::Peptide::addAlignedPeptideObservation(), getSeamarksReferences(), and pappso::masschroq::CborOutputStream::writeTracePeak().
      
  | 
  private | 
Definition at line 151 of file msrunretentiontime.h.
Referenced by MsRunRetentionTime(), align(), getAlignedRetentionTimeVector(), getBackRetentionTimeReference(), getFrontRetentionTimeReference(), isAligned(), setAlignedRetentionTimeVector(), translateAligned2OriginalRetentionTime(), and translateOriginal2AlignedRetentionTime().
      
  | 
  private | 
Definition at line 156 of file msrunretentiontime.h.
Referenced by addPeptideAsSeamark(), and computeSeamarks().
      
  | 
  private | 
Definition at line 149 of file msrunretentiontime.h.
Referenced by MsRunRetentionTime(), MsRunRetentionTime(), and align().
      
  | 
  private | 
Definition at line 150 of file msrunretentiontime.h.
Referenced by MsRunRetentionTime(), MsRunRetentionTime(), align(), getBackRetentionTimeReference(), getFrontRetentionTimeReference(), getMs1RetentionTimeVector(), linearRegressionMs2toMs1(), setAlignedRetentionTimeVector(), translateAligned2OriginalRetentionTime(), and translateOriginal2AlignedRetentionTime().
      
  | 
  private | 
Definition at line 148 of file msrunretentiontime.h.
Referenced by MsRunRetentionTime(), MsRunRetentionTime(), align(), getCommonDeltaRt(), getMs2MeanFilter(), and setMs2MeanFilter().
      
  | 
  private | 
Definition at line 147 of file msrunretentiontime.h.
Referenced by MsRunRetentionTime(), MsRunRetentionTime(), align(), getCommonDeltaRt(), and setMs2MedianFilter().
      
  | 
  private | 
Definition at line 158 of file msrunretentiontime.h.
Referenced by computeSeamarks().
      
  | 
  private | 
Definition at line 153 of file msrunretentiontime.h.
Referenced by MsRunRetentionTime(), align(), computeSeamarks(), getCommonDeltaRt(), getCommonSeamarksDeltaRt(), and getSeamarksReferences().
      
  | 
  private | 
Definition at line 154 of file msrunretentiontime.h.
Referenced by MsRunRetentionTime(), and correctNewTimeValues().