-#ifndef CLUSTER_H
-#define CLUSTER_H
+#ifndef CLUSTERCLASSIC_H
+#define CLUSTERCLASSIC_H
-#include "mothur.h"
#include "mothurout.h"
#include "listvector.hpp"
#include "rabundvector.hpp"
#include "nameassignment.hpp"
+#include "counttable.h"
/*
* clusterclassic.h
public:
ClusterClassic(float, string, bool);
int readPhylipFile(string, NameAssignment*);
+ int readPhylipFile(string, CountTable*);
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<string, int> getSeqtoBin() { return seq2Bin; }
struct colDist {
int col;
int row;
- double dist;
+ float dist;
colDist(int r, int c, double d) : row(r), col(c), dist(d) {}
};
RAbundVector* rabund;
ListVector* list;
- vector< vector<double> > dMatrix;
+ vector< vector<float> > dMatrix;
//vector<colDist> rowSmallDists;
int smallRow;
bool mapWanted, sim;
double cutoff, aboveCutoff;
map<string, int> seq2Bin;
- string method;
+ string method, tag;
MothurOut* m;
};