a class for the representation of exact pattern matches (EPM)
More...
#include <exact_matcher.hh>
a class for the representation of exact pattern matches (EPM)
◆ el_pat_vec
type for elements of the pattern vector, <position in seq A, position in sequence B, structure>
◆ add()
adds an element to the pattern vector
- Parameters
-
posA | position in sequence A that is added to the pattern vector |
posB | position in sequence B that is added to the pattern vector |
c | char that specifies the match (sequential match '.', structural match '(' or ')' ) |
◆ add_am()
void LocARNA::EPM::add_am |
( |
const Arc & |
a, |
|
|
const Arc & |
b |
|
) |
| |
|
inline |
appends an arc match to the EPM
- Parameters
-
a | arc in sequence A |
b | arc in sequence B |
◆ am_begin()
PairArcIdxVec::const_iterator LocARNA::EPM::am_begin |
( |
| ) |
const |
|
inline |
begin of vector that stores the pairs of arc indices that need to be computed
- Returns
- an iterator to the beginning of am_to_do
◆ am_end()
PairArcIdxVec::const_iterator LocARNA::EPM::am_end |
( |
| ) |
const |
|
inline |
end of vector that stores the pairs of arc indices that need to be computed
- Returns
- an iterator to the end of am_to_do
◆ begin()
pat_vec_t::const_iterator LocARNA::EPM::begin |
( |
| ) |
const |
|
inline |
begin of pattern vector
- Returns
- an iterator to the beginning of the pattern vector pat_vec
◆ end()
pat_vec_t::const_iterator LocARNA::EPM::end |
( |
| ) |
const |
|
inline |
end of pattern vector
- Returns
- an iterator to the end of the pattern vector pat_vec
◆ get_am()
const PairArcIdx& LocARNA::EPM::get_am |
( |
PairArcIdxVec::size_type |
idx | ) |
const |
|
inline |
returns the pair of arc indices at position pos
- Parameters
-
idx | index in the PairArcIdxVec |
- Returns
- returns the PairArcIdx at the index idx in the am_to_do vector
◆ includes()
bool LocARNA::EPM::includes |
( |
const EPM & |
epm_to_test | ) |
const |
|
inline |
checks whether the current EPM includes the EPM epm_to_test
- Parameters
-
epm_to_test | EPM that is checked |
- Returns
- true, if the current EPM includes the EPM epm_to_test false, otherwise
◆ includes_am()
bool LocARNA::EPM::includes_am |
( |
const EPM & |
epm_to_test | ) |
const |
|
inline |
checks whether the arcmatches of the current EPM includes the arcmatches of the epm_to_test
- Parameters
-
epm_to_test | EPM that is checked |
- Returns
- true, if the arcmatches of the current EPM includes the arcmatches of the EPM epm_to_test false, otherwise
◆ insert_epm()
void LocARNA::EPM::insert_epm |
( |
const EPM & |
epm_to_insert | ) |
|
|
inline |
inserts the pattern vector of the EPM epm_to_insert into the current EPM
- Parameters
-
epm_to_insert | EPM that is inserted |
◆ is_invalid()
bool LocARNA::EPM::is_invalid |
( |
| ) |
const |
|
inline |
returns whether the EPM is invalid (only used in the suboptimal traceback when inexact structural matches are allowed)
◆ last_matched_pos()
returns the last sequence position that is matched in the EPM
- Returns
- the last sequence position that is matched in the EPM
◆ next_arcmatch()
returns a pair of arc indices that is processed
- Returns
- the pair of arc indices that is processed next
◆ number_of_am()
PairArcIdxVec::size_type LocARNA::EPM::number_of_am |
( |
| ) |
|
|
inline |
returns the number of pairs of arc indices that need to be computed
- Returns
- the number of arc matches in am_to_do
◆ overwrite()
void LocARNA::EPM::overwrite |
( |
seqpos_t |
posA, |
|
|
seqpos_t |
posB, |
|
|
char |
c, |
|
|
pat_vec_t::size_type |
pos |
|
) |
| |
|
inline |
overwrites the element at position pos of the pattern vector
- Parameters
-
posA | position in sequence A that is added to the pattern vector |
posB | position in sequence B that is added to the pattern vector |
c | char that specifies the match (sequential match '.', structural match '(' or ')' ) |
pos | position in the pattern vector |
◆ pat_vec_at()
el_pat_vec LocARNA::EPM::pat_vec_at |
( |
pat_vec_t::size_type |
idx | ) |
const |
|
inline |
returns the element of the pattern vector at position pos
- Parameters
-
- Returns
- the element of the pattern vector at idx
◆ pat_vec_size()
pat_vec_t::size_type LocARNA::EPM::pat_vec_size |
( |
| ) |
const |
|
inline |
return the size of the pattern vector
- Returns
- the size of the pattern vector pat_vec
◆ print_epm()
void LocARNA::EPM::print_epm |
( |
std::ostream & |
out, |
|
|
bool |
verbose |
|
) |
| const |
|
inline |
prints the EPM
- Parameters
-
out | output stream object |
verbose | whether to write additional information |
◆ set_cur_pos()
void LocARNA::EPM::set_cur_pos |
( |
const matpos_t & |
cur_pos_ | ) |
|
|
inline |
sets the matrix position of the EPM
- Parameters
-
◆ set_first_insertion()
void LocARNA::EPM::set_first_insertion |
( |
bool |
first_insertion_ | ) |
|
|
inline |
sets the flag first_insertion for the EPM
- Parameters
-
first_insertion_ | whether it is the first_insertion |
◆ set_max_tol_left()
void LocARNA::EPM::set_max_tol_left |
( |
score_t |
tol | ) |
|
|
inline |
sets the maximal tolerance that is left for the EPM
- Parameters
-
◆ set_score()
void LocARNA::EPM::set_score |
( |
score_t |
score_ | ) |
|
|
inline |
sets the score of the EPM
- Parameters
-
◆ set_state()
void LocARNA::EPM::set_state |
( |
int |
state_ | ) |
|
|
inline |
sets the matrix state of the EPM
- Parameters
-
◆ sort_am_to_do()
void LocARNA::EPM::sort_am_to_do |
( |
| ) |
|
|
inline |
sorts the list of arcmatches am_to_do, such that includes_am works
◆ sort_patVec()
void LocARNA::EPM::sort_patVec |
( |
| ) |
|
|
inline |
sorts the pattern vector according to the positions in the first sequence (automatically also sorted according to the positions in the second sequence)
◆ store_am()
void LocARNA::EPM::store_am |
( |
const Arc & |
a, |
|
|
const Arc & |
b |
|
) |
| |
|
inline |
stores an arc match in the am_to_do data structure
- Parameters
-
a | arc in sequence A |
b | arc in sequence B |
The documentation for this class was generated from the following file: