#include <NTSequence.h>
Public Member Functions | |
NTSequence () | |
Create an empty nucleotide sequence with emtpy name and empty description. | |
NTSequence (unsigned size) | |
Create a nucleotide sequence of length size, filled with Nucleotide::N, with empty name and emtpy description. | |
NTSequence (const std::string name, const std::string description, const std::string aSeqString, bool sampleAmbiguities=false) throw (ParseException) | |
Create a nucleotide sequence with given name and description, and with the given sequence string. | |
NTSequence (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[. | |
void | sampleAmbiguities () |
Remove ambiguity nucleotide symbols by replacing them by sampling a random non-ambiguous nucleotide that is represented by the ambiguity symbol. | |
void | nonAmbiguousSequences (std::vector< NTSequence > &result) const |
Add all the possible non-ambiguous sequences possibly represented by this sequence to result. | |
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. |
The sequence may have a name and a description.
The sequence data is stored by publicly inheriting std::vector<Nucleotide>, so you can use all std::vector manipulations to access the nucleotide data.
|
Create an empty nucleotide sequence with emtpy name and empty description.
|
|
Create a nucleotide sequence of length size, filled with Nucleotide::N, with empty name and emtpy description.
|
|
Create a nucleotide sequence with given name and description, and with the given sequence string. Each character in the sequence string will be interpreted as a Nucleotide using the Nucleotide::Nucleotide(char) constructor. If sampleAmbiguities = true, then sampleAmbiguities() is performed during construction.
|
|
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.
|
|
Add all the possible non-ambiguous sequences possibly represented by this sequence to result.
|
|
Remove ambiguity nucleotide symbols by replacing them by sampling a random non-ambiguous nucleotide that is represented by the ambiguity symbol.
|
|
Set the description.
|
|
Set the name.
|