Implements the stral-like scoring function.
More...
#include <stral_score.hh>
Implements the stral-like scoring function.
LocARNA::StralScore::StralScore |
( |
const RnaData & |
rnaA, |
|
|
const RnaData & |
rnaB, |
|
|
const Matrix< double > & |
sim_mat_, |
|
|
const Alphabet< char > & |
alphabet_, |
|
|
double |
pf_struct_weight_, |
|
|
double |
gap_opening_, |
|
|
double |
gap_extension_ |
|
) |
| |
Construct for pair of RNAs with parameters for alignment
- Parameters
-
rnaA | data of first RNA |
rnaB | data of second RNA |
sim_mat_ | similarity matrix for bases |
alphabet_ | alphabet |
pf_struct_weight_ | structure weight |
gap_opening_ | gap opening cost |
gap_extension_ | gap extension cost |
double LocARNA::StralScore::alpha |
( |
| ) |
const |
|
inline |
Read gap opening cost.
- Returns
- gap opening cost
double LocARNA::StralScore::beta |
( |
| ) |
const |
|
inline |
Read gap extension cost.
- Returns
- gap extension cost
void LocARNA::StralScore::reverse |
( |
| ) |
|
Reverse the scoring.
- Postcondition
- the object scores the reverted RNAs
Compute STRAL-like similarity of two residues in the two RNAs.
- Parameters
-
i | position in sequence A |
j | position in sequence B |
- Note
- Computes the average similarity over all pairs of alignment rows in the RNA sequence, which are alignments in general.
-
The treatment of gaps and unknown nucleotide symbols in the aligned alignments is quite ad hoc.
- Returns
- similarity of residues i in A and j in B.
The documentation for this class was generated from the following files: