]> git.donarmstrong.com Git - mothur.git/blob - chimeracheckcommand.h
fixes while testing 1.12.0
[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         int execute();
26         void help();
27         
28                 
29 private:
30
31         struct linePair {
32                 unsigned long int start;
33                 int numSeqs;
34                 linePair(unsigned long int i, int j) : start(i), numSeqs(j) {}
35         };
36         vector<int> processIDS;   //processid
37         vector<linePair*> lines;
38         
39         int driver(linePair*, string, string);
40         int createProcesses(string, string);
41                 
42         #ifdef USE_MPI
43         int driverMPI(int, int, MPI_File&, MPI_File&, vector<long>&);
44         #endif
45
46         bool abort, svg;
47         string fastafile, templatefile, namefile, outputDir;
48         int processors, increment, ksize, numSeqs, templateSeqsLength;
49         Chimera* chimera;
50         vector<string> fastaFileNames;
51         vector<string> nameFileNames;
52         vector<string> outputNames;
53                 
54 };
55
56 /***********************************************************/
57
58 #endif
59
60