| 
    libpappsomspp
    
   Library for mass spectrometry 
   | 
 
#include <massspectrumwidget.h>
  
Signals | |
| void | mzChanged (double mz) const | 
| void | peakChanged (pappso::DataPointCstSPtr peak_match) const | 
| void | ionChanged (pappso::PeakIonIsotopeMatchCstSPtr ion) const | 
Public Member Functions | |
| MassSpectrumWidget (QWidget *parent=0) | |
| ~MassSpectrumWidget () | |
| void | setQualifiedMassSpectrum (const QualifiedMassSpectrum &spectrum) | 
| void | setMsLevel (unsigned int ms_level) | 
| void | setMassSpectrumCstSPtr (const MassSpectrumCstSPtr &spectrum) | 
| void | setPeptideSp (const PeptideSp &peptide_sp) | 
| void | plot () | 
| void | rescale () | 
| void | setPeptideCharge (unsigned int parent_ion_charge) | 
| void | setMaximumIsotopeNumber (unsigned int max_isotope_number) | 
| void | setMaximumIsotopeRank (unsigned int max_isotope_rank) | 
| void | setIonList (const std::list< Enums::PeptideIon > &ion_list) | 
| void | setMs1Precision (PrecisionPtr precision) | 
| void | setMs2Precision (PrecisionPtr precision) | 
| bool | savePdf (const QString &fileName, int width=0, int height=0) | 
| void | toQPaintDevice (QPaintDevice *device, const QSize &size) override | 
| void | highlightPrecursorPeaks () | 
  Public Member Functions inherited from GraphicDeviceWidget | |
| GraphicDeviceWidget (QWidget *parent) | |
| virtual | ~GraphicDeviceWidget () | 
| virtual void | toSvgFile (const QString &filename, const QString &title, const QString &description, const QSize &size) final | 
Protected Member Functions | |
| void | mzChangeEvent (pappso_double mz) const | 
| void | peakChangeEvent (const DataPoint *p_peak_match) | 
Private Member Functions | |
| void | peptideAnnotate () | 
| void | setVisibleMassDelta (bool visible) | 
| void | clearData () | 
| void | computeIsotopeMassList () | 
Private Attributes | |
| unsigned int | _tag_nmost_intense = 10 | 
| unsigned int | _max_isotope_number = 0 | 
| unsigned int | _max_isotope_rank = 1 | 
| MassSpectrumCstSPtr | _spectrum_sp | 
| PrecisionPtr | _p_ms1_precision = PrecisionFactory::getDaltonInstance(0.1) | 
| PrecisionPtr | _p_ms2_precision = PrecisionFactory::getDaltonInstance(0.5) | 
| unsigned int | _peptide_charge = 3 | 
| unsigned int | _ms_level | 
| PeptideSp | _peptide_sp | 
| std::list< Enums::PeptideIon > | _ion_list | 
| std::list< PeakIonIsotopeMatch > | _peak_ion_isotope_match_list | 
| std::vector< pappso::PeptideNaturalIsotopeAverageSp > | _isotope_mass_list | 
| list of isotope precursors   | |
| QCPSpectrum * | _custom_plot = nullptr | 
| bool | _is_visible_mass_delta | 
| const DataPoint * | _p_mouse_peak = nullptr | 
Friends | |
| class | QCPSpectrum | 
Definition at line 47 of file massspectrumwidget.h.
| MassSpectrumWidget::MassSpectrumWidget | ( | QWidget * | parent = 0 | ) | 
Definition at line 40 of file massspectrumwidget.cpp.
References GraphicDeviceWidget::GraphicDeviceWidget(), _custom_plot, _ion_list, _ms_level, pappso::PeptideFragmentIonListBase::getCIDionList(), and setVisibleMassDelta().
| MassSpectrumWidget::~MassSpectrumWidget | ( | ) | 
Definition at line 55 of file massspectrumwidget.cpp.
      
  | 
  private | 
Definition at line 119 of file massspectrumwidget.cpp.
References _custom_plot, and _spectrum_sp.
Referenced by peptideAnnotate(), QCPSpectrum, and setMassSpectrumCstSPtr().
      
  | 
  private | 
