X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=sharedrabundvector.h;h=664718518e276c7c84984f5c1fe76c9b3bf46523;hp=6584d1d2e9198cb5fed6ebc3d43e9d35f608da00;hb=615301e57c25e241356a9c2380648d117709458d;hpb=89f19f9c6ab89c2f6c7c6921a328ae87bce6f8e3 diff --git a/sharedrabundvector.h b/sharedrabundvector.h index 6584d1d..6647185 100644 --- a/sharedrabundvector.h +++ b/sharedrabundvector.h @@ -13,16 +13,17 @@ #include "datavector.hpp" #include "sharedordervector.h" #include "sharedsabundvector.h" +#include "sharedrabundfloatvector.h" #include "rabundvector.hpp" -#include "groupmap.h" +//#include "groupmap.h" -/* This class is a child to datavector. It represents OTU information at a certain distance. +/* DataStructure for a shared file. + This class is a child to datavector. It represents OTU information at a certain distance. It is similiar to an rabundvector except each member of data knows which group it belongs to. Each member of the internal container "data" is a struct of type individual. An individual which knows the OTU from which it came, the group it is in and its abundance. */ -class GlobalData; class SharedRAbundVector : public DataVector { @@ -39,6 +40,8 @@ public: int getMaxRank(); string getGroup(); void setGroup(string); + string getBinLabel(); + void setBinLabel(string); int getGroupIndex(); void setGroupIndex(int); @@ -47,6 +50,7 @@ public: individual get(int); vector getData(); int getAbundance(int); + vector getAbundances(); int numNZ(); void sortD(); //Sorts the data in descending order. void push_front(int, int, string); //abundance, otu, groupname @@ -60,6 +64,7 @@ public: vector::reverse_iterator rend(); void print(ostream&); + void printHeaders(ostream&); RAbundVector getRAbundVector(); RAbundVector getRAbundVector2(); @@ -69,17 +74,20 @@ public: SharedSAbundVector getSharedSAbundVector(); SharedRAbundVector getSharedRAbundVector(); vector getSharedRAbundVectors(); + vector getSharedRAbundFloatVectors(vector); private: vector data; vector lookup; - GlobalData* globaldata; - GroupMap* groupmap; + //GlobalData* globaldata; + //GroupMap* groupmap; int maxRank; int numBins; int numSeqs; string group; int index; + + int eliminateZeroOTUS(vector&); };