]> git.donarmstrong.com Git - mothur.git/blobdiff - listvector.hpp
finishing the container classes, combining read.otu and read.list commands. some...
[mothur.git] / listvector.hpp
index dbd61cd0d8f10cba4ea87b4075bbec673f36b19b..e195f4e089f48afd94d3027470b8bf42b1e165a3 100644 (file)
@@ -1,13 +1,19 @@
 #ifndef LIST_H
 #define LIST_H
 
+#include <Carbon/Carbon.h>
 #include "datavector.hpp"
-#include "groupmap.h"
-#include "globaldata.hpp"
-#include "sharedordervector.h"
 #include <iostream>
 #include <map>
 
+/* This class is a child to datavector.  It represents OTU information at a certain distance. 
+       A list vector can be converted into and ordervector, rabundvector or sabundvector.
+       Each member of the internal container "data" represents an individual OTU.
+       So data[0] = "a,b,c,d,e,f".
+       example: listvector             =       a,b,c,d,e,f             g,h,i           j,k             l               m  
+                        rabundvector   =       6                               3                       2               1               1
+                        sabundvector   =       2               1               1               0               0               1
+                        ordervector    =       1       1       1       1       1       1       2       2       2       3       3       4       5 */
 
 class ListVector : public DataVector {
        
@@ -35,12 +41,9 @@ public:
        RAbundVector getRAbundVector();
        SAbundVector getSAbundVector();
        OrderVector getOrderVector(map<string,int>*);
-       SharedOrderVector* getSharedOrderVector();
        
 private:
-       vector<string> data;
-       GlobalData* globaldata;
-       GroupMap* groupmap;
+       vector<string> data;  //data[i] is a list of names of sequences in the ith OTU.
        int maxRank;
        int numBins;
        int numSeqs;