]> git.donarmstrong.com Git - mothur.git/blobdiff - readblast.h
added modify names parameter to set.dir
[mothur.git] / readblast.h
index 128c144fc3d29109453331c059b478c18f7a6bfe..97ce6c74cbf768aeec8d2f879fb7c8ad887a1042 100644 (file)
@@ -10,7 +10,7 @@
  */
 
 #include "mothur.h"
-#include "sparsematrix.hpp"
+#include "sparsedistancematrix.h"
 #include "nameassignment.hpp"
 
 /****************************************************************************************/
@@ -25,11 +25,11 @@ public:
        ReadBlast(string, float, float, int, bool, bool); //blastfile, cutoff, penalty, length of overlap, min or max bsr, hclusterWanted
        ~ReadBlast() {}
        
-       void read(NameAssignment*);
-       SparseMatrix* getDistMatrix()           {       return matrix;          }
-       vector<seqDist> getOverlapMatrix()      {       return overlap;         }
-       string getOverlapFile()                         {       return overlapFile;     }
-       string getDistFile()                            {       return distFile;        }
+       int read(NameAssignment*);
+       SparseDistanceMatrix* getDistMatrix()           {       return matrix;          }
+       vector<seqDist> getOverlapMatrix()          {   return overlap;         }
+       string getOverlapFile()                     {   return overlapFile;     }
+       string getDistFile()                        {   return distFile;        }
        
 private:
        string blastfile, overlapFile, distFile;
@@ -38,10 +38,11 @@ private:
        bool minWanted;  //if true choose min bsr, if false choose max bsr
        bool hclusterWanted;
        
-       SparseMatrix* matrix;
+       SparseDistanceMatrix* matrix;
        vector<seqDist> overlap;
+       MothurOut* m;
        
-       void readNames(NameAssignment*);
+       int readNames(NameAssignment*);
 };
 
 /*******************************************************************************************/