32 : msp_peptide(peptide_sp)
51 if(ni_min_abundance > 0)
53 qDebug() <<
"if (_minimum_isotope_abundance > 0)";
54 mpa_peptideNaturalIsotopeList =
64 return mpa_peptideNaturalIsotopeList;
67const std::vector<pappso::PeptideNaturalIsotopeAverageSp> &
72 QMutexLocker lock(&m_mutex);
73 if(m_niMinAbundance == ni_min_abundance)
78 m_peptideNaturalIsotopeAverageSpListByCharge.clear();
79 m_niMinAbundance = ni_min_abundance;
82 auto it = m_peptideNaturalIsotopeAverageSpListByCharge.find(charge);
83 if(it != m_peptideNaturalIsotopeAverageSpListByCharge.end())
85 if(it->second.size() == 0)
87 it->second = mpa_peptideNaturalIsotopeList->getByIntensityRatio(
88 charge, precision, ni_min_abundance);
95 auto it_insert = m_peptideNaturalIsotopeAverageSpListByCharge.insert(
97 mpa_peptideNaturalIsotopeList->getByIntensityRatio(
98 charge, precision, ni_min_abundance)});
100 return it_insert.first->second;
virtual const pappso::PeptideNaturalIsotopeList * getPeptideNaturalIsotopeList() const
get list of isotopes for this peptide needs computeIsotopologues before
virtual void computeIsotopologues(double ni_min_abundance)
compute possible isotopes for this molecule
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 ch...
virtual const pappso::PeptideSp & getPappsoPeptideSp() const
get the peptide sequence
PeptideBase(const pappso::PeptideSp &peptide_sp)
std::shared_ptr< const Peptide > PeptideSp
peptide model base in masschroqlite