Loading...
Searching...
No Matches
aa.h
Go to the documentation of this file.
/**
* \file pappsomspp/amino_acid/aaBase.h
* \date 7/3/2015
* \author Olivier Langella
* \brief amino acid model
*/
/*******************************************************************************
* Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
*
* This file is part of the PAPPSOms++ library.
*
* PAPPSOms++ is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PAPPSOms++ is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
*
* Contributors:
* Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and
*implementation
******************************************************************************/
#pragma once
#include <vector>
#include "../types.h"
#include "aabase.h"
#include "aamodification.h"
namespace pappso
{
class PMSPP_LIB_DECL Aa : public AaBase
{
public:
Aa(char aa_letter);
Aa(AminoAcidChar aa_char);
Aa(const Aa &aa);
Aa(Aa &&toCopy); // move constructor
Aa &operator=(const Aa &toCopy);
virtual ~Aa();
pappso_double getMass() const override;
int getNumberOfAtom(AtomIsotopeSurvey atom) const override final;
int getNumberOfIsotope(Isotope isotope) const override final;
unsigned int getNumberOfModification(AaModificationP mod) const;
/* \brief print modification except internal modifications */
const QString toString() const;
/* \brief print all modifications */
const QString toAbsoluteString() const;
/** @brief get the amino acid in ProForma notation
* https://github.com/HUPO-PSI/ProForma/blob/master/README.md
* @return QString as described in ProForma
*/
const QString toProForma() const;
void addAaModification(AaModificationP aaModification);
void removeAaModification(AaModificationP aaModification);
/** @brief replaces all occurences of a modification by a new one
* @param oldmod modification to change
* @param newmod new modification
*/
void replaceAaModification(AaModificationP oldmod, AaModificationP newmod);
AaModificationP getInternalNterModification() const;
AaModificationP getInternalCterModification() const;
void removeInternalNterModification();
void removeInternalCterModification();
/** @brief remove all non internat modifications
*/
void removeAllButInternalModification();
const std::vector<AaModificationP> &getModificationList() const;
/** @brief get the sum of mass modifications
*/
double getTotalModificationMass() const;
bool isLesser(Aa const &r) const;
bool isAaEqual(Aa const &r) const;
private:
// const pappso_double _aa_mass;
std::vector<AaModificationP> m_listMod;
};
bool operator<(const Aa &l, const Aa &r);
bool operator==(const Aa &l, const Aa &r);
} /* namespace pappso */
aabase.h
private amino acid model
aamodification.h
amino acid modification model
pappso::AaBase
Definition aabase.h:44
pappso::AaModification
Definition aamodification.h:57
pappso::Aa
Definition aa.h:45
pappso::Aa::m_listMod
std::vector< AaModificationP > m_listMod
Definition aa.h:103
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition exportinmportconfig.h:14
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
pappso::AminoAcidChar
AminoAcidChar
Definition types.h:166
pappso::operator<
bool operator<(Aa const &l, Aa const &r)
Definition aa.cpp:348
pappso::AtomIsotopeSurvey
AtomIsotopeSurvey
Definition types.h:89
pappso::pappso_double
double pappso_double
A type definition for doubles.
Definition types.h:50
pappso::Isotope
Isotope
Definition types.h:104
pappso::operator==
bool operator==(Aa const &l, Aa const &r)
Definition aa.cpp:342