libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::MsRunRetentionTime< T > Class Template Reference

#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 FilterMorphoMediangetMs2MedianFilter () const
 
const FilterMorphoMeangetMs2MeanFilter () const
 
const FilterMorphoMeangetMs1MeanFilter () 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< PeptideMs2Pointm_allMs2Points
 
ComputeRetentionTimeReference m_retentionTimeReferenceMethod
 

Detailed Description

template<class T>
class pappso::MsRunRetentionTime< T >

Definition at line 42 of file msrunretentiontime.h.

Member Enumeration Documentation

◆ ComputeRetentionTimeReference

template<class T>
enum class pappso::MsRunRetentionTime::ComputeRetentionTimeReference
strongprivate
Enumerator
maximum_intensity 
weighted_intensity 
last 

Definition at line 52 of file msrunretentiontime.h.

53 {
54 maximum_intensity,
55 weighted_intensity,
56 last
57 };

Constructor & Destructor Documentation

◆ MsRunRetentionTime() [1/2]

template<class T>
MsRunRetentionTime::MsRunRetentionTime ( const std::vector< double > & msrun_retention_time_line)

◆ MsRunRetentionTime() [2/2]

◆ ~MsRunRetentionTime()

template<class T>
MsRunRetentionTime::~MsRunRetentionTime ( )

Definition at line 66 of file msrunretentiontime.cpp.

67{
68}

Member Function Documentation

◆ addPeptideAsSeamark()

template<class T>
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

Parameters
peptide_idunique identifier (whichever type) of a peptide
retentionTimeretention time of this peptide observation
precursorIntensityMS2 precursorIntensity of this peptide

Definition at line 153 of file msrunretentiontime.cpp.

156{
158 ms2point.entityHash = peptide_id;
159 ms2point.precursorIntensity = precursorIntensity;
160 ms2point.retentionTime = retentionTime;
161 m_allMs2Points.push_back(ms2point);
162}

References pappso::MsRunRetentionTime< T >::PeptideMs2Point::entityHash, m_allMs2Points, pappso::MsRunRetentionTime< T >::PeptideMs2Point::precursorIntensity, and pappso::MsRunRetentionTime< T >::PeptideMs2Point::retentionTime.

◆ align()

template<class T>
Trace MsRunRetentionTime::align ( const MsRunRetentionTime< T > & msrun_retention_time_reference)

align the current msrunretentiontime object using the given reference

Parameters
msrun_retention_time_referencethe reference
Returns
a trace containing aligned MS1 retention times

Definition at line 402 of file msrunretentiontime.cpp.

