|
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 | |
| uint8_t | getAaCode (pappso::Enums::AminoAcidChar aa) const |
| get the integer code of an amino acid enum | |
| uint8_t | getAaCodeByMass (double mass, PrecisionPtr precision) const |
| get the integer code of an amino acid given a mass and a precision | |
| const Aa & | getAa (char aa_letter) const |
| get the Aa object from the one letter code | |
| const Aa & | getAa (uint8_t aa_code) const |
| get the Aa object from the amino acid integer code | |
| 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) | |
| 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 | |
| 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 | |
| void | updateMass () |
| update mass cache | |
Private Attributes | |
| std::vector< uint8_t > | m_asciiTable |
| std::vector< Aa > | m_aaCollection |
| std::vector< double > | m_massCollection |
| pappso::Aa | m_leucine = Aa('L') |
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 168 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 132 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 151 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(), and pappso::specpeptidoms::SpOMSProtein::SpOMSProtein().
| uint8_t pappso::AaCode::getAaCode | ( | pappso::Enums::AminoAcidChar | aa | ) | const |
get the integer code of an amino acid enum
Definition at line 106 of file aacode.cpp.
| 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 244 of file aacode.cpp.
References pappso::PrecisionBase::delta().
| const std::vector< Aa > & pappso::AaCode::getAaCollection | ( | ) | const |
Definition at line 265 of file aacode.cpp.
| double pappso::AaCode::getMass | ( | char | aa_letter | ) | const |
Definition at line 229 of file aacode.cpp.
References pappso::PappsoException::qwhat().
| 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 223 of file aacode.cpp.
Referenced by pappso::specpeptidoms::SpOMSProtein::SpOMSProtein(), and pappso::specpeptidoms::SemiGlobalAlignment::getPotentialMassErrors().
| std::size_t pappso::AaCode::getSize | ( | ) | const |
Definition at line 74 of file aacode.cpp.
Referenced by pappso::AaStringCodec::AaStringCodec(), pappso::AaStringCodeMassMatching::AaStringCodeMassMatching(), pappso::AaStringCodeMassMatching::AaStringCodeMassMatching(), pappso::specpeptidoms::SpOMSSpectrum::SpOMSSpectrum(), and pappso::specpeptidoms::SpOMSSpectrum::SpOMSSpectrum().
|
private |
update mass cache
Definition at line 211 of file aacode.cpp.
|
private |
give a number (the code) to each amino acid sorted by mass
Definition at line 191 of file aacode.cpp.
Referenced by AaCode().
|
private |
|
private |
|
private |
|
private |