]> git.donarmstrong.com Git - mothur.git/blobdiff - fullmatrix.h
fixed bug in libshuff
[mothur.git] / fullmatrix.h
index a669f70a1aa80428823ada2c40b42e209c6db8f8..890d07a846006e5e81570402b0fd4e61879e0b68 100644 (file)
@@ -30,6 +30,8 @@ public:
        int getNumSeqs();
        vector<int> getSizes();
        vector<string> getGroups();
+       void setGroups(vector<string> names) { groups = names;  }
+       void setSizes(vector<int> s)             { sizes = s;           }
        int getNumGroups();
        void printMatrix(ostream&);
        float get(int, int);
@@ -41,8 +43,9 @@ private:
        vector<Names> index; // row in vector, sequence group.  need to know this so when we sort it can be updated.
        vector<int> sizes;
        vector<string> groups;
-       void sortGroups(int, int);  //this function sorts the sequences within the matrix.
        
+       void sortGroups(int, int);  //this function sorts the sequences within the matrix.
+       void swapRows(int, int);
        
        GroupMap* groupmap;  //maps sequences to groups they belong to.
        int numSeqs;