libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::masschroq::PeptideBase Class Reference

#include <peptidebase.h>

Inheritance diagram for pappso::masschroq::PeptideBase:
pappso::masschroq::Peptide pappso::masschroq::PeptideLabel

Public Member Functions

 PeptideBase (const pappso::PeptideSp &peptide_sp)
virtual ~PeptideBase ()
virtual const pappso::PeptideSpgetPappsoPeptideSp () const
 get the peptide sequence
virtual void computeIsotopologues (double ni_min_abundance)
 compute possible isotopes for this molecule
virtual const pappso::PeptideNaturalIsotopeListgetPeptideNaturalIsotopeList () const
 get list of isotopes for this peptide needs computeIsotopologues before
virtual const std::vector< pappso::PeptideNaturalIsotopeAverageSp > & getPeptideNaturalIsotopeAverageSpList (pappso::PrecisionPtr precision, std::uint8_t charge, double ni_min_abundance)
 get possible and distinguishable masses of isotopes get list of distinguishable isotopes given the charge and mass precision

Protected Attributes

const pappso::PeptideSp msp_peptide
pappso::PeptideNaturalIsotopeListmpa_peptideNaturalIsotopeList = nullptr
std::map< std::uint8_t, std::vector< pappso::PeptideNaturalIsotopeAverageSp > > m_peptideNaturalIsotopeAverageSpListByCharge
double m_niMinAbundance = 0
QMutex m_mutex

Detailed Description

Todo
write docs

Definition at line 39 of file peptidebase.h.

Constructor & Destructor Documentation

◆ PeptideBase()

pappso::masschroq::PeptideBase::PeptideBase ( const pappso::PeptideSp & peptide_sp)

Default constructor

Definition at line 31 of file peptidebase.cpp.

32 : msp_peptide(peptide_sp)
33{
34}
const pappso::PeptideSp msp_peptide
Definition peptidebase.h:88

References msp_peptide.

Referenced by pappso::masschroq::Peptide::Peptide(), pappso::masschroq::Peptide::Peptide(), and pappso::masschroq::PeptideLabel::PeptideLabel().

◆ ~PeptideBase()

pappso::masschroq::PeptideBase::~PeptideBase ( )
virtual

Destructor

Definition at line 36 of file peptidebase.cpp.

37{
38}

Member Function Documentation

◆ computeIsotopologues()

void pappso::masschroq::PeptideBase::computeIsotopologues ( double ni_min_abundance)
virtual

compute possible isotopes for this molecule

Parameters
ni_min_abundancethe minimal isotop abundance proportion to cover (0.9 will compute isotopes to reach at least 90% of its theoretical abundance

Reimplemented in pappso::masschroq::Peptide.

Definition at line 48 of file peptidebase.cpp.

49{
50 qDebug();
51 if(ni_min_abundance > 0)
52 {
53 qDebug() << "if (_minimum_isotope_abundance > 0)";
54 mpa_peptideNaturalIsotopeList = new pappso::PeptideNaturalIsotopeList(msp_peptide, 0.001);
55 }
56 qDebug();
57}
pappso::PeptideNaturalIsotopeList * mpa_peptideNaturalIsotopeList
Definition peptidebase.h:89

References mpa_peptideNaturalIsotopeList, and msp_peptide.

Referenced by pappso::masschroq::Peptide::computeIsotopologues().

◆ getPappsoPeptideSp()

const pappso::PeptideSp & pappso::masschroq::PeptideBase::getPappsoPeptideSp ( ) const
virtual

◆ getPeptideNaturalIsotopeAverageSpList()

const std::vector< pappso::PeptideNaturalIsotopeAverageSp > & pappso::masschroq::PeptideBase::getPeptideNaturalIsotopeAverageSpList ( pappso::PrecisionPtr precision,
std::uint8_t charge,
double ni_min_abundance )
virtual

get possible and distinguishable masses of isotopes get list of distinguishable isotopes given the charge and mass precision

Parameters
precisionmass spectrometer MS1 precision
chargenumber of H+
ni_min_abundanceselect isotopes to regroup
Returns
std::vector<pappso::PeptideNaturalIsotopeAverageSp> list

Definition at line 67 of file peptidebase.cpp.

69{
70
71 QMutexLocker lock(&m_mutex);
72 if(m_niMinAbundance == ni_min_abundance)
73 {
74 }
75 else
76 {
78 m_niMinAbundance = ni_min_abundance;
79 }
80
83 {
84 if(it->second.size() == 0)
85 {
86 it->second =
87 mpa_peptideNaturalIsotopeList->getByIntensityRatio(charge, precision, ni_min_abundance);
88 }
89
90 return it->second;
91 }
92 else
93 {
95 {charge,
96 mpa_peptideNaturalIsotopeList->getByIntensityRatio(charge, precision, ni_min_abundance)});
97
98 return it_insert.first->second;
99 }
100}
std::map< std::uint8_t, std::vector< pappso::PeptideNaturalIsotopeAverageSp > > m_peptideNaturalIsotopeAverageSpListByCharge
Definition peptidebase.h:91

References m_mutex, m_niMinAbundance, m_peptideNaturalIsotopeAverageSpListByCharge, and mpa_peptideNaturalIsotopeList.

Referenced by pappso::masschroq::PeptideMeasurementsBase::generateMeasurementsForIsotopeList().

◆ getPeptideNaturalIsotopeList()

const pappso::PeptideNaturalIsotopeList * pappso::masschroq::PeptideBase::getPeptideNaturalIsotopeList ( ) const
virtual

get list of isotopes for this peptide needs computeIsotopologues before

Returns
pappso::PeptideNaturalIsotopeList pointer to all possible isotopes (C13, H2, N15...)

Definition at line 61 of file peptidebase.cpp.

62{
64}

References mpa_peptideNaturalIsotopeList.

Member Data Documentation

◆ m_mutex

QMutex pappso::masschroq::PeptideBase::m_mutex
protected

Definition at line 93 of file peptidebase.h.

Referenced by getPeptideNaturalIsotopeAverageSpList().

◆ m_niMinAbundance

double pappso::masschroq::PeptideBase::m_niMinAbundance = 0
protected

Definition at line 92 of file peptidebase.h.

Referenced by getPeptideNaturalIsotopeAverageSpList().

◆ m_peptideNaturalIsotopeAverageSpListByCharge

std::map<std::uint8_t, std::vector<pappso::PeptideNaturalIsotopeAverageSp> > pappso::masschroq::PeptideBase::m_peptideNaturalIsotopeAverageSpListByCharge
protected

Definition at line 91 of file peptidebase.h.

Referenced by getPeptideNaturalIsotopeAverageSpList().

◆ mpa_peptideNaturalIsotopeList

◆ msp_peptide

const pappso::PeptideSp pappso::masschroq::PeptideBase::msp_peptide
protected

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