| 1 |
#ifndef FREEBAYES_INDELALLELE_H |
| 2 |
#define FREEBAYES_INDELALLELE_H |
| 3 |
|
| 4 |
#include <string> |
| 5 |
#include <iostream> |
| 6 |
#include <sstream> |
| 7 |
|
| 8 |
using namespace std; |
| 9 |
|
| 10 |
class FBIndelAllele { |
| 11 |
friend ostream& operator<<(ostream&, const FBIndelAllele&); |
| 12 |
friend bool operator==(const FBIndelAllele&, const FBIndelAllele&); |
| 13 |
friend bool operator!=(const FBIndelAllele&, const FBIndelAllele&); |
| 14 |
friend bool operator<(const FBIndelAllele&, const FBIndelAllele&); |
| 15 |
public: |
| 16 |
bool insertion; |
| 17 |
int length; |
| 18 |
int position; |
| 19 |
int readPosition; |
| 20 |
string sequence; |
| 21 |
bool splice; |
| 22 |
|
| 23 |
bool homopolymer(void); |
| 24 |
|
| 25 |
FBIndelAllele(bool i, int l, int p, int rp, string s, bool n) |
| 26 |
: insertion(i), length(l), position(p), readPosition(rp), sequence(s), splice(n) |
| 27 |
{ } |
| 28 |
}; |
| 29 |
|
| 30 |
bool FBhomopolymer(string sequence); |
| 31 |
ostream& operator<<(ostream& out, const FBIndelAllele& indel); |
| 32 |
bool operator==(const FBIndelAllele& a, const FBIndelAllele& b); |
| 33 |
bool operator!=(const FBIndelAllele& a, const FBIndelAllele& b); |
| 34 |
bool operator<(const FBIndelAllele& a, const FBIndelAllele& b); |
| 35 |
|
| 36 |
#endif |