1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#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 "utils.hpp"
#include "mothurout.h"
#include "sequence.hpp"
class FlowData {
public:
FlowData();
FlowData(int, float, float, int, string);
~FlowData();
bool getNext(ifstream&);
string getName();
void capFlows(int);
bool hasMinFlows(int);
bool hasGoodHomoP();
Sequence getSequence();
void printFlows(ofstream&);
void printFlows(ofstream&, string);
void printFlows(OutputWriter*);
void printFlows(OutputWriter*, string);
private:
MothurOut* m;
Utils util;
void updateEndFlow();
void translateFlow();
float signalIntensity, noiseIntensity;
int maxHomoP;
string seqName, locationString, sequence, baseFlow;
int numFlows, maxFlows, endFlow;
vector<float> flowData;
string getSequenceName(ifstream&);
};
#endif
|