| 1 |
#ifndef FREEBAYES_NONCALL_H |
| 2 |
#define FREEBAYES_NONCALL_H |
| 3 |
|
| 4 |
#include <string> |
| 5 |
#include <vector> |
| 6 |
#include <set> |
| 7 |
#include <map> |
| 8 |
#include <utility> |
| 9 |
#include "Utility.h" |
| 10 |
#include "Allele.h" |
| 11 |
#include "Sample.h" |
| 12 |
|
| 13 |
using namespace std; |
| 14 |
|
| 15 |
class NonCall { |
| 16 |
public: |
| 17 |
NonCall(void) |
| 18 |
: refCount(0) |
| 19 |
, reflnQ(0) |
| 20 |
, altCount(0) |
| 21 |
, altlnQ(0) |
| 22 |
, minDepth(0) |
| 23 |
, nCount(0) |
| 24 |
|
| 25 |
{ } |
| 26 |
NonCall(int rc, long double rq, int ac, long double aq, int mdp) |
| 27 |
: refCount(rc) |
| 28 |
, reflnQ(rq) |
| 29 |
, altCount(ac) |
| 30 |
, altlnQ(aq) |
| 31 |
, minDepth(mdp) |
| 32 |
{ } |
| 33 |
int refCount; |
| 34 |
int altCount; |
| 35 |
int minDepth; |
| 36 |
int nCount ; |
| 37 |
long double reflnQ; |
| 38 |
long double altlnQ; |
| 39 |
}; |
| 40 |
|
| 41 |
class NonCalls : public map<string, map<long, map<string, NonCall> > > { |
| 42 |
public: |
| 43 |
void record(const string& seqName, long pos, const Samples& samples); |
| 44 |
NonCall aggregateAll(void); |
| 45 |
void aggregatePerSample(map<string, NonCall>& perSite); |
| 46 |
pair<string, long> firstPos(void); |
| 47 |
pair<string, long> lastPos(void); |
| 48 |
}; |
| 49 |
|
| 50 |
#endif |