LocARNA-1.8.11
Public Member Functions | Static Public Member Functions | List of all members
LocARNA::Aligner Class Reference

Implements locarna alignment algorithm. More...

#include <aligner.hh>

Public Member Functions

 Aligner (const Aligner &aligner)
 copy constructor More...
 
Aligneroperator= (const Aligner &aligner)
 assignment operator More...
 
 Aligner (const AlignerParams &ap)
 Construct from parameters. More...
 
 ~Aligner ()
 destructor
 
Alignment const & get_alignment () const
 return the alignment that was computed by trace()
 
void set_alignment (const Alignment &alignment)
 set the alignment More...
 
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 AlignerRestrictionget_restriction () const
 
void suboptimal (int k, score_t threshold, bool opt_normalized, score_t normalized_L, size_t output_width, bool opt_verbose, bool opt_local_out, bool opt_pos_output, bool opt_write_structure)
 Enumerate suboptimal local alignments. More...
 
infty_score_t normalized_align (score_t L, bool opt_verbose)
 perform normalized local alignment with parameter L
 
infty_score_t penalized_align (score_t position_penalty)
 perform local alignment by subtracting a penalty for each alignment position
 
score_t evaluate ()
 evaluate the alignment according to scoring and scoring parameters More...
 
RnaStructure optimize_consensus_structure ()
 find optimum consensus structure More...
 

Static Public Member Functions

static AlignerParams create ()
 create with named parameters More...
 

Detailed Description

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

Note
Idea "NICE TO HAVE": score matrices should be as small as possible and have offsets. The M-Matrix can be smaller if the maximal arc len is limited. The D-matrix may be smaller if the number of simultaneously needed arc-pairs is limited, due to limit on the local sub-sequence lengths. A special cyclically rotatable matrix would be required for alignment on the top-level. Such matrices are implemented in matrix.hh but currently not used.

Constructor & Destructor Documentation

LocARNA::Aligner::Aligner ( const Aligner aligner)

copy constructor

Parameters
alignerobject to be copied Copies implementation object (not only pointer)
LocARNA::Aligner::Aligner ( const AlignerParams ap)

Construct from parameters.

Parameters
apparameter for aligner
Note
ap is copied to new AlignerParams object (by impl class) to allow reference to a temporary
used with implicit type cast (for cleaner syntax)

Member Function Documentation

static AlignerParams LocARNA::Aligner::create ( )
inlinestatic

create with named parameters

Returns
parameter object
score_t LocARNA::Aligner::evaluate ( )

evaluate the alignment according to scoring and scoring parameters

Returns
score of the alignment
const AlignerRestriction & LocARNA::Aligner::get_restriction ( ) const

return the current restriction, mainly used for the k-best algorithm

Aligner& LocARNA::Aligner::operator= ( const Aligner aligner)

assignment operator

Parameters
alignerobject to be assigned Assigns implementation object (not only pointer)
RnaStructure LocARNA::Aligner::optimize_consensus_structure ( )

find optimum consensus structure

Returns
optimum consensus structure for alignment
void LocARNA::Aligner::set_alignment ( const Alignment alignment)

set the alignment

Parameters
alignmentthe alignment to be stored in the Aligner object

This sets the result of the aligner object / trace; it is useful to evaluate given alignments (where it is used in place of a computation by align()/trace()).

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  opt_normalized,
score_t  normalized_L,
size_t  output_width,
bool  opt_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()

Parameters
knumber of suboptimals to be generated (k==-1 means unlimited)
threshold
opt_normalized
normalized_L
output_width
opt_verbose
opt_local_output
opt_pos_output
opt_write_structure

The documentation for this class was generated from the following files: