]> git.donarmstrong.com Git - mothur.git/blob - chimeraslayercommand.h
added pipeline commands which involved change to command factory and command class...
[mothur.git] / chimeraslayercommand.h
1 #ifndef CHIMERASLAYERCOMMAND_H
2 #define CHIMERASLAYERCOMMAND_H
3
4 /*
5  *  chimeraslayercommand.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 ChimeraSlayerCommand : public Command {
21 public:
22         ChimeraSlayerCommand(string);
23         ChimeraSlayerCommand();
24         ~ChimeraSlayerCommand();
25         vector<string> getRequiredParameters();
26         vector<string> getValidParameters();
27         vector<string> getRequiredFiles();
28         map<string, vector<string> > getOutputFiles() { return outputTypes; }
29         int execute();
30         void help();
31         
32                 
33 private:
34
35         struct linePair {
36                 unsigned long int start;
37                 unsigned long int end;
38                 linePair(unsigned long int i, unsigned long int j) : start(i), end(j) {}
39         };
40
41         vector<int> processIDS;   //processid
42         vector<linePair*> lines;
43         
44         int driver(linePair*, string, string, string);
45         int createProcesses(string, string, string);
46                 
47         #ifdef USE_MPI
48         int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, vector<unsigned long int>&);
49         #endif
50
51         bool abort, realign;
52         string fastafile, templatefile, outputDir, search;
53         int processors, window, iters, increment, numwanted, ksize, match, mismatch, parents, minSimilarity, minCoverage, minBS, minSNP, numSeqs, templateSeqsLength;
54         float divR;
55         Chimera* chimera;
56         
57         vector<string> outputNames;
58         map<string, vector<string> > outputTypes;
59         vector<string> fastaFileNames;
60         
61 };
62
63 /***********************************************************/
64
65 #endif
66
67