Implements locarna alignment algorithm. More...
#include <aligner.hh>
Public Member Functions | |
Aligner (const Aligner &aligner) | |
copy constructor | |
Aligner & | operator= (const Aligner &aligner) |
assignment operator | |
Aligner (const AlignerParams &ap) | |
Construct from parameters. | |
~Aligner () | |
destructor | |
Alignment const & | get_alignment () const |
return the alignment that was computed by trace() | |
void | set_alignment (const Alignment &alignment) |
set the alignment | |
infty_score_t | align () |
compute the alignment score | |
void | trace () |
offer trace as public method. Calls trace(def_scoring_view). | |
void | set_restriction (const AlignerRestriction &r) |
const AlignerRestriction & | get_restriction () const |
void | suboptimal (int k, score_t threshold, bool normalized, score_t normalized_L, size_t output_width, bool verbose, bool opt_local_out, bool opt_pos_output, bool opt_write_structure) |
Enumerate suboptimal local alignments. | |
infty_score_t | normalized_align (score_t L, bool verbose) |
perform normalized local alignment with parameter L | |
infty_score_t | penalized_align (score_t position_penalty) |
score_t | evaluate () |
evaluate the alignment according to scoring and scoring parameters | |
RnaStructure | optimize_consensus_structure () |
find optimum consensus structure | |
Static Public Member Functions | |
static AlignerParams | create () |
create with named parameters |
Implements locarna alignment algorithm.
Performs the alignment of two sequences and their associated sets of weighted basepairs
An object always knows about the two sequences and the two weighted base pair sets
usage: construct, align, trace, get_alignment
LocARNA::Aligner::Aligner | ( | const Aligner & | aligner | ) |
copy constructor
aligner | object to be copied Copies implementation object (not only pointer) |
LocARNA::Aligner::Aligner | ( | const AlignerParams & | ap | ) |
Construct from parameters.
ap | parameter for aligner |
static AlignerParams LocARNA::Aligner::create | ( | ) | [inline, static] |
create with named parameters
score_t LocARNA::Aligner::evaluate | ( | ) |
evaluate the alignment according to scoring and scoring parameters
const AlignerRestriction & LocARNA::Aligner::get_restriction | ( | ) | const |
return the current restriction, mainly used for the k-best algorithm
assignment operator
aligner | object to be assigned Assigns implementation object (not only pointer) |
find optimum consensus structure
infty_score_t LocARNA::Aligner::penalized_align | ( | score_t | position_penalty | ) |
perform local alignment by subtracting a penalty for each alignment position
void LocARNA::Aligner::set_alignment | ( | const Alignment & | alignment | ) |
void LocARNA::Aligner::set_restriction | ( | const AlignerRestriction & | r | ) |
set the restriction on the alignment, mainly used for the k-best algorithm
void LocARNA::Aligner::suboptimal | ( | int | k, |
score_t | threshold, | ||
bool | normalized, | ||
score_t | normalized_L, | ||
size_t | output_width, | ||
bool | verbose, | ||
bool | opt_local_out, | ||
bool | opt_pos_output, | ||
bool | opt_write_structure | ||
) |
Enumerate suboptimal local alignments.
special operation mode for computing the k best alignments. Used in place of calls to align() and trace()
k | number of suboptimals to be generated (k==-1 means unlimited) |
threshold | |
normalized | |
normalized_L | |
output_width | |
verbose | |
opt_local_output | |
opt_pos_output | |
opt_write_structure |