libpappsomspp
Library for mass spectrometry
|
#include <experimentalspectrum.h>
Public Member Functions | |
ExperimentalSpectrum (const pappso::QualifiedMassSpectrum &qmass_spectrum, pappso::PrecisionPtr precision_ptr) | |
ExperimentalSpectrum (const pappso::QualifiedMassSpectrum &qmass_spectrum, pappso::PrecisionPtr precision_ptr, double precursor_mass_error) | |
ExperimentalSpectrum (const ExperimentalSpectrum &other) | |
virtual | ~ExperimentalSpectrum () |
std::vector< double > | getMassList () const |
double | getSymetricMz (double mz) const |
compute the symmetric mass for debuggin purpose | |
double | getTargetMzSum () const |
double | getPrecursorMass () const |
std::vector< double > | getMassList (ExperimentalSpectrumDataPointType type) const |
QString | toString () const |
const pappso::QualifiedMassSpectrum & | getQualifiedMassSpectrum () const |
std::vector< ExperimentalSpectrumDataPoint >::const_reverse_iterator | reverseFindDiffMz (std::size_t start_position, const pappso::MzRange &targeted_mass_range) const |
find the peak for wich mass difference from rbegin corresponds to aaTheoMass Find if a peak back in the peak list has a mass difference that corresponds to the targeted mass | |
Private Member Functions | |
void | createSymetricPeakList () |
add symmetric peaks to the spectrum Create a SymetricPeakList that contain symmetric peaks and the information if a peak is the initial peak, the symmetric peak, or both if already exist. assuming fragment ion charge is 1 | |
void | createSymetricPeakList (double precursor_mass_error) |
std::vector< pappso::DataPoint >::const_iterator | findMz (double mz) |
find the correspondin mz in the mass spectrum (given the precision) | |
Private Attributes | |
pappso::QualifiedMassSpectrum | m_qualifiedMassSpectrum |
double | m_targetMzSum |
double | m_precursorMass |
pappso::PrecisionPtr | m_precisionPtr |
Definition at line 63 of file experimentalspectrum.h.
pappso::specglob::ExperimentalSpectrum::ExperimentalSpectrum | ( | const pappso::QualifiedMassSpectrum & | qmass_spectrum, |
pappso::PrecisionPtr | precision_ptr ) |
Default constructor
Definition at line 45 of file experimentalspectrum.cpp.
References createSymetricPeakList(), m_precisionPtr, and m_qualifiedMassSpectrum.
Referenced by ExperimentalSpectrum().
pappso::specglob::ExperimentalSpectrum::ExperimentalSpectrum | ( | const pappso::QualifiedMassSpectrum & | qmass_spectrum, |
pappso::PrecisionPtr | precision_ptr, | ||
double | precursor_mass_error ) |
specpeptidoms post-processing constructor
Definition at line 54 of file experimentalspectrum.cpp.
References createSymetricPeakList(), m_precisionPtr, and m_qualifiedMassSpectrum.
pappso::specglob::ExperimentalSpectrum::ExperimentalSpectrum | ( | const ExperimentalSpectrum & | other | ) |
Copy constructor
other | TODO |
Definition at line 64 of file experimentalspectrum.cpp.
References ExperimentalSpectrum(), m_precisionPtr, m_qualifiedMassSpectrum, and m_targetMzSum.
|
virtual |
|
private |
add symmetric peaks to the spectrum Create a SymetricPeakList that contain symmetric peaks and the information if a peak is the initial peak, the symmetric peak, or both if already exist. assuming fragment ion charge is 1
Definition at line 77 of file experimentalspectrum.cpp.
References createSymetricPeakList().
Referenced by ExperimentalSpectrum(), ExperimentalSpectrum(), and createSymetricPeakList().
|
private |
Definition at line 83 of file experimentalspectrum.cpp.
References pappso::a, pappso::b, pappso::specglob::both, findMz(), getSymetricMz(), m_precursorMass, m_qualifiedMassSpectrum, m_targetMzSum, pappso::MASSH2O(), pappso::MHPLUS(), pappso::MPROTIUM(), pappso::specglob::native, pappso::specglob::symmetric, and pappso::specglob::synthetic.
|
private |
find the correspondin mz in the mass spectrum (given the precision)
Definition at line 169 of file experimentalspectrum.cpp.
References pappso::findFirstEqualOrGreaterX(), pappso::MzRange::lower(), m_precisionPtr, m_qualifiedMassSpectrum, and pappso::MzRange::upper().
Referenced by createSymetricPeakList().
std::vector< double > pappso::specglob::ExperimentalSpectrum::getMassList | ( | ) | const |
Definition at line 195 of file experimentalspectrum.cpp.
References pappso::specglob::ExperimentalSpectrumDataPoint::peak_mz.
std::vector< double > pappso::specglob::ExperimentalSpectrum::getMassList | ( | ExperimentalSpectrumDataPointType | type | ) | const |
Definition at line 213 of file experimentalspectrum.cpp.
References pappso::specglob::ExperimentalSpectrumDataPoint::peak_mz, and pappso::specglob::ExperimentalSpectrumDataPoint::type.
double pappso::specglob::ExperimentalSpectrum::getPrecursorMass | ( | ) | const |
Definition at line 237 of file experimentalspectrum.cpp.
References m_precursorMass.
const pappso::QualifiedMassSpectrum & pappso::specglob::ExperimentalSpectrum::getQualifiedMassSpectrum | ( | ) | const |
Definition at line 284 of file experimentalspectrum.cpp.
References m_qualifiedMassSpectrum.
double pappso::specglob::ExperimentalSpectrum::getSymetricMz | ( | double | mz | ) | const |
compute the symmetric mass for debuggin purpose
Definition at line 207 of file experimentalspectrum.cpp.
References m_targetMzSum.
Referenced by createSymetricPeakList().
double pappso::specglob::ExperimentalSpectrum::getTargetMzSum | ( | ) | const |
Definition at line 189 of file experimentalspectrum.cpp.
References m_targetMzSum.
std::vector< ExperimentalSpectrumDataPoint >::const_reverse_iterator pappso::specglob::ExperimentalSpectrum::reverseFindDiffMz | ( | std::size_t | start_position, |
const pappso::MzRange & | targeted_mass_range ) const |
find the peak for wich mass difference from rbegin corresponds to aaTheoMass Find if a peak back in the peak list has a mass difference that corresponds to the targeted mass
start_position | reverse iterator on the reference peak to look for mass difference from |
targeted_mass_range | the mass difference to look forconst pappso::PeptideSp peptide_sp |
Definition at line 243 of file experimentalspectrum.cpp.
References pappso::MzRange::getMz(), pappso::MzRange::lower(), and pappso::MzRange::upper().
Referenced by pappso::specglob::SpectralAlignment::fillMatricesWithScores().
QString pappso::specglob::ExperimentalSpectrum::toString | ( | ) | const |
Definition at line 226 of file experimentalspectrum.cpp.
References pappso::specglob::ExperimentalSpectrumDataPoint::peak_mz, and pappso::specglob::ExperimentalSpectrumDataPoint::type.
|
private |
Definition at line 141 of file experimentalspectrum.h.
Referenced by ExperimentalSpectrum(), ExperimentalSpectrum(), ExperimentalSpectrum(), and findMz().
|
private |
Definition at line 140 of file experimentalspectrum.h.
Referenced by createSymetricPeakList(), and getPrecursorMass().
|
private |
Definition at line 138 of file experimentalspectrum.h.
Referenced by ExperimentalSpectrum(), ExperimentalSpectrum(), ExperimentalSpectrum(), createSymetricPeakList(), findMz(), and getQualifiedMassSpectrum().
|
private |
Definition at line 139 of file experimentalspectrum.h.
Referenced by ExperimentalSpectrum(), createSymetricPeakList(), getSymetricMz(), and getTargetMzSum().