LocARNA-2.0.0
Public Types | Public Member Functions | Protected Attributes | List of all members
LocARNA::Ribofit Class Referenceabstract

Family of Ribofit matrices. More...

#include <ribofit.hh>

Inheritance diagram for LocARNA::Ribofit:
Inheritance graph
[legend]
Collaboration diagram for LocARNA::Ribofit:
Collaboration graph
[legend]

Public Types

typedef Matrix< double > matrix_t
 type of a matrix
 
using base_alphabet_type = Alphabet< char, 4 >
 

Public Member Functions

 Ribofit (std::array< char, 4 > alphabet)
 Construct.
 
virtual ~Ribofit ()
 virtual destructor
 
virtual double basematch_score (char i, char j, double identity) const =0
 ribofit base match score for specific identity More...
 
virtual double arcmatch_score (char i, char j, char k, char l, double identity) const =0
 ribofit arc match score for specific identity More...
 
const base_alphabet_typealphabet () const
 
const matrix_tget_basematch_scores (double identity, matrix_t &basematch_scores) const
 Get base match scores. More...
 

Protected Attributes

base_alphabet_type alphabet_
 alphabet of base names as characters
 

Detailed Description

Family of Ribofit matrices.

Represents a function of sequence identities to matrices of base and arc match scores. Abstract base class.

Member Function Documentation

◆ arcmatch_score()

virtual double LocARNA::Ribofit::arcmatch_score ( char  i,
char  j,
char  k,
char  l,
double  identity 
) const
pure virtual

ribofit arc match score for specific identity

Parameters
ileft character of first arc
jright character of first arc
kleft character of second arc
lright character of second arc
identitysequence identity
Returns
ribofit arc match score

Implemented in LocARNA::Ribofit_will2014.

◆ basematch_score()

virtual double LocARNA::Ribofit::basematch_score ( char  i,
char  j,
double  identity 
) const
pure virtual

ribofit base match score for specific identity

Parameters
icharacter in sequence A
jcharacter in sequence B
identitysequence identity
Returns
ribofit base match score

Implemented in LocARNA::Ribofit_will2014.

◆ get_basematch_scores()

const Ribofit::matrix_t & LocARNA::Ribofit::get_basematch_scores ( double  identity,
matrix_t basematch_scores 
) const

Get base match scores.

Parameters
identitysequence identity
[out]basematch_scoresmatrix to hold basematch scores
Returns
the matrix of base match scores at given identity

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