|
libpappsomspp
Library for mass spectrometry
|
collection of integer code for each amino acid 0 => null 1 to 20 => amino acid sorted by there mass (lower to higher). Leucine is replaced by Isoleucine More...
#include <aacode.h>
Public Member Functions | |
| AaCode () | |
| AaCode (const AaCode &other) | |
| ~AaCode () | |
| uint8_t | getAaCode (char aa_letter) const |
| get the integer code of an amino acid with the one letter code More... | |
| uint8_t | getAaCodeByMass (double mass, PrecisionPtr precision) const |
| get the integer code of an amino acid given a mass and a precision More... | |
| const Aa & | getAa (char aa_letter) const |
| get the Aa object from the one letter code More... | |
| const Aa & | getAa (uint8_t aa_code) const |
| get the Aa object from the amino acid integer code More... | |
| double | getMass (uint8_t aa_code) const |
| get the mass of the amino acid given its integer code the amino acid can bear some modification (if addAaModification function was used) More... | |
| double | getMass (char aa_letter) const |
| void | addAaModification (char aa_letter, AaModificationP aaModification) |
| add a modification on an amino acid for example carbamido on C More... | |
| std::size_t | getSize () const |
| const std::vector< Aa > & | getAaCollection () const |
Private Member Functions | |
| void | updateNumbers () |
| give a number (the code) to each amino acid sorted by mass More... | |
| void | updateMass () |
| update mass cache More... | |
Private Attributes | |
| std::vector< uint8_t > | m_asciiTable |
| std::vector< Aa > | m_aaCollection |
| std::vector< double > | m_massCollection |
collection of integer code for each amino acid 0 => null 1 to 20 => amino acid sorted by there mass (lower to higher). Leucine is replaced by Isoleucine
| AaCode::AaCode | ( | ) |
Default constructor
Definition at line 34 of file aacode.cpp.
References m_aaCollection, m_asciiTable, and updateNumbers().
| pappso::AaCode::AaCode | ( | const AaCode & | other | ) |
Default copy constructor
Definition at line 61 of file aacode.cpp.
References m_aaCollection, and m_asciiTable.
| AaCode::~AaCode | ( | ) |
| void pappso::AaCode::addAaModification | ( | char | aa_letter, |
| pappso::AaModificationP | aaModification | ||
| ) |
add a modification on an amino acid for example carbamido on C
Definition at line 124 of file aacode.cpp.
Referenced by pappso::cbor::psm::PsmSpecPeptidOms::PsmSpecPeptidOms().
| const pappso::Aa & pappso::AaCode::getAa | ( | char | aa_letter | ) | const |
get the Aa object from the one letter code
Definition at line 89 of file aacode.cpp.
| const pappso::Aa & pappso::AaCode::getAa | ( | uint8_t | aa_code | ) | const |
get the Aa object from the amino acid integer code
Definition at line 107 of file aacode.cpp.
| uint8_t pappso::AaCode::getAaCode | ( | char | aa_letter | ) | const |
get the integer code of an amino acid with the one letter code
Definition at line 81 of file aacode.cpp.
Referenced by pappso::ProteinIntegerCode::ProteinIntegerCode().
| uint8_t pappso::AaCode::getAaCodeByMass | ( | double | mass, |
| pappso::PrecisionPtr | precision | ||
| ) | const |
get the integer code of an amino acid given a mass and a precision
Definition at line 191 of file aacode.cpp.
References pappso::PrecisionBase::delta().
| const std::vector< Aa > & pappso::AaCode::getAaCollection | ( | ) | const |
Definition at line 212 of file aacode.cpp.
| double pappso::AaCode::getMass | ( | char | aa_letter | ) | const |
Definition at line 185 of file aacode.cpp.
| double pappso::AaCode::getMass | ( | uint8_t | aa_code | ) | const |
get the mass of the amino acid given its integer code the amino acid can bear some modification (if addAaModification function was used)
Definition at line 179 of file aacode.cpp.
| std::size_t pappso::AaCode::getSize | ( | ) | const |
Definition at line 74 of file aacode.cpp.
Referenced by pappso::AaStringCodec::AaStringCodec(), pappso::AaStringCodeMassMatching::AaStringCodeMassMatching(), and pappso::specpeptidoms::SpOMSSpectrum::SpOMSSpectrum().
|
private |
update mass cache
Definition at line 167 of file aacode.cpp.
|
private |
give a number (the code) to each amino acid sorted by mass
Definition at line 147 of file aacode.cpp.
Referenced by AaCode().
|
private |
|
private |
|
private |