]> git.donarmstrong.com Git - mothur.git/blob - flowdata.h
dafeab3e034b419ba7d4efcc998095cd984e014a
[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(ifstream&, float, float, int);
22         ~FlowData(){};
23         void capFlows(int);
24         bool hasMinFlows(int);
25         Sequence getSequence();
26         
27         int getSeqLength();
28         void printFlows(ofstream&);
29         void printFlows(ofstream&, string);
30         void printFASTA(ofstream&);
31 private:
32         MothurOut* m;
33
34         void findDeadSpot(float, float, int);
35         void translateFlow();
36         
37         string seqName, locationString, sequence, baseFlow;
38         int numFlows, seqLength, deadSpot;
39         vector<float> flowData;
40 };
41
42 #endif