]> git.donarmstrong.com Git - mothur.git/blob - chimerapintailcommand.h
some bug fixes
[mothur.git] / chimerapintailcommand.h
1 #ifndef CHIMERAPINTAILCOMMAND_H
2 #define CHIMERAPINTAILCOMMAND_H
3
4 /*
5  *  chimerapintailcommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 4/1/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
17
18 /***********************************************************/
19
20 class ChimeraPintailCommand : public Command {
21
22 public:
23
24         ChimeraPintailCommand(string);
25         ~ChimeraPintailCommand();
26         int execute();
27         void help();
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, string);
40         int createProcesses(string, string, string);
41         
42         #ifdef USE_MPI
43         int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, vector<unsigned long int>&);
44         #endif
45
46         bool abort, filter;
47         string fastafile, templatefile, consfile, quanfile, maskfile, outputDir, inputDir;
48         int processors, window, increment, numSeqs, templateSeqsLength;
49         Chimera* chimera;
50         vector<string> outputNames;
51         vector<string> fastaFileNames;
52         
53         
54 };
55
56 /***********************************************************/
57
58 #endif
59
60