X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=fullmatrix.h;h=9de7ead566d4d5446b5ea405b5e3c7eb24991cc0;hb=70491a12902e89b85cfa6b44a7b7fbe066ee2ac1;hp=890d07a846006e5e81570402b0fd4e61879e0b68;hpb=9354b70bb84f6dd52ff4a1955754bcbf7edeedbf;p=mothur.git diff --git a/fullmatrix.h b/fullmatrix.h index 890d07a..9de7ead 100644 --- a/fullmatrix.h +++ b/fullmatrix.h @@ -11,7 +11,6 @@ #include "mothur.h" #include "groupmap.h" -#include "globaldata.hpp" #include "progress.hpp" @@ -23,8 +22,8 @@ struct Names { class FullMatrix { public: - FullMatrix(){}; - FullMatrix(ifstream&); + //FullMatrix(){ m = MothurOut::getInstance(); } + FullMatrix(ifstream&, GroupMap*, bool); ~FullMatrix(){}; int getNumSeqs(); @@ -35,11 +34,12 @@ public: int getNumGroups(); void printMatrix(ostream&); float get(int, int); + Names getRowInfo(int row) { return index[row]; } private: vector< vector > matrix; //a 2D distance matrix of all the sequences and their distances to eachother. - void readSquareMatrix(ifstream&); - void readLTMatrix(ifstream&); + int readSquareMatrix(ifstream&); + int readLTMatrix(ifstream&); vector index; // row in vector, sequence group. need to know this so when we sort it can be updated. vector sizes; vector groups; @@ -51,7 +51,8 @@ private: int numSeqs; int numGroups; int numUserGroups; - GlobalData* globaldata; + bool sim; + MothurOut* m; }; #endif