]> git.donarmstrong.com Git - mothur.git/blob - chimeracheckcommand.h
added pipeline commands which involved change to command factory and command class...
[mothur.git] / chimeracheckcommand.h
1 #ifndef CHIMERACHECKCOMMAND_H
2 #define CHIMERACHECKCOMMAND_H
3
4 /*
5  *  chimeracheckcommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 3/31/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12
13 #include "mothur.h"
14 #include "command.hpp"
15 #include "chimera.h"
16 #include "chimeracheckrdp.h"
17
18
19 /***********************************************************/
20
21 class ChimeraCheckCommand : public Command {
22 public:
23         ChimeraCheckCommand(string);
24         ChimeraCheckCommand();
25         ~ChimeraCheckCommand();
26         vector<string> getRequiredParameters();
27         vector<string> getValidParameters();
28         vector<string> getRequiredFiles();
29         map<string, vector<string> > getOutputFiles() { return outputTypes; }
30         int execute();
31         void help();
32         
33                 
34 private:
35
36         struct linePair {
37                 unsigned long int start;
38                 unsigned long int end;
39                 linePair(unsigned long int i, unsigned long int j) : start(i), end(j) {}
40         };
41
42         vector<int> processIDS;   //processid
43         vector<linePair*> lines;
44         
45         int driver(linePair*, string, string);
46         int createProcesses(string, string);
47                 
48         #ifdef USE_MPI
49         int driverMPI(int, int, MPI_File&, MPI_File&, vector<unsigned long int>&);
50         #endif
51
52         bool abort, svg;
53         string fastafile, templatefile, namefile, outputDir;
54         int processors, increment, ksize, numSeqs, templateSeqsLength;
55         Chimera* chimera;
56         vector<string> fastaFileNames;
57         vector<string> nameFileNames;
58         vector<string> outputNames;
59         map<string, vector<string> > outputTypes;
60                 
61 };
62
63 /***********************************************************/
64
65 #endif
66
67