libpappsomspp
Library for mass spectrometry
pappso::TimsFrameBase Class Reference

#include <timsframebase.h>

Inheritance diagram for pappso::TimsFrameBase:
pappso::TimsFrame

Public Member Functions

 TimsFrameBase (std::size_t timsId, quint32 scanNum)
 constructor for binary independant tims frame More...
 
 TimsFrameBase (const TimsFrameBase &other)
 
 ~TimsFrameBase ()
 
virtual bool hasSameCalibrationData (const TimsFrameBase &other) const
 tells if 2 tims frame has the same calibration data Usefull to know if raw data can be handled between frames More...
 
virtual std::size_t getNbrPeaks (std::size_t scanNum) const
 
virtual MassSpectrumSPtr getMassSpectrumSPtr (std::size_t scanNum) const
 
virtual Trace cumulateScanToTrace (std::size_t scanNumBegin, std::size_t scanNumEnd) const
 
virtual void cumulateScansInRawMap (std::map< quint32, quint32 > &rawSpectrum, std::size_t scanNumBegin, std::size_t scanNumEnd) const
 cumulate scan list into a trace into a raw spectrum map More...
 
bool checkScanNum (std::size_t scanNum) const
 
void setAccumulationTime (double accumulation_time_ms)
 
void setMzCalibration (double temperature_correction, double digitizerTimebase, double digitizerDelay, double C0, double C1, double C2, double C3)
 
void setTimsCalibration (int tims_model_type, double C0, double C1, double C2, double C3, double C4, double C5, double C6, double C7, double C8, double C9)
 
void setTime (double time)
 
void setMsMsType (quint8 type)
 
unsigned int getMsLevel () const
 
double getTime () const
 
std::size_t getId () const
 
double getDriftTime (std::size_t scanNum) const
 get drift time of a scan number in milliseconds More...
 
double getOneOverK0Transformation (std::size_t scanNum) const
 get 1/K0 value of a given scan (mobility value) More...
 
double getMzFromTof (double tof) const
 get m/z from time of flight More...
 
quint32 getRawIndexFromMz (double mz) const
 get raw index of a given m/z More...
 
std::size_t getScanNumFromOneOverK0 (double one_over_k0) const
 get the scan number from a given 1/Ko mobility value More...
 
double getVoltageTransformation (std::size_t scanNum) const
 
double getTofFromIndex (quint32 index) const
 get time of flight from raw index More...
 
double getTofFromIndex (double index) const
 get time of flight from double index More...
 
pappso::Trace getTraceFromCumulatedScans (std::map< quint32, quint32 > &accumulated_scans) const
 transform accumulation of raw scans into a real mass spectrum More...
 
pappso::Trace getTraceFromCumulatedScansBuiltinCentroid (std::map< quint32, quint32 > &accumulated_scans) const
 transform accumulation of raw scans into a real mass spectrum with a simple centroid on raw integers More...
 

Protected Attributes

quint32 m_scanNumber
 total number of scans contained in this frame More...
 
std::size_t m_timsId
 Tims frame database id (the SQL identifier of this frame) More...
 
double m_accumulationTime = 0
 accumulation time in milliseconds More...
 
double m_digitizerTimebase = 0
 
double m_digitizerDelay = 0
 
std::vector< double > m_mzCalibrationArr
 MZ calibration parameters. More...
 
quint8 m_msMsType = 0
 
double m_time = 0
 retention time More...
 
double m_timsDvStart = 0
 
double m_timsSlope
 
double m_timsTtrans = 0
 
double m_timsNdelay = 0
 
double m_timsVmin = 0
 
double m_timsVmax = 0
 
double m_timsC6 = 0
 
double m_timsC7 = 0
 

Detailed Description

Todo:
write docs

Definition at line 64 of file timsframebase.h.

Constructor & Destructor Documentation

◆ TimsFrameBase() [1/2]

pappso::TimsFrameBase::TimsFrameBase ( std::size_t  timsId,
quint32  scanNum 
)

constructor for binary independant tims frame

Parameters
timsIdtims frame identifier in the database
scanNumthe total number of scans contained in this frame

Definition at line 55 of file timsframebase.cpp.

55 {
56  m_accumulationTime = accumulation_time_ms;
57 }
58 
59 
60 void
61 TimsFrameBase::setMzCalibration(double temperature_correction,

References m_accumulationTime.

◆ TimsFrameBase() [2/2]

pappso::TimsFrameBase::TimsFrameBase ( const TimsFrameBase other)

Copy constructor

Parameters
otherTODO

◆ ~TimsFrameBase()

pappso::TimsFrameBase::~TimsFrameBase ( )

Destructor

Definition at line 67 of file timsframebase.cpp.

68 {
69 

Member Function Documentation

◆ checkScanNum()

bool pappso::TimsFrameBase::checkScanNum ( std::size_t  scanNum) const

Definition at line 102 of file timsframebase.cpp.

107 {
108  throw PappsoException(
109  QObject::tr(
110  "ERROR unable to getMassSpectrumSPtr in TimsFrameBase for scan number %1")
111  .arg(scanNum));
112 }

◆ cumulateScansInRawMap()

void pappso::TimsFrameBase::cumulateScansInRawMap ( std::map< quint32, quint32 > &  rawSpectrum,
std::size_t  scanNumBegin,
std::size_t  scanNumEnd 
) const
virtual

cumulate scan list into a trace into a raw spectrum map

Parameters
rawSpectrumsimple map of integers to cumulate raw counts
scanNumBeginfirst scan to cumulate
scanNumEndlast scan to cumulate

Reimplemented in pappso::TimsFrame.

Definition at line 142 of file timsframebase.cpp.

144 {
145  // mz calibration
146  return ((double)index * m_digitizerTimebase) + m_digitizerDelay;
147 }
148 double
149 TimsFrameBase::getMzFromTof(double tof) const
150 {
151  // http://www.alglib.net/equations/polynomial.php
152  // http://www.alglib.net/translator/man/manual.cpp.html#sub_polynomialsolve
153  // https://math.stackexchange.com/questions/1291208/number-of-roots-of-a-polynomial-of-non-integer-degree

References m_digitizerDelay, and m_digitizerTimebase.

◆ cumulateScanToTrace()

Trace pappso::TimsFrameBase::cumulateScanToTrace ( std::size_t  scanNumBegin,
std::size_t  scanNumEnd 
) const
virtual

Reimplemented in pappso::TimsFrame.

Definition at line 132 of file timsframebase.cpp.

138 {
139  // mz calibration
140  return (index * m_digitizerTimebase) + m_digitizerDelay;

◆ getDriftTime()

double pappso::TimsFrameBase::getDriftTime ( std::size_t  scanNum) const

get drift time of a scan number in milliseconds

Parameters
scanNumthe scan number
Returns
time in milliseconds of mobility delay (drift time)

Definition at line 387 of file timsframebase.cpp.

◆ getId()

std::size_t pappso::TimsFrameBase::getId ( ) const

Definition at line 329 of file timsframebase.cpp.

329  {
330  throw pappso::PappsoException(QObject::tr(
331  "ERROR in TimsFrame::setTimsCalibration tims_model_type != 2"));
332  }

◆ getMassSpectrumSPtr()

MassSpectrumSPtr pappso::TimsFrameBase::getMassSpectrumSPtr ( std::size_t  scanNum) const
virtual

Reimplemented in pappso::TimsFrame.

Definition at line 124 of file timsframebase.cpp.

128 {
129  throw PappsoException(
130  QObject::tr(

◆ getMsLevel()

unsigned int pappso::TimsFrameBase::getMsLevel ( ) const

Definition at line 315 of file timsframebase.cpp.

327 {

◆ getMzFromTof()

double pappso::TimsFrameBase::getMzFromTof ( double  tof) const

get m/z from time of flight

Parameters
toftime of flight
Returns
m/z value

Definition at line 167 of file timsframebase.cpp.

167  { 1 + sqrt((10^12)/670) * m2 + 207.775676931964 * (m2^2)
168 + 59.2526676368822 * (m2^3) }
169 > plot(eq2(1:sqrt(1000)), type='l')
170 */
171  // How to Factor a Trinomial with Fractions as Coefficients
172 
173  // formula
174  // a = c0 = 1
175  // b = sqrt((10^12)/c1), c1 = 670 * m^0.5 (1/2)
176  // c = c2, c2 = 207.775676931964 * m
177  // d = c3, c3 = 59.2526676368822 * m^1.5 (3/2)
178  // double mz = 0;
179  std::vector<double> X;
180  X.push_back((m_mzCalibrationArr[0] - (double)tof));
181  X.push_back(m_mzCalibrationArr[1]);
182  if(m_mzCalibrationArr[2] != 0)
183  {
184  X.push_back(m_mzCalibrationArr[2]);
185  }
186  if(m_mzCalibrationArr[3] != 0)
187  {
188  X.push_back(m_mzCalibrationArr[3]);
189  }
190  else
191  {
192  qDebug() << m_mzCalibrationArr[3];
193  }
194 
195  alglib::real_1d_array polynom_array;
196  try
197  {
198  polynom_array.setcontent(X.size(), &(X[0]));
199  }
200  catch(alglib::ap_error &error)
201  {
202  // PolynomialSolve: A[N]=0
204  QObject::tr("ERROR in alglib::polynom_array.setcontent :\n%1")
205  .arg(error.msg.c_str()));
206  }
207 
208 
209  /*
210  alglib::polynomialsolve(
211 real_1d_array a,
212 ae_int_t n,
213 complex_1d_array& x,
214 polynomialsolverreport& rep,
215 const xparams _params = alglib::xdefault);
216 */
217  alglib::complex_1d_array m;
218  alglib::polynomialsolverreport rep;
219  // qDebug();
220  try
221  {
222  alglib::polynomialsolve(polynom_array, X.size() - 1, m, rep);
223  }
224  catch(alglib::ap_error &error)
225  {
226  qDebug() << " X.size() - 1 = " << X.size() - 1;
227  qDebug() << m_mzCalibrationArr[0];
228  qDebug() << m_mzCalibrationArr[1];
229  qDebug() << m_mzCalibrationArr[2];
230  qDebug() << m_mzCalibrationArr[3];
231 
232  // PolynomialSolve: A[N]=0
234  QObject::tr("ERROR in alglib::polynomialsolve :\n%1")
235  .arg(error.msg.c_str()));
236  }
237 
238 
239  // qDebug();
240 
241  if(m.length() == 0)
242  {
244  QObject::tr("ERROR in TimsFrame::getMzFromTof m.size() == 0"));
245  }
246  // qDebug();
247  if(m[0].y != 0)
248  {
250  QObject::tr("ERROR in TimsFrame::getMzFromTof m[0].y!= 0"));
251  }
252 
253  return pow(m[0].x, 2);
254 }
255 
256 quint32
257 TimsFrameBase::getRawIndexFromMz(double mz) const
258 {
259  // formula
260  // a = c0 = 1
261  // b = sqrt((10^12)/c1), c1 = 670 * m^0.5 (1/2)
262  // c = c2, c2 = 207.775676931964 * m
263  // d = c3, c3 = 59.2526676368822 * m^1.5 (3/2)
264  qDebug() << "mz=" << mz;
265 
266  double tof = m_mzCalibrationArr[0];
267  qDebug() << "tof ( m_mzCalibrationArr[0])=" << tof;
268  // TODO cache value of std::sqrt((std::pow(10, 12) / m_mzCalibrationArr[1]))
269  tof += m_mzCalibrationArr[1] * std::sqrt(mz);
270  qDebug() << "tof=" << tof;
271  tof += m_mzCalibrationArr[2] * mz;
272  qDebug() << "tof=" << tof;

References m_mzCalibrationArr.

Referenced by getTraceFromCumulatedScansBuiltinCentroid().

◆ getNbrPeaks()

std::size_t pappso::TimsFrameBase::getNbrPeaks ( std::size_t  scanNum) const
virtual

Reimplemented in pappso::TimsFrame.

Definition at line 115 of file timsframebase.cpp.

116 {
117  throw PappsoException(
118  QObject::tr("ERROR unable to cumulateScanToTrace in TimsFrameBase for scan "
119  "number begin %1 end %2")
120  .arg(scanNumBegin)
121  .arg(scanNumEnd));

◆ getOneOverK0Transformation()

double pappso::TimsFrameBase::getOneOverK0Transformation ( std::size_t  scanNum) const

get 1/K0 value of a given scan (mobility value)

Parameters
scanNumthe scan number

Definition at line 393 of file timsframebase.cpp.

395 {
396  if((m_timsDvStart == other.m_timsDvStart) &&

References m_timsC6, m_timsDvStart, m_timsNdelay, m_timsTtrans, m_timsVmax, and m_timsVmin.

◆ getRawIndexFromMz()

quint32 pappso::TimsFrameBase::getRawIndexFromMz ( double  mz) const

get raw index of a given m/z

Parameters
mzthe mass to transform
Returns
integer x raw value

Definition at line 275 of file timsframebase.cpp.

284 {
285  m_time = time;
286 }
287 
288 void
289 TimsFrameBase::setMsMsType(quint8 type)
290 {
291 
292  qDebug() << " m_msMsType=" << type;
293  m_msMsType = type;
294 }
295 
296 unsigned int
298 {

◆ getScanNumFromOneOverK0()

std::size_t pappso::TimsFrameBase::getScanNumFromOneOverK0 ( double  one_over_k0) const

get the scan number from a given 1/Ko mobility value

Parameters
one_over_k0the mobility value to tranform
Returns
integer the scan number

Definition at line 400 of file timsframebase.cpp.

401  {
402  return true;
403  }
404  return false;
405 }
406 
407 

◆ getTime()

double pappso::TimsFrameBase::getTime ( ) const

Definition at line 323 of file timsframebase.cpp.

327 {

◆ getTofFromIndex() [1/2]

double pappso::TimsFrameBase::getTofFromIndex ( double  index) const

get time of flight from double index

Definition at line 155 of file timsframebase.cpp.

◆ getTofFromIndex() [2/2]

double pappso::TimsFrameBase::getTofFromIndex ( quint32  index) const

get time of flight from raw index

Parameters
indexdigitizer x raw value
Returns
tof time of flight

Definition at line 161 of file timsframebase.cpp.

163  :1000), type='l')
164 
165 

◆ getTraceFromCumulatedScans()

pappso::Trace pappso::TimsFrameBase::getTraceFromCumulatedScans ( std::map< quint32, quint32 > &  accumulated_scans) const

transform accumulation of raw scans into a real mass spectrum

Definition at line 427 of file timsframebase.cpp.

443 {
444  qDebug();
445  // qDebug();
446  // add flanking peaks
447  std::vector<quint32> keys;
448  transform(begin(accumulated_scans),
449  end(accumulated_scans),
450  back_inserter(keys),
451  [](std::map<quint32, quint32>::value_type const &pair) {
452  return pair.first;
453  });
454  std::sort(keys.begin(), keys.end());
455  pappso::DataPoint data_point_cumul;
456  data_point_cumul.x = 0;

◆ getTraceFromCumulatedScansBuiltinCentroid()

pappso::Trace pappso::TimsFrameBase::getTraceFromCumulatedScansBuiltinCentroid ( std::map< quint32, quint32 > &  accumulated_scans) const

transform accumulation of raw scans into a real mass spectrum with a simple centroid on raw integers

Definition at line 459 of file timsframebase.cpp.

463  : keys)
464  {
465  if(key == last_key + 1)
466  {
467  // cumulate
468  if(accumulated_scans[key] > accumulated_scans[last_key])
469  {
470  if(data_point_cumul.x == last_key)
471  {
472  // growing peak
473  data_point_cumul.x = key;
474  data_point_cumul.y += accumulated_scans[key];
475  }
476  else
477  {
478  // new peak
479  // flush
480  if(data_point_cumul.y > 0)
481  {
482  // intensity normalization
483  data_point_cumul.y *= 100.0 / m_accumulationTime;
484 
485 
486  // mz calibration
487  double tof = (data_point_cumul.x * m_digitizerTimebase) +
489  data_point_cumul.x = getMzFromTof(tof);
490  local_trace.push_back(data_point_cumul);
491  }
492 
493  // new point
494  data_point_cumul.x = key;
495  data_point_cumul.y = accumulated_scans[key];
496  }
497  }
498  else
499  {
500  data_point_cumul.y += accumulated_scans[key];
501  }
502  }
503  else
504  {
505  // flush
506  if(data_point_cumul.y > 0)
507  {
508  // intensity normalization
509  data_point_cumul.y *= 100.0 / m_accumulationTime;
510 
511 
512  // mz calibration
513  double tof =
514  (data_point_cumul.x * m_digitizerTimebase) + m_digitizerDelay;
515  data_point_cumul.x = getMzFromTof(tof);
516  local_trace.push_back(data_point_cumul);
517  }
518 
519  // new point
520  data_point_cumul.x = key;
521  data_point_cumul.y = accumulated_scans[key];
522  }
523 
524  last_key = key;
525  }
526  // flush
527  if(data_point_cumul.y > 0)
528  {
529  // intensity normalization
530  data_point_cumul.y *= 100.0 / m_accumulationTime;
531 
532 
533  // mz calibration
534  double tof =
535  (data_point_cumul.x * m_digitizerTimebase) + m_digitizerDelay;
536  data_point_cumul.x = getMzFromTof(tof);
537  local_trace.push_back(data_point_cumul);
538  }
539 
540  local_trace.sortX();
541  qDebug();
542  // qDebug();
543  return local_trace;
544 }
545 
546 } // namespace pappso

References getMzFromTof(), m_accumulationTime, m_digitizerDelay, m_digitizerTimebase, pappso::DataPoint::x, and pappso::DataPoint::y.

◆ getVoltageTransformation()

double pappso::TimsFrameBase::getVoltageTransformation ( std::size_t  scanNum) const

Definition at line 365 of file timsframebase.cpp.

370 {
371  return (m_accumulationTime / (double)m_scanNumber) * ((double)scanNum);
372 }
373 
374 double
375 TimsFrameBase::getOneOverK0Transformation(std::size_t scanNum) const
376 {
377  return 1 / (m_timsC6 + (m_timsC7 / getVoltageTransformation(scanNum)));
378 }
379 
380 
381 std::size_t
382 TimsFrameBase::getScanNumFromOneOverK0(double one_over_k0) const
383 {
384  double temp = 1 / one_over_k0;
385  temp = temp - m_timsC6;

◆ hasSameCalibrationData()

bool pappso::TimsFrameBase::hasSameCalibrationData ( const TimsFrameBase other) const
virtual

tells if 2 tims frame has the same calibration data Usefull to know if raw data can be handled between frames

Definition at line 412 of file timsframebase.cpp.

419  {
420  return pappso::DataPoint(pair.first, pair.second);
421  });
422 
423 

◆ setAccumulationTime()

void pappso::TimsFrameBase::setAccumulationTime ( double  accumulation_time_ms)

Definition at line 72 of file timsframebase.cpp.

◆ setMsMsType()

void pappso::TimsFrameBase::setMsMsType ( quint8  type)

Definition at line 307 of file timsframebase.cpp.

312 {

◆ setMzCalibration()

void pappso::TimsFrameBase::setMzCalibration ( double  temperature_correction,
double  digitizerTimebase,
double  digitizerDelay,
double  C0,
double  C1,
double  C2,
double  C3 
)

Definition at line 79 of file timsframebase.cpp.

85 {
86  if(scanNum >= m_scanNumber)
87  {
89  QObject::tr("Invalid scan number : scanNum%1 > m_scanNumber")
90  .arg(scanNum));
91  }
92 
93  return true;
94 }
95 
96 std::size_t
97 TimsFrameBase::getNbrPeaks(std::size_t scanNum) const
98 {
99  throw PappsoException(

◆ setTime()

void pappso::TimsFrameBase::setTime ( double  time)

Definition at line 301 of file timsframebase.cpp.

◆ setTimsCalibration()

void pappso::TimsFrameBase::setTimsCalibration ( int  tims_model_type,
double  C0,
double  C1,
double  C2,
double  C3,
double  C4,
double  C5,
double  C6,
double  C7,
double  C8,
double  C9 
)

Definition at line 334 of file timsframebase.cpp.

348 {
349  double v = m_timsDvStart +
350  m_timsSlope * ((double)scanNum - m_timsTtrans - m_timsNdelay);
351 
352  if(v < m_timsVmin)
353  {
355  QObject::tr("ERROR in TimsFrame::getVoltageTransformation invalid tims "
356  "calibration, v < m_timsVmin"));
357  }
358 
359 
360  if(v > m_timsVmax)
361  {
363  QObject::tr("ERROR in TimsFrame::getVoltageTransformation invalid tims "

Member Data Documentation

◆ m_accumulationTime

double pappso::TimsFrameBase::m_accumulationTime = 0
protected

accumulation time in milliseconds

Definition at line 201 of file timsframebase.h.

Referenced by pappso::TimsFrame::getRawTraceSPtr(), getTraceFromCumulatedScansBuiltinCentroid(), and TimsFrameBase().

◆ m_digitizerDelay

double pappso::TimsFrameBase::m_digitizerDelay = 0
protected

◆ m_digitizerTimebase

double pappso::TimsFrameBase::m_digitizerTimebase = 0
protected

◆ m_msMsType

quint8 pappso::TimsFrameBase::m_msMsType = 0
protected

Definition at line 210 of file timsframebase.h.

◆ m_mzCalibrationArr

std::vector<double> pappso::TimsFrameBase::m_mzCalibrationArr
protected

MZ calibration parameters.

Definition at line 208 of file timsframebase.h.

Referenced by getMzFromTof().

◆ m_scanNumber

quint32 pappso::TimsFrameBase::m_scanNumber
protected

total number of scans contained in this frame

Definition at line 191 of file timsframebase.h.

Referenced by pappso::TimsFrame::TimsFrame().

◆ m_time

double pappso::TimsFrameBase::m_time = 0
protected

retention time

Definition at line 214 of file timsframebase.h.

◆ m_timsC6

double pappso::TimsFrameBase::m_timsC6 = 0
protected

Definition at line 224 of file timsframebase.h.

Referenced by getOneOverK0Transformation().

◆ m_timsC7

double pappso::TimsFrameBase::m_timsC7 = 0
protected

Definition at line 225 of file timsframebase.h.

◆ m_timsDvStart

double pappso::TimsFrameBase::m_timsDvStart = 0
protected

Definition at line 216 of file timsframebase.h.

Referenced by getOneOverK0Transformation().

◆ m_timsId

std::size_t pappso::TimsFrameBase::m_timsId
protected

Tims frame database id (the SQL identifier of this frame)

Warning
in sqlite, there is another field called TimsId : this is not that, because it is in fact an offset in bytes in the binary file.

Definition at line 197 of file timsframebase.h.

Referenced by pappso::TimsFrame::TimsFrame().

◆ m_timsNdelay

double pappso::TimsFrameBase::m_timsNdelay = 0
protected

Definition at line 221 of file timsframebase.h.

Referenced by getOneOverK0Transformation().

◆ m_timsSlope

double pappso::TimsFrameBase::m_timsSlope
protected
Initial value:
=
0

Definition at line 217 of file timsframebase.h.

◆ m_timsTtrans

double pappso::TimsFrameBase::m_timsTtrans = 0
protected

Definition at line 220 of file timsframebase.h.

Referenced by getOneOverK0Transformation().

◆ m_timsVmax

double pappso::TimsFrameBase::m_timsVmax = 0
protected

Definition at line 223 of file timsframebase.h.

Referenced by getOneOverK0Transformation().

◆ m_timsVmin

double pappso::TimsFrameBase::m_timsVmin = 0
protected

Definition at line 222 of file timsframebase.h.

Referenced by getOneOverK0Transformation().


The documentation for this class was generated from the following files:
pappso::TimsFrameBase::m_digitizerTimebase
double m_digitizerTimebase
Definition: timsframebase.h:203
pappso::TimsFrameBase::getMsLevel
unsigned int getMsLevel() const
Definition: timsframebase.cpp:315
pappso::TimsFrameBase::m_timsSlope
double m_timsSlope
Definition: timsframebase.h:217
pappso::TimsFrameBase::m_timsC7
double m_timsC7
Definition: timsframebase.h:225
pappso::TimsFrameBase::setMzCalibration
void setMzCalibration(double temperature_correction, double digitizerTimebase, double digitizerDelay, double C0, double C1, double C2, double C3)
Definition: timsframebase.cpp:79
pappso::DataPoint
Definition: datapoint.h:21
pappso::TimsFrameBase::getNbrPeaks
virtual std::size_t getNbrPeaks(std::size_t scanNum) const
Definition: timsframebase.cpp:115
pappso::TimsFrameBase::getRawIndexFromMz
quint32 getRawIndexFromMz(double mz) const
get raw index of a given m/z
Definition: timsframebase.cpp:275
pappso::TimsFrameBase::m_accumulationTime
double m_accumulationTime
accumulation time in milliseconds
Definition: timsframebase.h:201
pappso::TimsFrameBase::m_time
double m_time
retention time
Definition: timsframebase.h:214
pappso::ExceptionOutOfRange
Definition: exceptionoutofrange.h:53
pappso::Trace
A simple container of DataPoint instances.
Definition: trace.h:132
pappso::TimsFrameBase::getVoltageTransformation
double getVoltageTransformation(std::size_t scanNum) const
Definition: timsframebase.cpp:365
pappso::TimsFrameBase::m_timsDvStart
double m_timsDvStart
Definition: timsframebase.h:216
pappso::TimsFrameBase::getScanNumFromOneOverK0
std::size_t getScanNumFromOneOverK0(double one_over_k0) const
get the scan number from a given 1/Ko mobility value
Definition: timsframebase.cpp:400
pappso::DataPoint::x
pappso_double x
Definition: datapoint.h:22
pappso::TimsFrameBase::setMsMsType
void setMsMsType(quint8 type)
Definition: timsframebase.cpp:307
pappso::TimsFrameBase::m_timsNdelay
double m_timsNdelay
Definition: timsframebase.h:221
pappso::TimsFrameBase::m_timsVmin
double m_timsVmin
Definition: timsframebase.h:222
pappso::TimsFrameBase::getOneOverK0Transformation
double getOneOverK0Transformation(std::size_t scanNum) const
get 1/K0 value of a given scan (mobility value)
Definition: timsframebase.cpp:393
pappso::PrecisionUnit::mz
@ mz
pappso::TimsFrameBase::getMzFromTof
double getMzFromTof(double tof) const
get m/z from time of flight
Definition: timsframebase.cpp:167
pappso::TimsFrameBase::m_scanNumber
quint32 m_scanNumber
total number of scans contained in this frame
Definition: timsframebase.h:191
pappso::TimsFrameBase::m_timsC6
double m_timsC6
Definition: timsframebase.h:224
pappso::TimsFrameBase::m_digitizerDelay
double m_digitizerDelay
Definition: timsframebase.h:204
pappso::TimsFrameBase::m_mzCalibrationArr
std::vector< double > m_mzCalibrationArr
MZ calibration parameters.
Definition: timsframebase.h:208
pappso::TimsFrameBase::m_msMsType
quint8 m_msMsType
Definition: timsframebase.h:210
pappso::TimsFrameBase::m_timsVmax
double m_timsVmax
Definition: timsframebase.h:223
pappso::TimsFrameBase::m_timsTtrans
double m_timsTtrans
Definition: timsframebase.h:220
pappso::TimsFrameBase::getTraceFromCumulatedScans
pappso::Trace getTraceFromCumulatedScans(std::map< quint32, quint32 > &accumulated_scans) const
transform accumulation of raw scans into a real mass spectrum
Definition: timsframebase.cpp:427
pappso::PappsoException
Definition: pappsoexception.h:63