bool operator()(const individual& i1, const individual& i2) {
return (i1.abundance > i2.abundance);
}
+ individual() { group = ""; bin = 0; abundance = 0; }
};
+struct individualFloat {
+ string group;
+ int bin;
+ float abundance;
+ bool operator()(const individual& i1, const individual& i2) {
+ return (i1.abundance > i2.abundance);
+ }
+ individualFloat() { group = ""; bin = 0; abundance = 0.0; }
+};
+
+
#include "sabundvector.hpp"
#include "rabundvector.hpp"
#include "sharedrabundvector.h"
#include "sharedsabundvector.h"
-#include "globaldata.hpp"
#include "groupmap.h"
-//#include "globaldata.hpp"
-
-class GlobalData;
class SharedOrderVector : public DataVector {
vector<individual>::iterator end();
void push_back(int, int, string); //OTU, abundance, group MUST CALL UPDATE STATS AFTER PUSHBACK!!!
void updateStats();
+ void clear();
int getNumBins();
int getNumSeqs();
vector<SharedRAbundVector*> getSharedRAbundVector(); //returns sharedRabundVectors for all the users groups
private:
- GlobalData* globaldata;
GroupMap* groupmap;
vector<individual> data;
map< int, vector<individual> >::iterator it;