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

◆ ~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)";
56 }
57 qDebug();
58}
pappso::PeptideNaturalIsotopeList * mpa_peptideNaturalIsotopeList
Definition peptidebase.h:89

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

◆ getPappsoPeptideSp()

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

get the peptide sequence

Returns
pappso::PeptideSp const reference

Definition at line 42 of file peptidebase.cpp.

43{
44 return msp_peptide;
45}

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

◆ 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 {
88 charge, precision, ni_min_abundance);
89 }
90
91 return it->second;
92 }
93 else
94 {
96 {charge,
98 charge, precision, ni_min_abundance)});
99
100 return it_insert.first->second;
101 }
102}
std::vector< PeptideNaturalIsotopeAverageSp > getByIntensityRatio(unsigned int charge, PrecisionPtr precision, pappso_double minimum_isotope_pattern_ratio) const
get the list of natural isotopes representing at least a minimum ratio of the whole isotope pattern
std::map< std::uint8_t, std::vector< pappso::PeptideNaturalIsotopeAverageSp > > m_peptideNaturalIsotopeAverageSpListByCharge
Definition peptidebase.h:91

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}

Member Data Documentation

◆ m_mutex

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

Definition at line 93 of file peptidebase.h.

◆ m_niMinAbundance

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

Definition at line 92 of file peptidebase.h.

◆ 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.

◆ mpa_peptideNaturalIsotopeList

pappso::PeptideNaturalIsotopeList* pappso::masschroq::PeptideBase::mpa_peptideNaturalIsotopeList = nullptr
protected

Definition at line 89 of file peptidebase.h.

◆ msp_peptide

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

Definition at line 88 of file peptidebase.h.


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