#include <CodingSequence.h>
Public Member Functions | |
CodingSequence () | |
Construct a coding sequence with empty nucleotide sequence. | |
CodingSequence (const NTSequence &aNtSequence) | |
Construct a coding sequence based on the given nucleotide sequence. | |
const NTSequence & | ntSequence () const |
Get the nucleotide sequence. | |
const AASequence & | aaSequence () const |
Get the amino acid sequence. | |
void | changeNucleotide (int pos, Nucleotide value) |
Change a nucleotide at a given position in the nucleotide sequence to a new value. | |
int | whatIfMutation (int pos, Nucleotide value, AminoAcid &oldAA, AminoAcid &newAA) const |
Investigate the effect of a nucleotide mutation on the amino acid sequence. | |
bool | isSynonymousMutation (int pos, Nucleotide value) const |
Investigate whether a give nucleotide mutation is synonymous or non-synonymous with respect to the amino acid sequence. | |
void | allAASequences (std::vector< std::set< AminoAcid > > &result) const |
Get the amino acid sequence possibilities, taking into account all ambiguities. | |
Protected Member Functions | |
void | updateAASequence () const |
It is useful when one wants to track the effect of changes in the nucleotide sequence for the amino acid sequence, and to investigate properties of nucleotide mutations.
|
Construct a coding sequence with empty nucleotide sequence.
|
|
Construct a coding sequence based on the given nucleotide sequence. The sequence must be translatable as per AASequence::translate(const NTSequence&). |
|
Get the amino acid sequence. If needed, the amino acid sequence is updated to reflect changes in the nucleotide sequence. |
|
Get the amino acid sequence possibilities, taking into account all ambiguities.
|
|
Change a nucleotide at a given position in the nucleotide sequence to a new value.
|
|
Investigate whether a give nucleotide mutation is synonymous or non-synonymous with respect to the amino acid sequence.
|
|
Get the nucleotide sequence.
|
|
|
|
Investigate the effect of a nucleotide mutation on the amino acid sequence. This returns both the old (oldAA) and new amino acid (newAA) encoded by the mutation, as well as the position (return value). |