#include <AASequence.h>
Public Member Functions | |
AASequence () | |
Create an empty amino acid sequence with emtpy name and empty description. | |
AASequence (unsigned size) | |
Create an amino acid sequence of length size, filled with AminoAcid::X, with empty name and emtpy description. | |
AASequence (const std::string name, const std::string description, const std::string aSeqString) throw (ParseException) | |
Create an amino acid sequence with given name and description, and with the given sequence string. | |
AASequence (const const_iterator first, const const_iterator last) | |
Create a nucleotide sequence with empty name and emtpy description, and copy the sequence data from the range [first, last[. | |
std::string | asString () const |
Represent the sequence data as a string. | |
std::string | name () const |
Get the name. | |
std::string | description () const |
Get the description. | |
void | setName (std::string name) |
Set the name. | |
void | setDescription (std::string description) |
Set the description. | |
Static Public Member Functions | |
static AASequence | translate (const NTSequence &ntSequence) |
Translate a nucleotide sequence to an amino acid sequence. | |
static AASequence | translate (const NTSequence::const_iterator begin, const NTSequence::const_iterator end) |
Translate a nucleotide sequence, defined by the range begin to end, to an amino acid sequence. |
The sequence may have a name and a description.
The sequence data is stored by publicly inheriting std::vector<AminoAcid>, so you can use all std::vector manipulations to access the amino acid data.
|
Create an empty amino acid sequence with emtpy name and empty description.
|
|
Create an amino acid sequence of length size, filled with AminoAcid::X, with empty name and emtpy description.
|
|
Create an amino acid sequence with given name and description, and with the given sequence string. Each character in the sequence string will be interpreted as an AminoAcid using the AminoAcid::AminoAcid(char) constructor. |
|
Create a nucleotide sequence with empty name and emtpy description, and copy the sequence data from the range [first, last[.
|
|
Represent the sequence data as a string.
|
|
Get the description.
|
|
Get the name.
|
|
Set the description.
|
|
Set the name.
|
|
Translate a nucleotide sequence, defined by the range begin to end, to an amino acid sequence. The nucleotide sequence must have a length that is a multiple of three. The resulting amino acid sequence will contain an amino acid for every triplet of nucleotides in the nucleotide sequence, and will have an empty name and empty description.
|
|
Translate a nucleotide sequence to an amino acid sequence. The nucleotide sequence must have a length that is a multiple of three. The resulting amino acid sequence will contain an amino acid for every triplet of nucleotides in the nucleotide sequence. The amino acid sequence will have the same name and description as the nucleotide sequence.
|