forked from diepthihoang/mpboot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpattern.h
More file actions
67 lines (56 loc) · 1.19 KB
/
pattern.h
File metadata and controls
67 lines (56 loc) · 1.19 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//
// C++ Interface: pattern
//
// Description:
//
//
// Author: BUI Quang Minh, Steffen Klaere, Arndt von Haeseler <minh.bui@univie.ac.at>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PATTERN_H
#define PATTERN_H
#include <iostream>
#include <string>
using namespace std;
/**
Site-patterns in a multiple sequence alignment
@author BUI Quang Minh, Steffen Klaere, Arndt von Haeseler <minh.bui@univie.ac.at>
*/
class Pattern : public string
{
public:
/**
constructor
*/
Pattern();
/**
determine if the pattern is constant. update the is_const variable.
*/
void computeConst(int STATE_UNKNOWN);
/**
@param num_states number of states of the model
@return the number of ambiguous character incl. gaps
*/
int computeAmbiguousChar(int num_states);
/**
@param num_states number of states of the model
@return the number of gaps
*/
int computeGapChar(int num_states, int STATE_UNKNOWN);
/**
destructor
*/
virtual ~Pattern();
/**
frequency appearance of the pattern
*/
int frequency;
/**
true if this is a constant pattern
*/
bool is_const;
int ras_pars_score; // Diep added: for sorting pattern by score
};
#endif