X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=fullmatrix.h;h=0ab1d7175dce3b9bdef4758b83dffc26ace8079b;hb=3659285c05daa94306a7b61dd97ec945b23d472b;hp=f3ad0e73dfb2615e4fbeb5bbd96f1a025c6a0ae6;hpb=9651e8e7172d86707b34af15e95ec60ad4c3c3f9;p=mothur.git diff --git a/fullmatrix.h b/fullmatrix.h index f3ad0e7..0ab1d71 100644 --- a/fullmatrix.h +++ b/fullmatrix.h @@ -16,6 +16,12 @@ using namespace std; +struct Names { + string groupname; + string seqName; +}; + + class FullMatrix { public: @@ -27,12 +33,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 > matrix; //a 2D distance matrix of all the sequences and their distances to eachother. - map index; // row in vector, sequence group. need to know this so when we sort it can be updated. + map 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;