403{
407 {
409 }
410 else
411 {
413 }
414 qDebug();
415 if((m_ms1MeanFilter.getHalfWindowSize() * 2 + 1) >= m_ms1RetentionTimeVector.size())
416 {
417 throw ExceptionNotPossible(QObject::tr("ERROR : MS1 alignment not possible : "
418 "\ntoo few MS1 points (%1)")
420 }
421
422 qDebug() << m_seamarks[0].entityHash << " " << m_seamarks[0].retentionTime << " "
423 << other_seamarks[0].entityHash << other_seamarks[0].retentionTime << " ";
424 // both seamarks has to be ordered
427
428 // writeTrace("lib_ms2_delta_rt.ods", common_points);
429
430 qDebug() << common_points.front().x << " " << common_points.front().y;
432 // writeTrace("lib_ms2_delta_rt_median.ods", common_points);
434 // writeTrace("lib_ms2_delta_rt_mean.ods", common_points);
435 // convert common delta rt to real retention times (for convenience)
436 qDebug() << common_points.front().x << " " << common_points.front().y;
437
438
439 // add a first point to ensure coherence:
442 if(first_point.x < 0)
443 {
444 first_point.x = 0;
445 }
448
449 common_points.push_back(first_point);
450 // add a last point to ensure coherence:
455 common_points.push_back(last_point);
456 common_points.sortX();
457
458 // now, it is possible for each time range to give a new MS1 time using a
459 // linear regression on MS2 corrected times
461
462 qDebug() << common_points.front().x << " " << common_points.front().y;
463
465
467
468 // writeTrace("lib_ms1_map_rt.ods", ms1_aligned_points);
469 qDebug();
470 // smoothing on MS1 points
472
473 // writeTrace("lib_ms1_map_rt_mean.ods", ms1_aligned_points);
474 // final aligned retentionTime vector
475
477 {
478 data_point.y = (data_point.x - data_point.y);
479 }
480
481 qDebug();
482 // Here, the correction parameter is the slope of old rt points curve
483 // (divided by 4 to get a finer correction).
484 double correction_parameter =
486 (ms1_aligned_points.size());
487 // set_correction_parameter(correction_parameter / 4);
490
492
493 qDebug();
494 return ms1_aligned_points;
495}
void computeSeamarks()
convert PeptideMs2Point into Peptide seamarks this is required before computing alignment
void linearRegressionMs2toMs1(Trace &ms1_aligned_points, const Trace &common_points)
double getFrontRetentionTimeReference() const
void correctNewTimeValues(Trace &ms1_aligned_points, double correction_parameter)
const std::vector< MsRunRetentionTimeSeamarkPoint< T > > & getSeamarks() const
Trace getCommonDeltaRt(const std::vector< MsRunRetentionTimeSeamarkPoint< T > > &other_seamarks) const
const std::vector< MsRunRetentionTimeSeamarkPoint< T > > getSeamarksReferences() const

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().

◆ computeSeamarks()

template<class T>
void MsRunRetentionTime::computeSeamarks ( )

convert PeptideMs2Point into Peptide seamarks this is required before computing alignment

Definition at line 167 of file msrunretentiontime.cpp.

168{
169
170 qDebug();
171 if(m_allMs2Points.size() == 0)
172 {
173 // already computed
174 return;
175 }
176 m_seamarks.clear();
178 {
179
180
182 m_allMs2Points.end(),
183 [](const PeptideMs2Point &a, const PeptideMs2Point &b) {
184 if(a.entityHash == b.entityHash)
185 {
186 return (a.precursorIntensity > b.precursorIntensity);
187 }
188 return (a.entityHash < b.entityHash);
189 });
190
191 auto itend = std::unique(m_allMs2Points.begin(),
192 m_allMs2Points.end(),
193 [](const PeptideMs2Point &a, const PeptideMs2Point &b) {
194 return (a.entityHash == b.entityHash);
195 });
196
197 auto it = m_allMs2Points.begin();
198 while(it != itend)
199 {
200 m_seamarks.push_back({it->entityHash, it->retentionTime, it->precursorIntensity});
201 it++;
202 }
203 }
204 m_allMs2Points.clear();
205
206 std::sort(
207 m_seamarks.begin(),
208 m_seamarks.end(),
210 return (a.entityHash < b.entityHash);
211 });
212 qDebug();
213}

References pappso::a, pappso::b, m_allMs2Points, m_retentionTimeReferenceMethod, m_seamarks, and maximum_intensity.

Referenced by align().

◆ correctNewTimeValues()

template<class T>
void MsRunRetentionTime::correctNewTimeValues ( Trace & ms1_aligned_points,
double correction_parameter )
private

Definition at line 550 of file msrunretentiontime.cpp.

551{
552
554 auto new_it(ms1_aligned_points.begin());
555 auto new_nextit(ms1_aligned_points.begin());
556 new_nextit++;
557 for(; new_nextit != ms1_aligned_points.end(); ++new_nextit, ++new_it)
558 {
559 if(new_nextit->y < new_it->y)
560 {
563 }
564 }
565}

References m_valuesCorrected.

Referenced by align().

◆ getAlignedRetentionTimeVector()

template<class T>
const std::vector< double > & MsRunRetentionTime::getAlignedRetentionTimeVector ( ) const

get aligned retention time vector

Returns
vector of seconds (as double)

