]> git.donarmstrong.com Git - mothur.git/blob - chimeraccodecommand.h
modified chimera commands to process multiple fasta files and added checks to pintail...
[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         vector<string> fastaFileNames;
50         vector<string> outputNames;
51         
52         
53 };
54
55 /***********************************************************/
56
57 #endif
58