string group;
int bin;
int abundance;
+ bool operator()(const individual& i1, const individual& i2) {
+ return (i1.abundance > i2.abundance);
+ }
};
#include "sabundvector.hpp"
#include "rabundvector.hpp"
#include "sharedrabundvector.h"
#include "sharedsabundvector.h"
+#include "globaldata.hpp"
+#include "groupmap.h"
class SharedOrderVector : public DataVector {
SharedOrderVector(const SharedOrderVector& ov) : DataVector(ov.label), data(ov.data), maxRank(ov.maxRank), numBins(ov.numBins), numSeqs(ov.numSeqs), needToUpdate(ov.needToUpdate) {if(needToUpdate == 1){ updateStats();}};
SharedOrderVector(string, vector<individual>);
-// SharedOrderVector(ifstream&);
+ SharedOrderVector(ifstream&);
~SharedOrderVector(){};
void set(int, int, int, string); //index, OTU, abundance, group
SharedSAbundVector getSharedSAbundVector(string); //get the sharedSabundvector for a sepecific group
private:
+ GlobalData* globaldata;
+ GroupMap* groupmap;
vector<individual> data;
map< int, vector<individual> >::iterator it;
int maxRank;