libpappsomspp
Library for mass spectrometry
pappso::QCPSpectrum Class Reference

#include <qcpspectrum.h>

Inheritance diagram for pappso::QCPSpectrum:

Protected Member Functions

 QCPSpectrum (MassSpectrumWidget *parent, bool visible)
 
 ~QCPSpectrum ()
 
void clearData ()
 
void rescale ()
 
void setSpectrumP (const MassSpectrum *spectrum)
 
void addMassDelta (const PeakIonIsotopeMatch &peak_ion_match)
 
void addMs1IsotopePattern (const std::vector< pappso::PeptideNaturalIsotopeAverageSp > &isotope_mass_list, pappso_double intensity)
 
void addPeakIonIsotopeMatch (const PeakIonIsotopeMatch &peak_ion_match)
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseReleaseEvent (QMouseEvent *event) override
 
virtual void keyPressEvent (QKeyEvent *event) override
 
virtual void keyReleaseEvent (QKeyEvent *event) override
 

Private Member Functions

void getNearestPeakBetween (pappso_double mz, pappso_double mouse_mz_range)
 
Q_SLOT void setMzRangeChanged (QCPRange range)
 

Private Attributes

MassSpectrumWidget_parent
 
const MassSpectrum_p_spectrum = nullptr
 
QCPRange _mz_range
 
QCPRange _intensity_range
 
QCPRange _mass_delta_range
 
QCPBars * _p_peak_bars
 
QCPBars * _p_peak_bars_isotope
 
std::map< PeptideIon, QCPBars * > _map_ion_type_bars
 
QCPAxisRect * _p_delta_axis_rect
 
QCPGraph * _p_delta_graph
 
double _bar_width = 0.5
 
bool _click = false
 
bool _control_key = false
 
pappso::pappso_double _old_x
 
pappso::pappso_double _old_y
 

Friends

class MassSpectrumWidget
 

Detailed Description

Definition at line 45 of file qcpspectrum.h.

Constructor & Destructor Documentation

◆ QCPSpectrum()

QCPSpectrum::QCPSpectrum ( MassSpectrumWidget parent,
bool  visible 
)
protected

< Cter amino ions

< Cter amino ions + NH3 loss

< Cter amino ions + H2O loss

< Cter carbocations

Definition at line 37 of file qcpspectrum.cpp.

38  : QCustomPlot(parent)
39 {
40  qDebug() << "QCPSpectrum::QCPSpectrum begin";
41 
42  setFocusPolicy(Qt::ClickFocus);
43  _parent = parent;
44  _mz_range.lower = 0;
45  _mz_range.upper = 0;
46  _intensity_range.lower = 0;
47  _intensity_range.upper = 0;
48  _mass_delta_range.upper = -100;
49  _mass_delta_range.lower = 100;
50 
51 
52  // make axis rects' left side line up:
53  QCPMarginGroup *group = new QCPMarginGroup(this);
54  this->axisRect()->setMarginGroup(QCP::msLeft | QCP::msRight, group);
55 
56 
57  _p_peak_bars = new QCPBars(xAxis, yAxis);
58  _p_peak_bars->setWidthType(QCPBars::WidthType::wtAbsolute);
59  _p_peak_bars->setWidth(_bar_width);
60  _p_peak_bars->setPen(QPen(Qt::black, 1));
61  _p_peak_bars->setVisible(true);
62 
63  _p_peak_bars_isotope = new QCPBars(xAxis, yAxis);
64  _p_peak_bars_isotope->setWidthType(QCPBars::WidthType::wtAbsolute);
65  _p_peak_bars_isotope->setWidth(_bar_width * 10);
66  QColor red(Qt::red);
67  red.setAlpha(100);
68  _p_peak_bars_isotope->setPen(QPen(red, 1));
69  _p_peak_bars_isotope->setBrush(QBrush(red));
70 
71  connect(this->xAxis,
72  SIGNAL(rangeChanged(QCPRange)),
73  this,
74  SLOT(setMzRangeChanged(QCPRange)));
75 
76 
77  std::vector<PeptideIon> all_ion_list = {
78  PeptideIon::b,
79  PeptideIon::bstar,
80  PeptideIon::bo,
81  PeptideIon::a,
82  PeptideIon::astar,
83  PeptideIon::ao,
84  PeptideIon::bp,
85  PeptideIon::c,
86  PeptideIon::y, ///< Cter amino ions
87  PeptideIon::ystar, ///< Cter amino ions + NH3 loss
88  PeptideIon::yo, ///< Cter amino ions + H2O loss
89  PeptideIon::z, ///< Cter carbocations
90  PeptideIon::yp,
92  qDebug() << "SpectrumWidget::setVisibleMassDelta 5";
93 
94  for(PeptideIon ion_type : all_ion_list)
95  {
96  QCPBars *p_peak_bars = new QCPBars(xAxis, yAxis);
97  p_peak_bars->setWidthType(QCPBars::WidthType::wtAbsolute);
98  p_peak_bars->setWidth(_bar_width);
99  p_peak_bars->setPen(
100  QPen(PeptideFragmentIon::getPeptideIonColor(ion_type), 1));
101 
102  p_peak_bars->setVisible(true);
103  _map_ion_type_bars.insert(
104  std::pair<PeptideIon, QCPBars *>(ion_type, p_peak_bars));
105  }
106  qDebug() << "SpectrumWidget::setVisibleMassDelta visible ?";
107  setInteractions(QCP::iRangeDrag | QCP::iRangeZoom);
108  if(visible)
109  {
110 
111  _p_delta_axis_rect = new QCPAxisRect(this);
112  this->plotLayout()->addElement(1, 0, _p_delta_axis_rect);
113  _p_delta_axis_rect->axis(QCPAxis::atBottom)->setLayer("axes");
114  _p_delta_axis_rect->axis(QCPAxis::atBottom)->grid()->setLayer("grid");
115  _p_delta_axis_rect->axis(QCPAxis::atLeft)->setLabel("mass delta");
116  // bring bottom and main axis rect closer together:
117  this->plotLayout()->setRowSpacing(0);
118  _p_delta_axis_rect->setAutoMargins(QCP::msLeft | QCP::msRight |
119  QCP::msBottom);
120  _p_delta_axis_rect->setMargins(QMargins(0, 0, 0, 0));
121  this->setAutoAddPlottableToLegend(false);
122  _p_delta_graph = new QCPGraph(_p_delta_axis_rect->axis(QCPAxis::atBottom),
123  _p_delta_axis_rect->axis(QCPAxis::atLeft));
124  _p_delta_graph->setLineStyle(QCPGraph::LineStyle::lsNone);
125  _p_delta_graph->setScatterStyle(
126  QCPScatterStyle(QCPScatterStyle::ssDisc, 4.0));
127 
128  _p_delta_axis_rect->setMarginGroup(QCP::msLeft | QCP::msRight, group);
129  _p_delta_axis_rect->setMaximumSize(QSize(QWIDGETSIZE_MAX, 100));
130 
131 
132  //_p_delta_axis_rect->setInteractions(QCP::iRangeDrag | QCP::iRangeZoom );
133  _p_delta_axis_rect->setRangeDrag(Qt::Horizontal | Qt::Vertical);
134  _p_delta_axis_rect->setRangeZoom(Qt::Vertical);
135 
136 
137  connect(_p_delta_axis_rect->axis(QCPAxis::atBottom),
138  SIGNAL(rangeChanged(QCPRange)),
139  this,
140  SLOT(setMzRangeChanged(QCPRange)));
141  }
142  else
143  {
144  _p_delta_axis_rect = nullptr;
145  }
146  qDebug() << "QCPSpectrum::QCPSpectrum end";
147 }

References _bar_width, _intensity_range, _map_ion_type_bars, _mass_delta_range, _mz_range, _p_delta_axis_rect, _p_delta_graph, _p_peak_bars, _p_peak_bars_isotope, _parent, pappso::PeptideFragmentIon::getPeptideIonColor(), setMzRangeChanged(), pappso::x, and pappso::y.

◆ ~QCPSpectrum()

QCPSpectrum::~QCPSpectrum ( )
protected

Definition at line 148 of file qcpspectrum.cpp.

149 {
150 }

Member Function Documentation

◆ addMassDelta()

void QCPSpectrum::addMassDelta ( const PeakIonIsotopeMatch peak_ion_match)
protected

Definition at line 386 of file qcpspectrum.cpp.

387 {
388  if(_p_delta_axis_rect != nullptr)
389  {
390  // observed - theoretical
391  double diff =
392  peak_ion_match.getPeak().x -
393  peak_ion_match.getPeptideNaturalIsotopeAverageSp().get()->getMz();
394  _p_delta_graph->addData(peak_ion_match.getPeak().x, diff);
395 
396  if(diff > _mass_delta_range.upper)
397  _mass_delta_range.upper = diff;
398  if(diff < _mass_delta_range.lower)
399  _mass_delta_range.lower = diff;
400 
401  _p_delta_axis_rect->axis(QCPAxis::AxisType::atLeft)
402  ->setRange(_mass_delta_range);
403  }
404 }

References _mass_delta_range, _p_delta_axis_rect, _p_delta_graph, pappso::PeakIonMatch::getPeak(), pappso::PeakIonIsotopeMatch::getPeptideNaturalIsotopeAverageSp(), and pappso::DataPoint::x.

Referenced by pappso::MassSpectrumWidget::plot().

◆ addMs1IsotopePattern()

void QCPSpectrum::addMs1IsotopePattern ( const std::vector< pappso::PeptideNaturalIsotopeAverageSp > &  isotope_mass_list,
pappso_double  intensity 
)
protected

Definition at line 414 of file qcpspectrum.cpp.

417 {
418  pappso_double total_intensity =
419  ((pappso_double)1.0 / isotope_mass_list.at(0).get()->getIntensityRatio()) *
420  intensity;
421  for(PeptideNaturalIsotopeAverageSp peptide : isotope_mass_list)
422  {
423  _p_peak_bars_isotope->addData(peptide.get()->getMz(),
424  peptide.get()->getIntensityRatio() *
425  total_intensity);
426  }
427 }

References _p_peak_bars_isotope.

Referenced by pappso::MassSpectrumWidget::plot().

◆ addPeakIonIsotopeMatch()

void QCPSpectrum::addPeakIonIsotopeMatch ( const PeakIonIsotopeMatch peak_ion_match)
protected

Definition at line 407 of file qcpspectrum.cpp.

408 {
409  _map_ion_type_bars[peak_ion_match.getPeptideIonType()]->addData(
410  peak_ion_match.getPeak().x, peak_ion_match.getPeak().y);
411 }

References _map_ion_type_bars, pappso::PeakIonMatch::getPeak(), pappso::PeakIonMatch::getPeptideIonType(), pappso::DataPoint::x, and pappso::DataPoint::y.

Referenced by pappso::MassSpectrumWidget::plot().

◆ clearData()

void QCPSpectrum::clearData ( )
protected

Definition at line 238 of file qcpspectrum.cpp.

239 {
240  qDebug();
241  _p_peak_bars->setData(QVector<double>(), QVector<double>());
242  _p_peak_bars->data().clear();
243  qDebug();
244  _p_peak_bars_isotope->setData(QVector<double>(), QVector<double>());
245  _p_peak_bars_isotope->data().clear();
246  qDebug();
247  for(std::pair<PeptideIon, QCPBars *> pair_ion_bar : _map_ion_type_bars)
248  {
249  pair_ion_bar.second->setData(QVector<double>(), QVector<double>());
250  pair_ion_bar.second->data().clear();
251  }
252  // this->clearPlottables();
253  // this->clearItems();
254  if(_p_delta_axis_rect != nullptr)
255  {
256  _p_delta_graph->setData(QVector<double>(), QVector<double>());
257  _p_delta_graph->data().clear();
258  }
259 
260  _mz_range.lower = 0;
261  _mz_range.upper = 0;
262 
263  _mass_delta_range.upper = -100;
264  _mass_delta_range.lower = 100;
265  qDebug();
266 }

References _map_ion_type_bars, _mass_delta_range, _mz_range, _p_delta_axis_rect, _p_delta_graph, _p_peak_bars, and _p_peak_bars_isotope.

Referenced by pappso::MassSpectrumWidget::clearData().

◆ getNearestPeakBetween()

void QCPSpectrum::getNearestPeakBetween ( pappso_double  mz,
pappso_double  mouse_mz_range 
)
private

Definition at line 354 of file qcpspectrum.cpp.

356 {
357  /*qDebug() << "QCPSpectrum::getNearestPeakBetween begin " << mz << " "
358  << mouse_mz_range;*/
359  const DataPoint *p_peak_match;
360  p_peak_match = nullptr;
361  pappso_double min = mz - mouse_mz_range;
362  pappso_double max = mz + mouse_mz_range;
363 
364  for(const DataPoint &peak : *_p_spectrum)
365  {
366  if((peak.x > min) && (peak.x < max))
367  {
368  if(p_peak_match == nullptr)
369  {
370  p_peak_match = &peak;
371  }
372  else
373  {
374  if(fabs(mz - peak.x) < fabs(mz - p_peak_match->x))
375  {
376  p_peak_match = &peak;
377  }
378  }
379  }
380  }
381  _parent->peakChangeEvent(p_peak_match);
382  // qDebug() << "QCPSpectrum::getNearestPeakBetween end";
383 }

References _p_spectrum, _parent, pappso::MassSpectrumWidget::peakChangeEvent(), pappso::sum, pappso::unset, and pappso::DataPoint::x.

Referenced by mouseMoveEvent().

◆ keyPressEvent()

void QCPSpectrum::keyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

Definition at line 269 of file qcpspectrum.cpp.

270 {
271  if(event->key() == Qt::Key_Control)
272  {
273  _control_key = true;
274  }
275  qDebug() << "QCPSpectrum::keyPressEvent end";
276 }

References _control_key.

◆ keyReleaseEvent()

void QCPSpectrum::keyReleaseEvent ( QKeyEvent *  event)
overrideprotectedvirtual

Definition at line 279 of file qcpspectrum.cpp.

280 {
281  if(event->key() == Qt::Key_Control)
282  {
283  _control_key = false;
284  }
285  qDebug() << "QCPSpectrum::keyReleaseEvent end";
286 }

References _control_key.

◆ mouseMoveEvent()

void QCPSpectrum::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Definition at line 311 of file qcpspectrum.cpp.

312 {
313  pappso::pappso_double x = xAxis->pixelToCoord(event->x());
314  if(_click)
315  {
316  /* qDebug() << "QCPSpectrum::mouseMoveEvent begin "
317  << xAxis->pixelToCoord(event->x()) << " "
318  << yAxis->pixelToCoord(event->y());*/
319  pappso::pappso_double y = yAxis->pixelToCoord(event->y());
320  if(y < 0)
321  {
322  y = 0;
323  }
324  if(_control_key)
325  {
326  if(y > 0)
327  {
328  this->yAxis->scaleRange(_old_y / y, 0);
329  }
330  }
331  else
332  {
333  this->xAxis->moveRange(xAxis->pixelToCoord(_old_x) -
334  xAxis->pixelToCoord(event->x()));
335  }
336  _old_x = event->x();
337  _old_y = y;
338  replot();
339  // qDebug() << "QCPSpectrum::mouseMoveEvent end";
340  }
341  else
342  {
343  if(_p_spectrum != nullptr)
344  {
345  pappso::pappso_double mouse_mz_range =
346  xAxis->pixelToCoord(10) - xAxis->pixelToCoord(5);
347  getNearestPeakBetween(x, mouse_mz_range);
349  }
350  }
351 }

References _click, _control_key, _old_x, _old_y, _p_spectrum, _parent, getNearestPeakBetween(), pappso::MassSpectrumWidget::mzChangeEvent(), and pappso::y.

◆ mousePressEvent()

void QCPSpectrum::mousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Definition at line 289 of file qcpspectrum.cpp.

290 {
291  /*qDebug() << "QCPSpectrum::mousePressEvent begin "
292  << xAxis->pixelToCoord(event->x()) << " "
293  << yAxis->pixelToCoord(event->y());*/
294  _click = true;
295  _old_x = event->x();
296  _old_y = yAxis->pixelToCoord(event->y());
297  if(_old_y < 0)
298  _old_y = 0;
299  /* qDebug() << "QCPSpectrum::mousePressEvent end";*/
300 }

References _click, _old_x, and _old_y.

◆ mouseReleaseEvent()

void QCPSpectrum::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Definition at line 302 of file qcpspectrum.cpp.

303 {
304  /*qDebug() << "QCPSpectrum::mouseReleaseEvent begin "
305  << xAxis->pixelToCoord(event->x()) << " "
306  << yAxis->pixelToCoord(event->y());*/
307  _click = false;
308  // qDebug() << "QCPSpectrum::mouseReleaseEvent end";
309 }

References _click.

◆ rescale()

void QCPSpectrum::rescale ( )
protected

Definition at line 184 of file qcpspectrum.cpp.

185 {
186  _p_peak_bars->setVisible(true);
187 
188  //_p_peak_bars->rescaleAxes(false);
189  // this->rescaleAxes(false);
190 
191 
192  if(_mz_range.lower < 0)
193  {
194  _mz_range.lower = 0;
195  }
196  if(_mz_range.upper < 0)
197  {
198  _mz_range.upper = 1000;
199  }
200  else
201  {
202  xAxis->setRange(_mz_range);
203  yAxis->setRange(_intensity_range);
204  if(_p_delta_axis_rect != nullptr)
205  {
206  _p_delta_axis_rect->axis(QCPAxis::AxisType::atLeft)
207  ->setRange(_mass_delta_range);
208  }
209  }
210 }

References _intensity_range, _mass_delta_range, _mz_range, _p_delta_axis_rect, and _p_peak_bars.

Referenced by pappso::MassSpectrumWidget::rescale().

◆ setMzRangeChanged()

void QCPSpectrum::setMzRangeChanged ( QCPRange  range)
private

Definition at line 213 of file qcpspectrum.cpp.

214 {
215  qDebug() << "QCPSpectrum::setMzRangeChanged _mz_range.lower"
216  << _mz_range.lower;
217  if(_mz_range.lower > 0)
218  {
219  if(range.lower < _mz_range.lower)
220  {
221  range.lower = _mz_range.lower;
222  }
223  if(range.upper > _mz_range.upper)
224  {
225  range.upper = _mz_range.upper;
226  }
227  }
228 
229  xAxis->setRange(range);
230 
231  if(_p_delta_axis_rect != nullptr)
232  {
233  _p_delta_axis_rect->axis(QCPAxis::atBottom)->setRange(range);
234  }
235 }

References _mz_range, and _p_delta_axis_rect.

Referenced by QCPSpectrum().

◆ setSpectrumP()

void QCPSpectrum::setSpectrumP ( const MassSpectrum spectrum)
protected

Definition at line 153 of file qcpspectrum.cpp.

154 {
155  _mass_delta_range.upper = -100;
156  _mass_delta_range.lower = 100;
157  // generate basic peaks:
158  _p_spectrum = spectrum;
159  if((spectrum != nullptr) && (spectrum->size() != 0))
160  {
161  // throw PappsoException(QObject::tr("Error in
162  // SpectrumWidget::setSpectrumSp :\n_spectrum_sp.get() == nullptr"));
163  //}
164  _p_peak_bars->setVisible(true);
165  for(const DataPoint &peak : *spectrum)
166  {
167  _p_peak_bars->addData(peak.x, peak.y);
168  }
169  _mz_range.lower = spectrum->front().x - 1;
170  _mz_range.upper = spectrum->back().x + 1;
171  _intensity_range.lower = 0;
172  _intensity_range.upper = spectrum->maxY();
173  }
174  else
175  {
176  _mz_range.lower = 0;
177  _mz_range.upper = 0;
178  _intensity_range.lower = 0;
179  _intensity_range.upper = 0;
180  }
181 }

References _intensity_range, _mass_delta_range, _mz_range, _p_peak_bars, and _p_spectrum.

Referenced by pappso::MassSpectrumWidget::clearData().

Friends And Related Function Documentation

◆ MassSpectrumWidget

friend class MassSpectrumWidget
friend

Definition at line 49 of file qcpspectrum.h.

Member Data Documentation

◆ _bar_width

double pappso::QCPSpectrum::_bar_width = 0.5
private

Definition at line 86 of file qcpspectrum.h.

Referenced by QCPSpectrum().

◆ _click

bool pappso::QCPSpectrum::_click = false
private

Definition at line 87 of file qcpspectrum.h.

Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().

◆ _control_key

bool pappso::QCPSpectrum::_control_key = false
private

Definition at line 88 of file qcpspectrum.h.

Referenced by keyPressEvent(), keyReleaseEvent(), and mouseMoveEvent().

◆ _intensity_range

QCPRange pappso::QCPSpectrum::_intensity_range
private

Definition at line 79 of file qcpspectrum.h.

Referenced by QCPSpectrum(), rescale(), and setSpectrumP().

◆ _map_ion_type_bars

std::map<PeptideIon, QCPBars *> pappso::QCPSpectrum::_map_ion_type_bars
private

Definition at line 83 of file qcpspectrum.h.

Referenced by QCPSpectrum(), addPeakIonIsotopeMatch(), and clearData().

◆ _mass_delta_range

QCPRange pappso::QCPSpectrum::_mass_delta_range
private

Definition at line 80 of file qcpspectrum.h.

Referenced by QCPSpectrum(), addMassDelta(), clearData(), rescale(), and setSpectrumP().

◆ _mz_range

QCPRange pappso::QCPSpectrum::_mz_range
private

Definition at line 78 of file qcpspectrum.h.

Referenced by QCPSpectrum(), clearData(), rescale(), setMzRangeChanged(), and setSpectrumP().

◆ _old_x

pappso::pappso_double pappso::QCPSpectrum::_old_x
private

Definition at line 89 of file qcpspectrum.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

◆ _old_y

pappso::pappso_double pappso::QCPSpectrum::_old_y
private

Definition at line 90 of file qcpspectrum.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

◆ _p_delta_axis_rect

QCPAxisRect* pappso::QCPSpectrum::_p_delta_axis_rect
private

Definition at line 84 of file qcpspectrum.h.

Referenced by QCPSpectrum(), addMassDelta(), clearData(), rescale(), and setMzRangeChanged().

◆ _p_delta_graph

QCPGraph* pappso::QCPSpectrum::_p_delta_graph
private

Definition at line 85 of file qcpspectrum.h.

Referenced by QCPSpectrum(), addMassDelta(), and clearData().

◆ _p_peak_bars

QCPBars* pappso::QCPSpectrum::_p_peak_bars
private

Definition at line 81 of file qcpspectrum.h.

Referenced by QCPSpectrum(), clearData(), rescale(), and setSpectrumP().

◆ _p_peak_bars_isotope

QCPBars* pappso::QCPSpectrum::_p_peak_bars_isotope
private

Definition at line 82 of file qcpspectrum.h.

Referenced by QCPSpectrum(), addMs1IsotopePattern(), and clearData().

◆ _p_spectrum

const MassSpectrum* pappso::QCPSpectrum::_p_spectrum = nullptr
private

Definition at line 77 of file qcpspectrum.h.

Referenced by getNearestPeakBetween(), mouseMoveEvent(), and setSpectrumP().

◆ _parent

MassSpectrumWidget* pappso::QCPSpectrum::_parent
private

Definition at line 76 of file qcpspectrum.h.

Referenced by QCPSpectrum(), getNearestPeakBetween(), and mouseMoveEvent().


The documentation for this class was generated from the following files:
pappso::pappso_double
double pappso_double
A type definition for doubles.
Definition: types.h:48
pappso::QCPSpectrum::_map_ion_type_bars
std::map< PeptideIon, QCPBars * > _map_ion_type_bars
Definition: qcpspectrum.h:83
pappso::MassSpectrumWidget::mzChangeEvent
void mzChangeEvent(pappso_double mz) const
Definition: massspectrumwidget.cpp:371
pappso::DataPoint::y
pappso_double y
Definition: datapoint.h:23
pappso::QCPSpectrum::_old_x
pappso::pappso_double _old_x
Definition: qcpspectrum.h:89
pappso::QCPSpectrum::_control_key
bool _control_key
Definition: qcpspectrum.h:88
pappso::PeakIonMatch::getPeak
const DataPoint & getPeak() const
Definition: peakionmatch.h:55
pappso::PeptideIon::x
@ x
Cter acylium ions.
pappso::DataPoint
Definition: datapoint.h:21
pappso::QCPSpectrum::_parent
MassSpectrumWidget * _parent
Definition: qcpspectrum.h:76
pappso::QCPSpectrum::_p_delta_graph
QCPGraph * _p_delta_graph
Definition: qcpspectrum.h:85
pappso::PeptideIonCter::y
@ y
pappso::PeptideIon
PeptideIon
PeptideIon enum defines all types of ions (Nter or Cter)
Definition: types.h:334
pappso::QCPSpectrum::_click
bool _click
Definition: qcpspectrum.h:87
pappso::QCPSpectrum::_bar_width
double _bar_width
Definition: qcpspectrum.h:86
pappso::QCPSpectrum::_p_peak_bars
QCPBars * _p_peak_bars
Definition: qcpspectrum.h:81
pappso::QCPSpectrum::_intensity_range
QCPRange _intensity_range
Definition: qcpspectrum.h:79
pappso::QCPSpectrum::_p_delta_axis_rect
QCPAxisRect * _p_delta_axis_rect
Definition: qcpspectrum.h:84
pappso::DataPoint::x
pappso_double x
Definition: datapoint.h:22
pappso::QCPSpectrum::_p_spectrum
const MassSpectrum * _p_spectrum
Definition: qcpspectrum.h:77
pappso::MassSpectrumWidget::peakChangeEvent
void peakChangeEvent(const DataPoint *p_peak_match)
Definition: massspectrumwidget.cpp:377
pappso::PeptideFragmentIon::getPeptideIonColor
static const QColor getPeptideIonColor(PeptideIon ion_type)
Definition: peptidefragmention.cpp:173
pappso::QCPSpectrum::getNearestPeakBetween
void getNearestPeakBetween(pappso_double mz, pappso_double mouse_mz_range)
Definition: qcpspectrum.cpp:354
pappso::PeakIonMatch::getPeptideIonType
PeptideIon getPeptideIonType() const
Definition: peakionmatch.h:67
pappso::XicExtractMethod::sum
@ sum
sum of intensities
pappso::DataKind::unset
@ unset
not set
pappso::QCPSpectrum::setMzRangeChanged
Q_SLOT void setMzRangeChanged(QCPRange range)
Definition: qcpspectrum.cpp:213
pappso::PeakIonIsotopeMatch::getPeptideNaturalIsotopeAverageSp
virtual const PeptideNaturalIsotopeAverageSp & getPeptideNaturalIsotopeAverageSp() const
Definition: peakionisotopematch.cpp:49
pappso::QCPSpectrum::_mass_delta_range
QCPRange _mass_delta_range
Definition: qcpspectrum.h:80
pappso::QCPSpectrum::_p_peak_bars_isotope
QCPBars * _p_peak_bars_isotope
Definition: qcpspectrum.h:82
pappso::PeptideIon::y
@ y
Cter amino ions.
pappso::QCPSpectrum::_old_y
pappso::pappso_double _old_y
Definition: qcpspectrum.h:90
pappso::QCPSpectrum::_mz_range
QCPRange _mz_range
Definition: qcpspectrum.h:78
pappso::PeptideNaturalIsotopeAverageSp
std::shared_ptr< const PeptideNaturalIsotopeAverage > PeptideNaturalIsotopeAverageSp
Definition: peptidenaturalisotopeaverage.h:37