]> git.donarmstrong.com Git - mothur.git/blob - flowdata.h
working on pam
[mothur.git] / flowdata.h
1 #ifndef FLOWDATA_H
2 #define FLOWDATA_H
3
4 /*
5  *  flowdata.h
6  *  Mothur
7  *
8  *  Created by Pat Schloss on 12/22/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12
13 #include "mothur.h"
14 #include "mothurout.h"
15 #include "sequence.hpp"
16
17 class FlowData {
18
19 public:
20         FlowData();
21         FlowData(int, float, float, int, string);
22         ~FlowData();
23         bool getNext(ifstream&);
24         string getName();
25         void capFlows(int);
26         bool hasMinFlows(int);
27     bool hasGoodHomoP();
28
29         Sequence getSequence();
30
31         void printFlows(ofstream&);
32         void printFlows(ofstream&, string);
33 private:
34         MothurOut* m;
35         
36         void updateEndFlow();
37         void translateFlow();
38         float signalIntensity, noiseIntensity;
39         int maxHomoP;
40         string seqName, locationString, sequence, baseFlow;
41         int numFlows, maxFlows, endFlow;
42         vector<float> flowData;
43     string getSequenceName(ifstream&);
44 };
45
46 #endif