libpappsomspp
Library for mass spectrometry
|
#include <protein.h>
Public Member Functions | |
Protein () | |
Protein (const QString &description, const QString &sequence) | |
Protein (const Protein &protein) | |
ProteinSp | makeProteinSp () const |
bool | operator== (const Protein &other) const |
~Protein () | |
const QString & | getSequence () const |
void | setSequence (const QString &sequence) |
const QString & | getAccession () const |
virtual void | setAccession (const QString &accession) |
const QString & | getDescription () const |
void | setDescription (const QString &description) |
Protein & | removeTranslationStop () |
remove * characters at the end of the sequence More... | |
Protein & | reverse () |
reverse characters in the sequence More... | |
unsigned int | size () const |
protein amino acid sequence size More... | |
pappso_double | getMass () const |
get monoisotopic mass of ProteinSp Protein::makeProteinSp() const More... | |
Private Attributes | |
QString | m_description |
free text to describe the protein More... | |
QString | m_accession |
a single unique identifier of the protein (usually the first word of description) More... | |
QString | m_sequence |
the amino acid sequence More... | |
unsigned int | m_length = 0 |
number of amino acid More... | |
Static Private Attributes | |
static QRegularExpression | m_removeTranslationStopRegExp |
pappso::Protein::Protein | ( | ) |
Definition at line 62 of file protein.cpp.
pappso::Protein::Protein | ( | const QString & | description, |
const QString & | sequence | ||
) |
Definition at line 65 of file protein.cpp.
References m_accession, m_description, m_length, and m_sequence.
pappso::Protein::Protein | ( | const Protein & | protein | ) |
Definition at line 74 of file protein.cpp.
pappso::Protein::~Protein | ( | ) |
Definition at line 146 of file protein.cpp.
const QString & pappso::Protein::getAccession | ( | ) | const |
Definition at line 127 of file protein.cpp.
References m_accession.
Referenced by getMass(), and pappso::FastaOutputStream::writeProtein().
const QString & pappso::Protein::getDescription | ( | ) | const |
Definition at line 137 of file protein.cpp.
References m_description.
Referenced by pappso::FastaOutputStream::writeProtein().
pappso_double pappso::Protein::getMass | ( | ) | const |
get monoisotopic mass of ProteinSp Protein::makeProteinSp() const
Definition at line 150 of file protein.cpp.
References getAccession(), pappso::Peptide::getMass(), m_sequence, and pappso::PappsoException::qwhat().
const QString & pappso::Protein::getSequence | ( | ) | const |
Definition at line 122 of file protein.cpp.
References m_sequence.
Referenced by pappso::FastaOutputStream::writeProtein().
ProteinSp pappso::Protein::makeProteinSp | ( | ) | const |
Definition at line 97 of file protein.cpp.
bool pappso::Protein::operator== | ( | const Protein & | other | ) | const |
Definition at line 104 of file protein.cpp.
References m_accession.
Protein & pappso::Protein::removeTranslationStop | ( | ) |
remove * characters at the end of the sequence
Definition at line 83 of file protein.cpp.
References m_removeTranslationStopRegExp, and m_sequence.
Protein & pappso::Protein::reverse | ( | ) |
reverse characters in the sequence
Definition at line 90 of file protein.cpp.
References m_sequence.
|
virtual |
Definition at line 132 of file protein.cpp.
References m_accession.
void pappso::Protein::setDescription | ( | const QString & | description | ) |
Definition at line 142 of file protein.cpp.
References m_description.
void pappso::Protein::setSequence | ( | const QString & | sequence | ) |
Definition at line 110 of file protein.cpp.
References m_length, and m_sequence.
unsigned int pappso::Protein::size | ( | ) | const |
|
private |
a single unique identifier of the protein (usually the first word of description)
Definition at line 56 of file protein.h.
Referenced by Protein(), getAccession(), operator==(), and setAccession().
|
private |
free text to describe the protein
Definition at line 53 of file protein.h.
Referenced by Protein(), getDescription(), and setDescription().
|
private |
number of amino acid
Definition at line 60 of file protein.h.
Referenced by Protein(), setSequence(), and size().
|
staticprivate |
Definition at line 62 of file protein.h.
Referenced by removeTranslationStop().
|
private |
the amino acid sequence
Definition at line 58 of file protein.h.
Referenced by Protein(), getMass(), getSequence(), removeTranslationStop(), reverse(), and setSequence().