]> git.donarmstrong.com Git - mothur.git/blob - chimeraccodecommand.h
added MPI code, broke up chimera.seqs into 5 separated commands, added parse.sff...
[mothur.git] / chimeraccodecommand.h
1 #ifndef CHIMERACCODECOMMAND_H
2 #define CHIMERACCODECOMMAND_H
3
4 /*
5  *  chimeraccodecommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 3/30/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 ChimeraCcodeCommand : public Command {
21 public:
22         ChimeraCcodeCommand(string);
23         ~ChimeraCcodeCommand();
24         int execute();
25         void help();
26         
27                 
28 private:
29
30         struct linePair {
31                 int start;
32                 int numSeqs;
33                 linePair(long int i, int j) : start(i), numSeqs(j) {}
34         };
35         vector<int> processIDS;   //processid
36         vector<linePair*> lines;
37         
38         int driver(linePair*, string, string, string);
39         int createProcesses(string, string, string);
40         
41         #ifdef USE_MPI
42         int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, vector<long>&);
43         #endif
44
45         bool abort, filter, MPIWroteAccnos;
46         string fastafile, templatefile, outputDir, maskfile;
47         int processors, window, numwanted, numSeqs, templateSeqsLength;
48         Chimera* chimera;
49         
50         
51 };
52
53 /***********************************************************/
54
55 #endif
56