]> git.donarmstrong.com Git - mothur.git/blob - rarefact.h
removed read.dist, read.otu, read.tree and globaldata. added current to defaults...
[mothur.git] / rarefact.h
1 #ifndef RAREFACT_H
2 #define RAREFACT_H
3
4 #include "rarefactioncurvedata.h"
5 #include "raredisplay.h"
6 #include "ordervector.hpp"
7 #include "mothur.h"
8
9
10 class Rarefact {
11         
12 public:
13         Rarefact(OrderVector* o, vector<Display*> disp, int p) :
14                         numSeqs(o->getNumSeqs()), order(o), displays(disp), label(o->getLabel()), processors(p)  { m = MothurOut::getInstance(); }
15         Rarefact(vector<SharedRAbundVector*> shared, vector<Display*> disp) :
16                                          lookup(shared), displays(disp) {  m = MothurOut::getInstance(); }
17
18         ~Rarefact(){};
19         int getCurve(float, int);
20         int getSharedCurve(float, int);
21         
22 private:
23         
24         OrderVector* order;
25         vector<Display*> displays;
26         int numSeqs, numGroupComb, processors;
27         string label;
28         void mergeVectors(SharedRAbundVector*, SharedRAbundVector*);
29         vector<SharedRAbundVector*> lookup; 
30         MothurOut* m;
31         
32         int createProcesses(vector<int>&, RarefactionCurveData*, int);
33         int driver(RarefactionCurveData*, int, int);
34
35 };
36
37
38 #endif
39