]> git.donarmstrong.com Git - mothur.git/blobdiff - fullmatrix.h
fixed bug in read.tree
[mothur.git] / fullmatrix.h
index f3ad0e73dfb2615e4fbeb5bbd96f1a025c6a0ae6..0bd5c873ea4da00bc48d8a3395844f80151bd630 100644 (file)
 
 using namespace std;
 
+struct Names {
+       string          groupname;
+       string          seqName;
+       float           minDist;
+};
+
+
 class FullMatrix {
        
        public:
@@ -27,12 +34,11 @@ class FullMatrix {
                void printMatrix(ostream&);
        
        private:
-               void sortGroups();  //this function sorts the sequences within the matrix.
-               void quicksort(int, int, int);//row of matrix, low, high and row number
+               void sortGroups(int, int);  //this function sorts the sequences within the matrix.
                void readSquareMatrix(ifstream&);  
                void readLTMatrix(ifstream&);
                vector< vector<float> > matrix;  //a 2D distance matrix of all the sequences and their distances to eachother.
-               map<int, string> index; // row in vector, sequence group.  need to know this so when we sort it can be updated.
+               map<int, Names> index; // row in vector, sequence group.  need to know this so when we sort it can be updated.
                GroupMap* groupmap;  //maps sequences to groups they belong to.
                GlobalData* globaldata;
                int numSeqs;