Definition at line 123 of file msrunretentiontime.cpp.

124{
126}

References m_alignedRetentionTimeVector.

Referenced by pappso::masschroq::CborOutputStream::writeMsRunRetentionTime().

◆ getBackRetentionTimeReference()

template<class T>
double MsRunRetentionTime::getBackRetentionTimeReference ( ) const
protected

Definition at line 276 of file msrunretentiontime.cpp.

277{
278 if(isAligned())
279 {
280 return m_alignedRetentionTimeVector.back();
281 }
282 return m_ms1RetentionTimeVector.back();
283}

References isAligned(), m_alignedRetentionTimeVector, and m_ms1RetentionTimeVector.

Referenced by align().

◆ getCommonDeltaRt() [1/2]

template<class T>
Trace MsRunRetentionTime::getCommonDeltaRt ( const std::vector< MsRunRetentionTimeSeamarkPoint< T > > & other_seamarks) const

Definition at line 143 of file msrunretentiontime.cpp.

Referenced by align(), and getCommonSeamarksDeltaRt().

◆ getCommonDeltaRt() [2/2]

template<class T>
void MsRunRetentionTime::getCommonDeltaRt ( Trace & delta_rt,
const std::vector< MsRunRetentionTimeSeamarkPoint< T > > & other_seamarks ) const
private

get a trace of common MS2 retention times (x values) by their deltart (y values)

Parameters
delta_rtthe trace result (common MS2 retention times vs counter part deltart)
other_seamarksseamarks of the counter part (reference)

Definition at line 217 of file msrunretentiontime.cpp.

219{
220
221 qDebug();
222 auto it = other_seamarks.begin();
223
225 {
226 while((it != other_seamarks.end()) && (it->entityHash < seamark.entityHash))
227 {
228 it++;
229 }
230 if(it == other_seamarks.end())
231 break;
232 if(it->entityHash == seamark.entityHash)
233 {
234 delta_rt.push_back(
235 DataPoint(seamark.retentionTime, seamark.retentionTime - it->retentionTime));
236 }
237 }
238
239 qDebug();
240 if((m_ms2MedianFilter.getHalfWindowSize() * 2 + 1) >= delta_rt.size())
241 {
242 throw ExceptionNotPossible(QObject::tr("ERROR : MS2 alignment not possible : "
243 "\ntoo few MS2 points (%1) in common")
244 .arg(delta_rt.size()));
245 }
246
247 qDebug();
248 if((m_ms2MeanFilter.getHalfWindowSize() * 2 + 1) >= delta_rt.size())
249 {
250 throw ExceptionNotPossible(QObject::tr("ERROR : MS2 alignment not possible : "
251 "\ntoo few MS2 points (%1) in common")
252 .arg(delta_rt.size()));
253 }
254 delta_rt.sortX();
255
256 // there can be multiple entities (peptides) at one retention time
257 // in this case, avoid retention time redundancy by applying unique on trace :
258 delta_rt.unique();
259
260 qDebug();
261}

References m_ms2MeanFilter, m_ms2MedianFilter, m_seamarks, pappso::Trace::sortX(), and pappso::Trace::unique().

◆ getCommonSeamarksDeltaRt()

template<class T>
Trace MsRunRetentionTime::getCommonSeamarksDeltaRt ( const MsRunRetentionTime< T > & msrun_retention_time_reference) const

get common seamarks between msrunretentiontime objects and their deltart

Parameters
msrun_retention_time_referencethe reference
Returns
a trace containing MS2 common points and their deltart

Definition at line 609 of file msrunretentiontime.cpp.

611{
612 // computeSeamarks();
615 {
617 }
618 else
619 {
621 }
622 qDebug();
623
624 qDebug() << m_seamarks[0].entityHash << " " << m_seamarks[0].retentionTime << " "
625 << other_seamarks[0].entityHash << other_seamarks[0].retentionTime << " ";
626 // both seamarks has to be ordered
629 return common_points;
630}

