]> git.donarmstrong.com Git - mothur.git/blob - readcluster.h
added hcluster command and fixed some bugs, namely one with smart distancing.
[mothur.git] / readcluster.h
1 #ifndef READCLUSTER_H
2 #define READCLUSTER_H
3 /*
4  *  readcluster.h
5  *  Mothur
6  *
7  *  Created by westcott on 10/28/09.
8  *  Copyright 2009 Schloss Lab. All rights reserved.
9  *
10  */
11
12
13 #include "mothur.h"
14 #include "nameassignment.hpp"
15 #include "listvector.hpp"
16
17
18 /******************************************************/
19
20 class ReadCluster {
21         
22 public:
23         ReadCluster(string, float);
24         ~ReadCluster();
25         void read(NameAssignment*);
26         string getOutputFile() { return OutPutFile; }
27         void setFormat(string f) { format = f;  }
28         ListVector* getListVector()             {       return list;    }
29         
30 private:
31         string distFile;
32         string OutPutFile, format;
33         ListVector* list;
34         float cutoff;
35         
36         void createHClusterFile();
37         void convertPhylip2Column(NameAssignment*);
38 };
39
40 /******************************************************/
41
42 #endif
43