|
libpappsomspp
Library for mass spectrometry
|
#include <peptide.h>
Public Member Functions | |
| Peptide (const QString &pepstr) | |
| virtual | ~Peptide () |
| Peptide (const Peptide &peptide) | |
| Peptide (Peptide &&toCopy) | |
| PeptideSp | makePeptideSp () const |
| NoConstPeptideSp | makeNoConstPeptideSp () const |
| void | addAaModification (AaModificationP aaModification, unsigned int position) |
| adds a modification to amino acid sequence | |
| void | addAaModificationOnAllAminoAcid (AaModificationP aaModification, Enums::AminoAcidChar amino_acid) |
| adds a modification to all amino acid of the sequence | |
| std::vector< Aa >::iterator | begin () |
| std::vector< Aa >::iterator | end () |
| std::vector< Aa >::const_iterator | begin () const |
| std::vector< Aa >::const_iterator | end () const |
| std::vector< Aa >::const_reverse_iterator | rbegin () const |
| std::vector< Aa >::const_reverse_iterator | rend () const |
| Aa & | getAa (unsigned int position) |
| const Aa & | getConstAa (unsigned int position) const |
| pappso_double | getMass () |
| pappso_double | getMass () const override |
| virtual int | getNumberOfAtom (Enums::AtomIsotopeSurvey atom) const override |
| get the number of atom C, O, N, H in the molecule | |
| virtual int | getNumberOfIsotope (Enums::Isotope isotope) const override |
| get the number of isotopes C13, H2, O17, O18, N15, S33, S34, S36 in the molecule | |
| const QString | getSequence () const override |
| print amino acid sequence without modifications | |
| unsigned int | size () const override |
| unsigned int | getNumberOfModification (AaModificationP mod) const |
| count modification occurence | |
| unsigned int | countModificationOnAa (AaModificationP mod, const std::vector< char > &aa_list) const |
| count modification occurence | |
| void | replaceAaModification (AaModificationP oldmod, AaModificationP newmod) |
| replaces all occurences of a modification by a new one | |
| void | replaceAaModificationOnAminoAcid (Enums::AminoAcidChar aa, pappso::AaModificationP oldmod, pappso::AaModificationP newmod) |
| replaces all occurences of a modification by a new one on a specific amino acid | |
| void | removeAaModification (AaModificationP mod) |
| removes all occurences of a modification | |
| std::vector< unsigned int > | getModificationPositionList (AaModificationP mod) const |
| get modification positions | |
| std::vector< unsigned int > | getModificationPositionList (AaModificationP mod, const std::vector< char > &aa_list) const |
| get modification positions | |
| std::vector< unsigned int > | getAaPositionList (char aa) const |
| get positions of one amino acid in peptide | |
| std::vector< unsigned int > | getAaPositionList (std::list< char > list_aa) const |
| const QString | toString () const |
| print modification except internal modifications | |
| const QString | toAbsoluteString () const |
| print all modifications | |
| const QString | getLiAbsoluteString () const |
| get all sequence string with modifications and converting Leucine to Isoleucine | |
| void | setCleavageNterModification (AaModificationP mod) |
| void | setCleavageCterModification (AaModificationP mod) |
| AaModificationP | getCleavageNterModification () const |
| AaModificationP | getCleavageCterModification () const |
| void | setNterModification (AaModificationP mod) |
| void | setCterModification (AaModificationP mod) |
| AaModificationP | getNterModification () const |
| AaModificationP | getCterModification () const |
| void | setGlobalModification (Enums::Isotope isotope_kind) |
| apply 100% isotope replacement | |
| void | rotate () |
| void | reverse () |
| virtual bool | isPalindrome () const override |
| tells if the peptide sequence is a palindrome | |
| void | replaceLeucineIsoleucine () |
| void | removeNterAminoAcid () |
| void | removeCterAminoAcid () |
| QString | toProForma () const |
| get the peptide model in ProForma notation https://github.com/HUPO-PSI/ProForma/blob/master/README.md | |
| virtual const ChemicalFormula | getChemicalFormula () const override |
| virtual const ChemicalFormula | getChemicalFormulaCharge (unsigned int charge) const override |
Public Member Functions inherited from pappso::PeptideInterface | |
| virtual const QString | getSequenceLi () const |
| amino acid sequence without modification where L are replaced by I | |
| virtual const QString | getName () const |
| virtual const QString | getFormula (unsigned int charge) const final |
| virtual bool | matchPeak (PrecisionPtr precision, pappso_double peak_mz, unsigned int charge) const final |
| tells if the peptide m/z matches a given experimental mass | |
Public Member Functions inherited from pappso::Ion | |
| Ion () | |
| ~Ion () | |
| virtual pappso_double | getMz (unsigned int charge) const final |
Protected Attributes | |
| std::vector< Aa > | m_aaVec |
| bool | m_fullC13 = false |
| bool | m_fullN15 = false |
| bool | m_fullH2 = false |
| double | m_proxyMass = -1 |
| AaModificationP | m_cleavageNterMod = nullptr |
| AaModificationP | m_cleavageCterMod = nullptr |
| AaModificationP | m_NterMod = nullptr |
| AaModificationP | m_CterMod = nullptr |
Friends | |
| class | PeptideProFormaParser |
| bool | operator< (const Peptide &l, const Peptide &r) |
| bool | operator== (const Peptide &l, const Peptide &r) |
| pappso::Peptide::Peptide | ( | const QString & | pepstr | ) |
Definition at line 104 of file peptide.cpp.
References pappso::AaModification::getInstance(), getMass(), m_aaVec, m_cleavageCterMod, m_cleavageNterMod, m_CterMod, and m_NterMod.
|
virtual |
Definition at line 124 of file peptide.cpp.
| pappso::Peptide::Peptide | ( | const Peptide & | peptide | ) |
Definition at line 128 of file peptide.cpp.
| pappso::Peptide::Peptide | ( | Peptide && | toCopy | ) |
Definition at line 143 of file peptide.cpp.
| void pappso::Peptide::addAaModification | ( | AaModificationP | aaModification, |
| unsigned int | position | ||
| ) |
adds a modification to amino acid sequence
| aaModification | pointer on modification to add |
| position | position in the amino acid sequence (starts at 0) |
Definition at line 220 of file peptide.cpp.
References getMass(), m_aaVec, m_proxyMass, and size().
Referenced by pappso::PeptideStrParser::parseStringToPeptide(), pappso::PeptideBuilder::setPeptide(), pappso::PeptideFixedModificationBuilder::setPeptideSp(), and pappso::PeptideVariableModificationBuilder::setPeptideSp().
| void pappso::Peptide::addAaModificationOnAllAminoAcid | ( | AaModificationP | aaModification, |
| Enums::AminoAcidChar | amino_acid | ||
| ) |
adds a modification to all amino acid of the sequence
| aaModification | pointer on modification to add |
| Enums::AminoAcidChar | amino_acid to apply the modification |
Definition at line 235 of file peptide.cpp.
References getMass(), and m_proxyMass.
Referenced by pappso::PeptideProFormaParser::parseStringToPeptide().
| std::vector< Aa >::iterator pappso::Peptide::begin | ( | ) |
Definition at line 171 of file peptide.cpp.
References m_aaVec.
Referenced by pappso::PeptideRawFragmentMasses::PeptideRawFragmentMasses().
| std::vector< Aa >::const_iterator pappso::Peptide::begin | ( | ) | const |
Definition at line 183 of file peptide.cpp.
References m_aaVec.
| unsigned int pappso::Peptide::countModificationOnAa | ( | AaModificationP | mod, |
| const std::vector< char > & | aa_list | ||
| ) | const |
count modification occurence
| mod | modification to look for |
| aa_list | amino acid list targets (one letter code) |
Definition at line 404 of file peptide.cpp.
References m_aaVec.
| std::vector< Aa >::iterator pappso::Peptide::end | ( | ) |
Definition at line 177 of file peptide.cpp.
References m_aaVec.
Referenced by pappso::PeptideRawFragmentMasses::PeptideRawFragmentMasses().
| std::vector< Aa >::const_iterator pappso::Peptide::end | ( | ) | const |
| Aa & pappso::Peptide::getAa | ( | unsigned int | position | ) |
Definition at line 667 of file peptide.cpp.
References m_aaVec.
Referenced by pappso::PeptideVariableModificationReplacement::replaceModificationsAtPosition().
| std::vector< unsigned int > pappso::Peptide::getAaPositionList | ( | char | aa | ) | const |
get positions of one amino acid in peptide
| aa | the one letter code of the amino acid |
Definition at line 514 of file peptide.cpp.
References m_aaVec.
Referenced by pappso::PeptideBuilder::setPeptide().
| std::vector< unsigned int > pappso::Peptide::getAaPositionList | ( | std::list< char > | list_aa | ) | const |
Definition at line 531 of file peptide.cpp.
References m_aaVec.
|
overridevirtual |
Reimplemented from pappso::AtomNumberInterface.
Definition at line 785 of file peptide.cpp.
Referenced by getMass().
|
overridevirtual |
Reimplemented from pappso::PeptideInterface.
Definition at line 792 of file peptide.cpp.
References pappso::Enums::C13, pappso::PeptideInterface::getChemicalFormulaCharge(), pappso::Enums::H2, pappso::Enums::N15, pappso::ChemicalFormula::setFullIsotope(), and pappso::ChemicalFormula::toString().
| AaModificationP pappso::Peptide::getCleavageCterModification | ( | ) | const |
Definition at line 590 of file peptide.cpp.
References m_cleavageCterMod.
Referenced by pappso::specglob::PeptideModel::PeptideModel(), and pappso::PeptideRawFragmentMasses::PeptideRawFragmentMasses().
| AaModificationP pappso::Peptide::getCleavageNterModification | ( | ) | const |
Definition at line 585 of file peptide.cpp.
References m_cleavageNterMod.
Referenced by pappso::specglob::PeptideModel::PeptideModel(), and pappso::PeptideRawFragmentMasses::PeptideRawFragmentMasses().
| const Aa & pappso::Peptide::getConstAa | ( | unsigned int | position | ) | const |
Definition at line 676 of file peptide.cpp.
References m_aaVec.
Referenced by pappso::PeptideModificatorBase::getModificationPositionList().
| AaModificationP pappso::Peptide::getCterModification | ( | ) | const |
Definition at line 627 of file peptide.cpp.
References m_CterMod.
Referenced by pappso::PeptideRawFragmentMasses::PeptideRawFragmentMasses().
| const QString pappso::Peptide::getLiAbsoluteString | ( | ) | const |
get all sequence string with modifications and converting Leucine to Isoleucine
Definition at line 295 of file peptide.cpp.
References m_aaVec.
| pappso_double pappso::Peptide::getMass | ( | ) |
Definition at line 322 of file peptide.cpp.
References getChemicalFormula(), pappso::AaModification::getMass(), pappso::ChemicalFormula::getMass(), m_aaVec, m_cleavageCterMod, m_cleavageNterMod, m_CterMod, m_fullC13, m_fullH2, m_fullN15, m_NterMod, and m_proxyMass.
Referenced by Peptide(), addAaModification(), addAaModificationOnAllAminoAcid(), pappso::Protein::getMass(), pappso::PeptideProFormaParser::parseStringToPeptide(), removeAaModification(), removeCterAminoAcid(), removeNterAminoAcid(), replaceAaModification(), replaceAaModificationOnAminoAcid(), setCleavageCterModification(), setCleavageNterModification(), setCterModification(), and setNterModification().
|
overridevirtual |
| std::vector< unsigned int > pappso::Peptide::getModificationPositionList | ( | AaModificationP | mod | ) | const |
get modification positions
| mod | modification to look for |
Definition at line 469 of file peptide.cpp.
References m_aaVec.
| std::vector< unsigned int > pappso::Peptide::getModificationPositionList | ( | AaModificationP | mod, |
| const std::vector< char > & | aa_list | ||
| ) | const |
get modification positions
| mod | modification to look for |
| aa_list | amino acid list targets (one letter code) |
Definition at line 490 of file peptide.cpp.
References m_aaVec.
| AaModificationP pappso::Peptide::getNterModification | ( | ) | const |
Definition at line 633 of file peptide.cpp.
References m_NterMod.
Referenced by pappso::PeptideRawFragmentMasses::PeptideRawFragmentMasses().
|
overridevirtual |
get the number of atom C, O, N, H in the molecule
Implements pappso::AtomNumberInterface.
Definition at line 350 of file peptide.cpp.
References pappso::AaModification::getNumberOfAtom(), m_aaVec, m_cleavageCterMod, m_cleavageNterMod, m_CterMod, and m_NterMod.
|
overridevirtual |
get the number of isotopes C13, H2, O17, O18, N15, S33, S34, S36 in the molecule
Implements pappso::AtomNumberInterface.
Definition at line 370 of file peptide.cpp.
References pappso::AaModification::getNumberOfIsotope(), m_aaVec, m_cleavageCterMod, m_cleavageNterMod, m_CterMod, and m_NterMod.
| unsigned int pappso::Peptide::getNumberOfModification | ( | AaModificationP | mod | ) | const |
count modification occurence
| mod | modification to look for |
Definition at line 390 of file peptide.cpp.
References m_aaVec.
|
overridevirtual |
print amino acid sequence without modifications
Implements pappso::PeptideInterface.
Definition at line 252 of file peptide.cpp.
References m_aaVec.
Referenced by pappso::XtandemHyperscoreBis::computeXtandemHyperscore(), and pappso::PeptideModificatorBase::getModificationPositionList().
|
overridevirtual |
tells if the peptide sequence is a palindrome
Implements pappso::PeptideInterface.
Definition at line 652 of file peptide.cpp.
| NoConstPeptideSp pappso::Peptide::makeNoConstPeptideSp | ( | ) | const |
Definition at line 164 of file peptide.cpp.
Referenced by pappso::PeptideProFormaParser::parseNoConstString(), and pappso::PeptideStrParser::parseNoConstString().
| PeptideSp pappso::Peptide::makePeptideSp | ( | ) | const |
Definition at line 158 of file peptide.cpp.
Referenced by pappso::PeptideProFormaParser::parseString(), pappso::PeptideStrParser::parseString(), pappso::PeptideBuilder::setPeptide(), pappso::PeptideModificatorPipeline::setPeptide(), pappso::PeptideFixedModificationBuilder::setPeptideSp(), pappso::PeptideVariableModificationBuilder::setPeptideSp(), and pappso::PeptideVariableModificationReplacement::setPeptideSp().
| std::vector< Aa >::const_reverse_iterator pappso::Peptide::rbegin | ( | ) | const |
Definition at line 195 of file peptide.cpp.
References m_aaVec.
Referenced by pappso::PeptideRawFragmentMasses::PeptideRawFragmentMasses().
| void pappso::Peptide::removeAaModification | ( | AaModificationP | mod | ) |
removes all occurences of a modification
| mod | modification to remove |
Definition at line 455 of file peptide.cpp.
References getMass(), m_aaVec, m_proxyMass, and toAbsoluteString().
| void pappso::Peptide::removeCterAminoAcid | ( | ) |
Definition at line 717 of file peptide.cpp.
References getMass(), m_aaVec, and m_proxyMass.
| void pappso::Peptide::removeNterAminoAcid | ( | ) |
Definition at line 700 of file peptide.cpp.
References getMass(), m_aaVec, and m_proxyMass.
| std::vector< Aa >::const_reverse_iterator pappso::Peptide::rend | ( | ) | const |
Definition at line 201 of file peptide.cpp.
References m_aaVec.
Referenced by pappso::PeptideRawFragmentMasses::PeptideRawFragmentMasses().
| void pappso::Peptide::replaceAaModification | ( | AaModificationP | oldmod, |
| AaModificationP | newmod | ||
| ) |
replaces all occurences of a modification by a new one
| oldmod | modification to change |
| newmod | new modification |
Definition at line 421 of file peptide.cpp.
References getMass(), m_aaVec, and m_proxyMass.
| void pappso::Peptide::replaceAaModificationOnAminoAcid | ( | Enums::AminoAcidChar | aa, |
| pappso::AaModificationP | oldmod, | ||
| pappso::AaModificationP | newmod | ||
| ) |
replaces all occurences of a modification by a new one on a specific amino acid
| aa | the amino acid to modify |
| oldmod | modification to change |
| newmod | new modification |
Definition at line 436 of file peptide.cpp.
References getMass(), m_aaVec, and m_proxyMass.
| void pappso::Peptide::replaceLeucineIsoleucine | ( | ) |
Definition at line 687 of file peptide.cpp.
References m_aaVec.
| void pappso::Peptide::reverse | ( | ) |
Definition at line 645 of file peptide.cpp.
References m_aaVec.
| void pappso::Peptide::rotate | ( | ) |
| void pappso::Peptide::setCleavageCterModification | ( | AaModificationP | mod | ) |
Definition at line 568 of file peptide.cpp.
References pappso::AaModification::getAccession(), getMass(), m_cleavageNterMod, and m_proxyMass.
Referenced by pappso::PeptideStrParser::parseStringToPeptide().
| void pappso::Peptide::setCleavageNterModification | ( | AaModificationP | mod | ) |
Definition at line 552 of file peptide.cpp.
References pappso::AaModification::getAccession(), getMass(), m_cleavageNterMod, and m_proxyMass.
Referenced by pappso::PeptideStrParser::parseStringToPeptide().
| void pappso::Peptide::setCterModification | ( | AaModificationP | mod | ) |
Definition at line 611 of file peptide.cpp.
References pappso::AaModification::getAccession(), getMass(), m_CterMod, and m_proxyMass.
Referenced by pappso::PeptideProFormaParser::parseStringToPeptide().
| void pappso::Peptide::setGlobalModification | ( | Enums::Isotope | isotope_kind | ) |
apply 100% isotope replacement
Definition at line 773 of file peptide.cpp.
References pappso::Enums::C13, pappso::Enums::H2, m_fullC13, m_fullH2, m_fullN15, and pappso::Enums::N15.
Referenced by pappso::PeptideProFormaParser::parseStringToPeptide().
| void pappso::Peptide::setNterModification | ( | AaModificationP | mod | ) |
Definition at line 596 of file peptide.cpp.
References pappso::AaModification::getAccession(), getMass(), m_NterMod, and m_proxyMass.
Referenced by pappso::PeptideProFormaParser::parseStringToPeptide().
|
overridevirtual |
Implements pappso::PeptideInterface.
Definition at line 215 of file peptide.cpp.
References m_aaVec.
Referenced by addAaModification(), isPalindrome(), and pappso::PeptideFixedModificationBuilder::setPeptideSp().
| const QString pappso::Peptide::toAbsoluteString | ( | ) | const |
print all modifications
Definition at line 264 of file peptide.cpp.
References pappso::AaModification::getAccession(), m_aaVec, m_cleavageCterMod, m_cleavageNterMod, m_CterMod, and m_NterMod.
Referenced by removeAaModification().
| QString pappso::Peptide::toProForma | ( | ) | const |
get the peptide model in ProForma notation https://github.com/HUPO-PSI/ProForma/blob/master/README.md
Definition at line 734 of file peptide.cpp.
References pappso::AaModification::getAccession(), m_aaVec, m_CterMod, m_fullC13, m_fullH2, m_fullN15, and m_NterMod.
| const QString pappso::Peptide::toString | ( | ) | const |
print modification except internal modifications
Definition at line 309 of file peptide.cpp.
References m_aaVec.
Definition at line 44 of file peptide.cpp.
Definition at line 51 of file peptide.cpp.
|
friend |
|
protected |
Definition at line 254 of file peptide.h.
Referenced by Peptide(), addAaModification(), begin(), begin(), countModificationOnAa(), end(), end(), getAa(), getAaPositionList(), getAaPositionList(), getConstAa(), getLiAbsoluteString(), getMass(), getModificationPositionList(), getModificationPositionList(), getNumberOfAtom(), getNumberOfIsotope(), getNumberOfModification(), getSequence(), isPalindrome(), pappso::PeptideProFormaParser::parseStringToPeptide(), rbegin(), removeAaModification(), removeCterAminoAcid(), removeNterAminoAcid(), rend(), replaceAaModification(), replaceAaModificationOnAminoAcid(), replaceLeucineIsoleucine(), reverse(), rotate(), size(), toAbsoluteString(), toProForma(), and toString().
|
protected |
Definition at line 262 of file peptide.h.
Referenced by Peptide(), getCleavageCterModification(), getMass(), getNumberOfAtom(), getNumberOfIsotope(), and toAbsoluteString().
|
protected |
Definition at line 260 of file peptide.h.
Referenced by Peptide(), getCleavageNterModification(), getMass(), getNumberOfAtom(), getNumberOfIsotope(), setCleavageCterModification(), setCleavageNterModification(), and toAbsoluteString().
|
protected |
Definition at line 264 of file peptide.h.
Referenced by Peptide(), getCterModification(), getMass(), getNumberOfAtom(), getNumberOfIsotope(), setCterModification(), toAbsoluteString(), and toProForma().
|
protected |
Definition at line 255 of file peptide.h.
Referenced by getMass(), setGlobalModification(), and toProForma().
|
protected |
Definition at line 257 of file peptide.h.
Referenced by getMass(), setGlobalModification(), and toProForma().
|
protected |
Definition at line 256 of file peptide.h.
Referenced by getMass(), setGlobalModification(), and toProForma().
|
protected |
Definition at line 263 of file peptide.h.
Referenced by Peptide(), getMass(), getNterModification(), getNumberOfAtom(), getNumberOfIsotope(), setNterModification(), toAbsoluteString(), and toProForma().
|
protected |
Definition at line 258 of file peptide.h.
Referenced by addAaModification(), addAaModificationOnAllAminoAcid(), getMass(), getMass(), pappso::PeptideProFormaParser::parseStringToPeptide(), removeAaModification(), removeCterAminoAcid(), removeNterAminoAcid(), replaceAaModification(), replaceAaModificationOnAminoAcid(), setCleavageCterModification(), setCleavageNterModification(), setCterModification(), and setNterModification().