References MsRunRetentionTime(), getCommonDeltaRt(), getSeamarks(), getSeamarksReferences(), isAligned(), and m_seamarks.

◆ getFrontRetentionTimeReference()

template<class T>
double MsRunRetentionTime::getFrontRetentionTimeReference ( ) const
protected

Definition at line 266 of file msrunretentiontime.cpp.

267{
268 if(isAligned())
269 {
270 return m_alignedRetentionTimeVector.front();
271 }
272 return m_ms1RetentionTimeVector.front();
273}

References isAligned(), m_alignedRetentionTimeVector, and m_ms1RetentionTimeVector.

Referenced by align().

◆ getMs1MeanFilter()

template<typename T>
const pappso::FilterMorphoMean & pappso::MsRunRetentionTime< T >::getMs1MeanFilter ( ) const

Definition at line 101 of file msrunretentiontime.cpp.

102{
103 return m_ms1MeanFilter;
104}

◆ getMs1RetentionTimeVector()

template<class T>
const std::vector< double > & MsRunRetentionTime::getMs1RetentionTimeVector ( ) const

get orginal retention time vector (not aligned)

Returns
vector of seconds (as double)

Definition at line 136 of file msrunretentiontime.cpp.

137{
139}

References m_ms1RetentionTimeVector.

Referenced by pappso::masschroq::CborOutputStream::writeMsRunRetentionTime().

◆ getMs2MeanFilter()

template<typename T>
const pappso::FilterMorphoMean & pappso::MsRunRetentionTime< T >::getMs2MeanFilter ( ) const

Definition at line 86 of file msrunretentiontime.cpp.

87{
88 return m_ms2MeanFilter;
89}

References m_ms2MeanFilter.

Referenced by pappso::masschroq::CborOutputStream::writeMsRunRetentionTime().

◆ getMs2MedianFilter()

template<typename T>
const pappso::FilterMorphoMedian & pappso::MsRunRetentionTime< T >::getMs2MedianFilter ( ) const

◆ getNumberOfCorrectedValues()

template<class T>
std::size_t MsRunRetentionTime::getNumberOfCorrectedValues ( ) const

Definition at line 130 of file msrunretentiontime.cpp.

131{
132 return m_valuesCorrected;
133}

◆ getSeamarks()

template<class T>
const std::vector< MsRunRetentionTimeSeamarkPoint< T > > & MsRunRetentionTime::getSeamarks ( ) const

◆ getSeamarksReferences()

template<class T>
const std::vector< MsRunRetentionTimeSeamarkPoint< T > > MsRunRetentionTime::getSeamarksReferences ( ) const
protected

Definition at line 383 of file msrunretentiontime.cpp.

384{
386 for(auto &seamark : other_seamarks)
387 {
388 seamark.retentionTime = translateOriginal2AlignedRetentionTime(seamark.retentionTime);
389 }
390 return other_seamarks;
391}
double translateOriginal2AlignedRetentionTime(double original_retention_time) const

References m_seamarks, and translateOriginal2AlignedRetentionTime().

Referenced by align(), and getCommonSeamarksDeltaRt().

◆ isAligned()

◆ linearRegressionMs2toMs1()

template<class T>
void MsRunRetentionTime::linearRegressionMs2toMs1 ( Trace & ms1_aligned_points,
const Trace & common_points )
private

Definition at line 500 of file msrunretentiontime.cpp.

502{
503
504 // first slope :
507 if(itms2next == common_points.end())
508 {
509 // error
510 throw ExceptionNotPossible(QObject::tr("ERROR : MS1 alignment not possible : "
511 "\ntoo few common points (%1)")
512 .arg(common_points.size()));
513 }
514 qDebug() << "() itms2->x=" << itms2->x << " itms2->y=" << itms2->y;
515
517 {
520
521 while(ms1_point.x > itms2next->x)
522 {
523 itms2++;
524 itms2next++;
525 }
526
527 double ratio = (itms2next->x - itms2->x);
528 if(ratio != 0)
529 {
530 ratio = (ms1_point.x - itms2->x) / ratio;
531 }
532 else
533 {
534 // avoid division by zero
535 ratio = 1;
536 }
537 // qDebug() << __FILE__ << "@" << __LINE__ << __FUNCTION__ << "() " <<
538 // ratio;
539
540 ms1_point.y = itms2->y + ((itms2next->y - itms2->y) * ratio);
541
542 // qDebug() << __FILE__ << "@" << __LINE__ << __FUNCTION__ << "() "
543 // << ms1_point.y;
544 ms1_aligned_points.push_back(ms1_point);
545 }
546}

References m_ms1RetentionTimeVector, pappso::DataPoint::x, and pappso::DataPoint::y.

Referenced by align().

◆ setAlignedRetentionTimeVector()

template<class T>
void pappso::MsRunRetentionTime< T >::setAlignedRetentionTimeVector ( const std::vector< double > & aligned_times)

Definition at line 569 of file msrunretentiontime.cpp.

571{
572
573 if(aligned_times.size() == m_ms1RetentionTimeVector.size())
574 {
576 }
577 else
578 {
579 if(aligned_times.size() == m_ms1RetentionTimeVector.size() * 2)
580 {
582 for(std::size_t i = 0; i < m_ms1RetentionTimeVector.size(); i++)
583 {
585 {
587 QObject::tr("ERROR : aligned_times (size=%1) vector does not have "
588 "required size (size=%2)")
589 .arg(aligned_times.size())
590 .arg(m_ms1RetentionTimeVector.size()));
591 }
593 }
594 }
595 else
596 {
598 QObject::tr("ERROR : aligned_times (size=%1) vector does not have "
599 "required size (size=%2)")
600 .arg(aligned_times.size())
601 .arg(m_ms1RetentionTimeVector.size()));
602 }
603 }
604}

References m_alignedRetentionTimeVector, and m_ms1RetentionTimeVector.

◆ setMs1MeanFilter()

template<class T>
void MsRunRetentionTime::setMs1MeanFilter ( const FilterMorphoMean & ms1MeanFilter)

Definition at line 108 of file msrunretentiontime.cpp.

109{
111}

◆ setMs2MeanFilter()

template<class T>
void MsRunRetentionTime::setMs2MeanFilter ( const FilterMorphoMean & ms2MeanFilter)

Definition at line 94 of file msrunretentiontime.cpp.

References m_ms2MeanFilter.

◆ setMs2MedianFilter()

template<class T>
void MsRunRetentionTime::setMs2MedianFilter ( const FilterMorphoMedian & ms2MedianFilter)

Definition at line 79 of file msrunretentiontime.cpp.

References m_ms2MedianFilter.

◆ translateAligned2OriginalRetentionTime()

template<class T>
double MsRunRetentionTime::translateAligned2OriginalRetentionTime ( double aligned_retention_time) const

Definition at line 336 of file msrunretentiontime.cpp.

