X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=clusterclassic.h;h=932c806ec42ac52a4a90670239d0c4a6a27b1efb;hb=7a2c74cd89b3c21e9ec2207e529304db68f1391a;hp=37d9b1b44cd1e13aa4198f5bde7e16c46de14437;hpb=6cf9539162b0fb0b5c0b99673e999df3cd717c55;p=mothur.git diff --git a/clusterclassic.h b/clusterclassic.h index 37d9b1b..932c806 100644 --- a/clusterclassic.h +++ b/clusterclassic.h @@ -1,12 +1,11 @@ -#ifndef CLUSTER_H -#define CLUSTER_H +#ifndef CLUSTERCLASSIC_H +#define CLUSTERCLASSIC_H -#include "mothur.h" #include "mothurout.h" #include "listvector.hpp" -#include "globaldata.hpp" #include "rabundvector.hpp" +#include "nameassignment.hpp" /* * clusterclassic.h @@ -21,14 +20,14 @@ class ClusterClassic { public: - ClusterClassic(float, string); + ClusterClassic(float, string, bool); int readPhylipFile(string, NameAssignment*); void update(double&); double getSmallDist() { return smallDist; } int getNSeqs() { return nseqs; } ListVector* getListVector() { return list; } RAbundVector* getRAbundVector() { return rabund; } - string getTag(); + string getTag() { return tag; } void setMapWanted(bool m); map getSeqtoBin() { return seq2Bin; } @@ -43,24 +42,23 @@ private: int col; int row; double dist; - colDist(int i, int r, double d) : row(r), col(i), dist(d) {} + colDist(int r, int c, double d) : row(r), col(c), dist(d) {} }; RAbundVector* rabund; ListVector* list; vector< vector > dMatrix; - vector rowSmallDists; + //vector rowSmallDists; int smallRow; int smallCol, nseqs; double smallDist; - bool mapWanted; - float cutoff; + bool mapWanted, sim; + double cutoff, aboveCutoff; map seq2Bin; - string method; + string method, tag; MothurOut* m; - GlobalData* globaldata; }; #endif