]> git.donarmstrong.com Git - mothur.git/blobdiff - readmatrix.hpp
added homova command
[mothur.git] / readmatrix.hpp
index 2c47832f166ea0df47a7b5f5a8760c73f9ce2dfe..31a4da49c8decf24b75b059db4890d377fa54aef 100644 (file)
@@ -21,10 +21,10 @@ class SparseMatrix;
 class ReadMatrix {
 
 public:
-       ReadMatrix(){   D = new SparseMatrix();  m = MothurOut::getInstance();  }
+       ReadMatrix(){   D = new SparseMatrix();  m = MothurOut::getInstance();   globaldata = GlobalData::getInstance(); }
        virtual ~ReadMatrix() {}
-       virtual void read(NameAssignment*){};
-       virtual void read(GlobalData* globaldata){};
+       virtual int read(NameAssignment*){ return 1; }
+       
        void setCutoff(float c)                 {       cutoff = c;             }
        SparseMatrix* getMatrix()               {       return D;               }
        ListVector* getListVector()             {       return list;    }
@@ -38,6 +38,7 @@ protected:
        GlobalData* globaldata;
        float cutoff;
        MothurOut* m;
+       bool sim;
 };