13#ifndef __PP_SIMSCORE_HH
14#define __PP_SIMSCORE_HH
21#include "properties.hh"
22#include "pp_profile.hh"
44 std::vector < std::tuple <int, int, char > > prev;
73 Row (
int length,
int position);
74 Cell& operator[] (
int n);
108 std::vector<Row> matrix;
110 Row& operator[] (
int n);
111 void addRow (
int l,
int p);
151 char* sequence = NULL;
152 std::map < int, int > introns;
153 std::vector < int > num_prev_introns;
159 char& operator[] (
int n);
162 int intronsInRange (
int start,
int end);
177 std::string argmax_aminoacids;
180 std::vector < double > match_prob;
222 std::vector <AlignmentElement > alignment;
261 double gap_cost_inter;
262 double gap_cost_intra;
263 double gap_cost_intron;
265 double intron_weight_inter;
266 double intron_weight_intra;
271 double epsi_noIntron;
275 int intronPrfl_noProt;
279 const double intronIntraBlock_bfreq = 1.706e-3;
285 const double intronAvgInterBlock_bfreq = 9.599e-3;
292 double intraBlock_iscore (
int k,
int s,
int f,
int intron_frame);
297 double PoiDist (
int k,
double lambda);
301 double compareScores(
double new_score,
double old_score,
int current_i,\
302 int current_j,
int prev_i,
int prev_j,
char score_type);
304 double intronScore (
double q,
double q_b);
308 double iw2,
double e_i,
double e_n);
311 void printInterBlock();
312 bool SimilarityMatrix_empty();
316 void printAlignmentDB();
319 void printBlockPos ();
322 pair<double, double> avgArgMaxProb();
330 void readFiles (
const char* seqFileName,
const char* profileFileName);
334 void fillSimilarityMatrix ();
338 void backtrackingDB (
int number_Alignments);
344 std::vector <std::vector <AlignmentElement > > alignments;
348 std::vector < pair <std::string, PrflAlignment > > alignmentsReadable;
350 void printSimilarityMatrix ();
360 void printAlignment ();
Definition pp_profile.hh:665
class representing a protein sequence with optional informations about intron postions
Definition pp_simscore.hh:149
class representing one row of a SimilarityMatrix
Definition pp_simscore.hh:67
class representing a similarity matrix, for the SimilarityScore algorithm
Definition pp_simscore.hh:106
algorithm to compare the similarity of a protein sequence and a protein profile and compute an optima...
Definition pp_simscore.hh:250
structure representing one element of a final alignment produced by the backtracking algorithm
Definition pp_simscore.hh:200
structure representing all information internally needed for backtracking one final alignment
Definition pp_simscore.hh:214
structure representing one cell of a similarity matrix
Definition pp_simscore.hh:42
Information of the representation of the profile in an alignment for a readable output to stdout.
Definition pp_simscore.hh:174