4 #include "datavector.hpp"
6 /* This class is a child to datavector. It represents OTU information at a certain distance.
7 A list vector can be converted into and ordervector, rabundvector or sabundvector.
8 Each member of the internal container "data" represents an individual OTU.
9 So data[0] = "a,b,c,d,e,f".
10 example: listvector = a,b,c,d,e,f g,h,i j,k l m
11 rabundvector = 6 3 2 1 1
12 sabundvector = 2 1 1 0 0 1
13 ordervector = 1 1 1 1 1 1 2 2 2 3 3 4 5 */
15 class ListVector : public DataVector {
20 // ListVector(const ListVector&);
21 ListVector(string, vector<string>);
22 ListVector(const ListVector& lv) : DataVector(lv.label), data(lv.data), maxRank(lv.maxRank), numBins(lv.numBins), numSeqs(lv.numSeqs){};
23 ListVector(ifstream&);
26 int getNumBins() { return numBins; }
27 int getNumSeqs() { return numSeqs; }
28 int getMaxRank() { return maxRank; }
30 void set(int, string);
32 void push_back(string);
38 RAbundVector getRAbundVector();
39 SAbundVector getSAbundVector();
40 OrderVector getOrderVector(map<string,int>*);
43 vector<string> data; //data[i] is a list of names of sequences in the ith OTU.