-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscore_system.h
39 lines (30 loc) · 951 Bytes
/
score_system.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef __SCORE_SYSTEM_H__
#define __SCORE_SYSTEM_H__
//
// Structures
//
struct scoringSystem
{
char *name; // Matrix name
int **matrix; // 2D scoring matrix
int msize; // The size of the matrix/alphabet
char *alphabet; // Matrix alphabet
double m_lambda; // Matrix lambda
double m_bg_freqs[4]; // Matrix background frequencies [ A, C, G, T ]
int gapopen; // Gap open penalty
int gapextn; // Gap extension penalty
};
//
// Prototypes
//
double
calculateLambda( struct scoringSystem *scoringSys );
void freeScoringSystem(struct scoringSystem *score);
struct scoringSystem *
getMatrixUsingGapPenalties(char *matrixName, int gapopen_over, int gapextn_over);
struct scoringSystem *
getRepeatScoutMatrix(int match, int mismatch, int gap);
struct scoringSystem *
getMatrix(char *matrixName);
void score_system_test();
#endif