]> git.donarmstrong.com Git - mothur.git/blob - clusterdoturcommand.h
fixed bug with tree reading
[mothur.git] / clusterdoturcommand.h
1 #ifndef CLUSTERDOTURCOMMAND_H
2 #define CLUSTERDOTURCOMMAND_H
3
4 /*
5  *  clusterdoturcommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 10/27/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12
13 #include "command.hpp"
14 #include "nameassignment.hpp"
15 #include "rabundvector.hpp"
16 #include "sabundvector.hpp"
17 #include "listvector.hpp"
18
19
20 class ClusterDoturCommand : public Command {
21         
22 public:
23         ClusterDoturCommand(string);
24         ClusterDoturCommand();
25         ~ClusterDoturCommand(){}
26         
27         vector<string> setParameters();
28         string getCommandName()                 { return "cluster.classic";             }
29         string getCommandCategory()             { return "Clustering";                  }
30         string getHelpString(); 
31         
32         int execute(); 
33         void help() { m->mothurOut(getHelpString()); }  
34         
35 private:
36         bool abort, hard, sim;
37         string method, fileroot, tag, outputDir, phylipfile, namefile;
38         double cutoff;
39         int precision, length;
40         ofstream sabundFile, rabundFile, listFile;
41         NameAssignment* nameMap;
42         ListVector* list;
43         RAbundVector* rabund;
44         RAbundVector oldRAbund;
45         ListVector oldList;
46         
47         void printData(string label);
48         vector<string> outputNames;
49 };
50
51 #endif
52