Definition at line 418 of file massspectrumwidget.cpp.
References _isotope_mass_list, _p_ms1_precision, _peptide_charge, _peptide_sp, pappso::PeptideNaturalIsotopeAverage::getIntensityRatio(), pappso::PeptideNaturalIsotopeList::getIntensityRatioPerIsotopeNumber(), pappso::PeptideNaturalIsotopeAverage::getIsotopeRank(), and pappso::PeptideNaturalIsotopeAverage::makePeptideNaturalIsotopeAverageSp().
Referenced by peptideAnnotate(), and QCPSpectrum.
| void pappso::MassSpectrumWidget::highlightPrecursorPeaks | ( | ) | 
Definition at line 462 of file massspectrumwidget.cpp.
References _custom_plot, _ms_level, _p_ms2_precision, _peptide_charge, and _peptide_sp.
      
  | 
  signal | 
Referenced by peakChangeEvent().
      
  | 
  signal | 
Referenced by mzChangeEvent().
      
  | 
  protected | 
Definition at line 372 of file massspectrumwidget.cpp.
References mzChanged().
Referenced by QCPSpectrum.
      
  | 
  signal | 
Referenced by peakChangeEvent().
      
  | 
  protected | 
Definition at line 378 of file massspectrumwidget.cpp.
References _p_mouse_peak, _peak_ion_isotope_match_list, ionChanged(), and peakChanged().
Referenced by QCPSpectrum.
      
  | 
  private | 
Definition at line 185 of file massspectrumwidget.cpp.
References _ion_list, _max_isotope_number, _max_isotope_rank, _ms_level, _p_ms2_precision, _peak_ion_isotope_match_list, _peptide_charge, _peptide_sp, _spectrum_sp, clearData(), computeIsotopeMassList(), and pappso::PeptideIsotopeSpectrumMatch::getPeakIonIsotopeMatchList().
Referenced by plot(), and QCPSpectrum.
| void MassSpectrumWidget::plot | ( | ) | 
Definition at line 267 of file massspectrumwidget.cpp.
References _custom_plot, _isotope_mass_list, _ms_level, _p_ms1_precision, _peak_ion_isotope_match_list, _spectrum_sp, _tag_nmost_intense, pappso::a, pappso::b, pappso::MzRange::contains(), pappso::PeptideNaturalIsotopeAverage::getMz(), pappso::PeptideFragmentIon::getPeptideIonColor(), peptideAnnotate(), and pappso::DataPoint::y.
| void MassSpectrumWidget::rescale | ( | ) | 
Definition at line 239 of file massspectrumwidget.cpp.
References _custom_plot.
| bool MassSpectrumWidget::savePdf | ( | const QString & | fileName, | 
| int | width = 0, | ||
| int | height = 0 ) | 
Definition at line 60 of file massspectrumwidget.cpp.
References _custom_plot.
| void MassSpectrumWidget::setIonList | ( | const std::list< Enums::PeptideIon > & | ion_list | ) | 
Definition at line 135 of file massspectrumwidget.cpp.
References _ion_list.
| void MassSpectrumWidget::setMassSpectrumCstSPtr | ( | const MassSpectrumCstSPtr & | spectrum | ) | 
Definition at line 229 of file massspectrumwidget.cpp.
References _spectrum_sp, and clearData().
Referenced by setQualifiedMassSpectrum().
| void MassSpectrumWidget::setMaximumIsotopeNumber | ( | unsigned int | max_isotope_number | ) | 
Definition at line 174 of file massspectrumwidget.cpp.
References _max_isotope_number.
| void MassSpectrumWidget::setMaximumIsotopeRank | ( | unsigned int | max_isotope_rank | ) | 
Definition at line 180 of file massspectrumwidget.cpp.
References _max_isotope_rank.
| void MassSpectrumWidget::setMs1Precision | ( | PrecisionPtr | precision | ) | 
Definition at line 159 of file massspectrumwidget.cpp.
References _p_ms1_precision, and pappso::PrecisionBase::toString().
| void MassSpectrumWidget::setMs2Precision | ( | PrecisionPtr | precision | ) | 
Definition at line 166 of file massspectrumwidget.cpp.
References _p_ms2_precision, and pappso::PrecisionBase::toString().
| void MassSpectrumWidget::setMsLevel | ( | unsigned int | ms_level | ) | 
Definition at line 141 of file massspectrumwidget.cpp.
References _ms_level, and setVisibleMassDelta().
Referenced by setQualifiedMassSpectrum().
| void MassSpectrumWidget::setPeptideCharge | ( | unsigned int | parent_ion_charge | ) | 
Definition at line 130 of file massspectrumwidget.cpp.
References _peptide_charge.
| void MassSpectrumWidget::setPeptideSp | ( | const PeptideSp & | peptide_sp | ) | 
Definition at line 219 of file massspectrumwidget.cpp.
References _peptide_sp.
| void MassSpectrumWidget::setQualifiedMassSpectrum | ( | const QualifiedMassSpectrum & | spectrum | ) | 
Definition at line 255 of file massspectrumwidget.cpp.
References pappso::QualifiedMassSpectrum::getMassSpectrumCstSPtr(), pappso::QualifiedMassSpectrum::getMsLevel(), pappso::QualifiedMassSpectrum::getPrecursorCharge(), setMassSpectrumCstSPtr(), and setMsLevel().
      
  | 
  private | 