337{
338 if(m_alignedRetentionTimeVector.size() < 3)
339 {
340 throw ExceptionNotPossible(QObject::tr("ERROR : too few aligned points to compute aligned "
341 "retention time (%1)")
343 }
345 {
346 throw ExceptionNotPossible(QObject::tr("ERROR : m_alignedRetentionTimeVector.size() %1 != %2 "
347 "m_ms1RetentionTimeVector.size()")
349 .arg(m_ms1RetentionTimeVector.size()));
350 }
351 auto it_plus = std::find_if(
354 [aligned_retention_time](const double &rt_point) { return aligned_retention_time < rt_point; });
355 double rt1_a, rt2_a, rt1_b, rt2_b;
357 {
358 it_plus--;
359 }
361 {
362 it_plus++;
363 }
364 auto it_minus = it_plus - 1;
365
366 rt1_a = *it_minus;
367 rt2_a = *it_plus;
368
369 double ratio = (aligned_retention_time - rt1_a) / (rt2_a - rt1_a);
370
371 auto itref = m_ms1RetentionTimeVector.begin() +
373
374 rt1_b = *itref;
375 itref++;
376 rt2_b = *itref;
377
378 return (((rt2_b - rt1_b) * ratio) + rt1_b);
379}

References m_alignedRetentionTimeVector, and m_ms1RetentionTimeVector.

Referenced by pappso::masschroq::MbrPeptideMeasurements::prepareMeasurements().

◆ translateOriginal2AlignedRetentionTime()

template<class T>
double MsRunRetentionTime::translateOriginal2AlignedRetentionTime ( double original_retention_time) const

Definition at line 288 of file msrunretentiontime.cpp.

289{
290 if(m_alignedRetentionTimeVector.size() < 3)
291 {
292 throw ExceptionNotPossible(QObject::tr("ERROR : too few aligned points to compute aligned "
293 "retention time (%1)")
295 }
297 {
298 throw ExceptionNotPossible(QObject::tr("ERROR : m_alignedRetentionTimeVector.size() %1 != %2 "
299 "m_ms1RetentionTimeVector.size()")
301 .arg(m_ms1RetentionTimeVector.size()));
302 }
305 [original_retention_time](const double &rt_point) {
306 return original_retention_time < rt_point;
307 });
308 double rt1_a, rt2_a, rt1_b, rt2_b;
310 {
311 it_plus--;
312 }
313 if(it_plus == m_ms1RetentionTimeVector.begin())
314 {
315 it_plus++;
316 }
317 auto it_minus = it_plus - 1;
318
319 rt1_a = *it_minus;
320 rt2_a = *it_plus;
321
322 double ratio = (original_retention_time - rt1_a) / (rt2_a - rt1_a);
323
324 auto itref = m_alignedRetentionTimeVector.begin() +
326
327 rt1_b = *itref;
328 itref++;
329 rt2_b = *itref;
330
331 return (((rt2_b - rt1_b) * ratio) + rt1_b);
332}

References m_alignedRetentionTimeVector, and m_ms1RetentionTimeVector.

Referenced by pappso::masschroq::Peptide::addAlignedPeakMeasurement(), pappso::masschroq::Peptide::addAlignedPeptideObservation(), getSeamarksReferences(), and pappso::masschroq::CborOutputStream::writeTracePeak().

Member Data Documentation

◆ m_alignedRetentionTimeVector

◆ m_allMs2Points

template<class T>
std::vector<PeptideMs2Point> pappso::MsRunRetentionTime< T >::m_allMs2Points
private

Definition at line 156 of file msrunretentiontime.h.

Referenced by addPeptideAsSeamark(), and computeSeamarks().

◆ m_ms1MeanFilter

template<class T>
FilterMorphoMean pappso::MsRunRetentionTime< T >::m_ms1MeanFilter
private

Definition at line 149 of file msrunretentiontime.h.

Referenced by MsRunRetentionTime(), MsRunRetentionTime(), and align().

◆ m_ms1RetentionTimeVector

◆ m_ms2MeanFilter

template<class T>
FilterMorphoMean pappso::MsRunRetentionTime< T >::m_ms2MeanFilter
private

◆ m_ms2MedianFilter

template<class T>
FilterMorphoMedian pappso::MsRunRetentionTime< T >::m_ms2MedianFilter
private

◆ m_retentionTimeReferenceMethod

template<class T>
ComputeRetentionTimeReference pappso::MsRunRetentionTime< T >::m_retentionTimeReferenceMethod
private
Initial value:

Definition at line 158 of file msrunretentiontime.h.

Referenced by computeSeamarks().

◆ m_seamarks

◆ m_valuesCorrected

template<class T>
std::size_t pappso::MsRunRetentionTime< T >::m_valuesCorrected = 0
private

Definition at line 154 of file msrunretentiontime.h.

Referenced by MsRunRetentionTime(), and correctNewTimeValues().


The documentation for this class was generated from the following files: