LocARNA-2.0.0
|
A row in a multiple alignment. More...
#include <multiple_alignment.hh>
Public Types | |
typedef std::pair< pos_type, pos_type > | pos_pair_t |
pair of positions | |
Public Member Functions | |
SeqEntry (const std::string &name, const std::string &seq) | |
Construct from strings name and seq. More... | |
SeqEntry (const std::string &name, const string1 &seq) | |
Construct from strings name and 1-based string seq. More... | |
SeqEntry (const std::string &name, const std::string &description, const std::string &seq) | |
Construct from strings name, description and seq. More... | |
SeqEntry (const std::string &name, const std::string &description, const string1 &seq) | |
Construct from strings name, description and 1-based string seq. More... | |
const std::string & | name () const |
(read-only) access to name | |
const std::string & | description () const |
(read-only) access to description | |
const string1 & | seq () const |
(read-only) access to seq | |
size_type | length_wogaps () const |
length without gaps | |
pos_type | pos_to_col (pos_type pos) const |
map sequence position -> alignment column. More... | |
pos_pair_t | col_to_pos (pos_type col) const |
void | reverse () |
reverse sequence | |
void | push_back (char c) |
append character to sequence More... | |
void | set_seq (const string1 &seq) |
write access to seq | |
A row in a multiple alignment.
pair of a name string and a sequence string; support projections
|
inline |
Construct from strings name and seq.
name | Sequence name |
seq | Sequence string |
|
inline |
Construct from strings name and 1-based string seq.
name | Sequence name |
seq | Sequence string |
|
inline |
Construct from strings name, description and seq.
name | Sequence name |
description | Sequence description |
seq | Sequence string |
|
inline |
Construct from strings name, description and 1-based string seq.
name | Sequence name |
description | Sequence description |
seq | Sequence string |
MultipleAlignment::SeqEntry::pos_pair_t LocARNA::MultipleAlignment::SeqEntry::col_to_pos | ( | pos_type | col | ) | const |
map alignment column -> sequence positions
col | column index in aligmnent |
map sequence position -> alignment column.
pos | position in sequence (without gaps) as marginal cases: pos 0 maps to 0 and a too large position maps to length+1 |
|
inline |
append character to sequence
c | character |