Definition at line 87 of file massspectrumwidget.cpp.
References _custom_plot, _is_visible_mass_delta, and QCPSpectrum.
Referenced by MassSpectrumWidget(), QCPSpectrum, and setMsLevel().
      
  | 
  overridevirtual | 
Implements GraphicDeviceWidget.
Definition at line 75 of file massspectrumwidget.cpp.
References _custom_plot.
      
  | 
  friend | 
Definition at line 82 of file massspectrumwidget.h.
References clearData(), computeIsotopeMassList(), mzChangeEvent(), peakChangeEvent(), peptideAnnotate(), QCPSpectrum, and setVisibleMassDelta().
Referenced by QCPSpectrum, and setVisibleMassDelta().
      
  | 
  private | 
Definition at line 110 of file massspectrumwidget.h.
Referenced by MassSpectrumWidget(), clearData(), highlightPrecursorPeaks(), plot(), rescale(), savePdf(), setVisibleMassDelta(), and toQPaintDevice().
      
  | 
  private | 
Definition at line 102 of file massspectrumwidget.h.
Referenced by MassSpectrumWidget(), peptideAnnotate(), and setIonList().
      
  | 
  private | 
Definition at line 111 of file massspectrumwidget.h.
Referenced by setVisibleMassDelta().
      
  | 
  private | 
list of isotope precursors
Definition at line 108 of file massspectrumwidget.h.
Referenced by computeIsotopeMassList(), and plot().
      
  | 
  private | 
Definition at line 94 of file massspectrumwidget.h.
Referenced by peptideAnnotate(), and setMaximumIsotopeNumber().
      
  | 
  private | 
Definition at line 95 of file massspectrumwidget.h.
Referenced by peptideAnnotate(), and setMaximumIsotopeRank().
      
  | 
  private | 
Definition at line 100 of file massspectrumwidget.h.
Referenced by MassSpectrumWidget(), highlightPrecursorPeaks(), peptideAnnotate(), plot(), and setMsLevel().
      
  | 
  private | 
Definition at line 113 of file massspectrumwidget.h.
Referenced by peakChangeEvent().
      
  | 
  private | 
Definition at line 97 of file massspectrumwidget.h.
Referenced by computeIsotopeMassList(), plot(), and setMs1Precision().
      
  | 
  private | 
Definition at line 98 of file massspectrumwidget.h.
Referenced by highlightPrecursorPeaks(), peptideAnnotate(), and setMs2Precision().
      
  | 
  private | 
Definition at line 104 of file massspectrumwidget.h.
Referenced by peakChangeEvent(), peptideAnnotate(), and plot().
      
  | 
  private | 
Definition at line 99 of file massspectrumwidget.h.
Referenced by computeIsotopeMassList(), highlightPrecursorPeaks(), peptideAnnotate(), and setPeptideCharge().
      
  | 
  private | 
Definition at line 101 of file massspectrumwidget.h.
Referenced by computeIsotopeMassList(), highlightPrecursorPeaks(), peptideAnnotate(), and setPeptideSp().
      
  | 
  private | 
Definition at line 96 of file massspectrumwidget.h.
Referenced by clearData(), peptideAnnotate(), plot(), and setMassSpectrumCstSPtr().
      
  | 
  private | 
Definition at line 93 of file massspectrumwidget.h.
Referenced by plot().