]> git.donarmstrong.com Git - mothur.git/blob - distancecommand.h
precluster command finished
[mothur.git] / distancecommand.h
1 #ifndef DISTANCECOMMAND_H
2 #define DISTANCECOMMAND_H
3
4 /*
5  *  distancecommand.h
6  *  Mothur
7  *
8  *  Created by Sarah Westcott on 5/7/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12
13 #include "mothur.h"
14 #include "command.hpp"
15 #include "validcalculator.h"
16 #include "dist.h"
17 #include "sequencedb.h"
18
19
20 class DistanceCommand : public Command {
21
22 public:
23         DistanceCommand(string);        
24         ~DistanceCommand();
25         int execute();  
26         void help();
27         
28 private:
29         struct linePair {
30                 int start;
31                 int end;
32         };
33         
34         Dist* distCalculator;
35         SequenceDB alignDB;
36
37         string countends, phylip, fastafile, calc;
38         int processors;
39         float cutoff;
40         map<int, int> processIDS;   //end line, processid
41         vector<linePair*> lines;
42         
43         bool abort;
44         vector<string>  Estimators; //holds estimators to be used
45         
46         //void appendFiles(string, string);
47         void createProcesses(string);
48         int driver(/*Dist*, SequenceDB, */int, int, string, float);
49
50 };
51
52 #endif
53
54
55