]> git.donarmstrong.com Git - mothur.git/blob - chimeracheckcommand.h
modified chimera commands to process multiple fasta files and added checks to pintail...
[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
17
18 /***********************************************************/
19
20 class ChimeraCheckCommand : public Command {
21 public:
22         ChimeraCheckCommand(string);
23         ~ChimeraCheckCommand();
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);
39         int createProcesses(string, string);
40                 
41         #ifdef USE_MPI
42         int driverMPI(int, int, MPI_File&, MPI_File&, vector<long>&);
43         #endif
44
45         bool abort, svg;
46         string fastafile, templatefile, namefile, outputDir;
47         int processors, increment, ksize, numSeqs, templateSeqsLength;
48         Chimera* chimera;
49         vector<string> fastaFileNames;
50         vector<string> nameFileNames;
51         vector<string> outputNames;
52                 
53 };
54
55 /***********************************************************/
56
57 #endif
58
59