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)";
55 new pappso::PeptideNaturalIsotopeList(msp_peptide, 0.001);
56 }
57 qDebug();
58}
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 68 of file peptidebase.cpp.

70{
71
72 QMutexLocker lock(&m_mutex);
73 if(m_niMinAbundance == ni_min_abundance)
74 {
75 }
76 else
77 {
79 m_niMinAbundance = ni_min_abundance;
80 }
81
84 {
85 if(it->second.size() == 0)
86 {
87 it->second = mpa_peptideNaturalIsotopeList->getByIntensityRatio(
88 charge, precision, ni_min_abundance);
89 }
90
91 return it->second;
92 }
93 else
94 {
96 {charge,
97 mpa_peptideNaturalIsotopeList->getByIntensityRatio(
98 charge, precision, ni_min_abundance)});
99
100 return it_insert.first->second;
101 }
102}
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 62 of file peptidebase.cpp.

63{
65}

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: