X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flowdata.h;fp=flowdata.h;h=dafeab3e034b419ba7d4efcc998095cd984e014a;hb=d635b39347cd81943ea50de7b813a0a5d743b0c0;hp=0000000000000000000000000000000000000000;hpb=f1e2f581f91d88e9d6c7a69e495b36031b29e4ab;p=mothur.git diff --git a/flowdata.h b/flowdata.h new file mode 100644 index 0000000..dafeab3 --- /dev/null +++ b/flowdata.h @@ -0,0 +1,42 @@ +#ifndef FLOWDATA_H +#define FLOWDATA_H + +/* + * flowdata.h + * Mothur + * + * Created by Pat Schloss on 12/22/10. + * Copyright 2010 Schloss Lab. All rights reserved. + * + */ + +#include "mothur.h" +#include "mothurout.h" +#include "sequence.hpp" + +class FlowData { + +public: + FlowData(); + FlowData(ifstream&, float, float, int); + ~FlowData(){}; + void capFlows(int); + bool hasMinFlows(int); + Sequence getSequence(); + + int getSeqLength(); + void printFlows(ofstream&); + void printFlows(ofstream&, string); + void printFASTA(ofstream&); +private: + MothurOut* m; + + void findDeadSpot(float, float, int); + void translateFlow(); + + string seqName, locationString, sequence, baseFlow; + int numFlows, seqLength, deadSpot; + vector flowData; +}; + +#endif