]> git.donarmstrong.com Git - mothur.git/blob - chimeraslayercommand.h
fixed catchall PATH variable bug added trimera to chimera.slayer
[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, string);
45         int createProcesses(string, string, string, string);
46         int divideInHalf(Sequence, string&, string&);
47                 
48         #ifdef USE_MPI
49         int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, MPI_File&, vector<unsigned long int>&);
50         #endif
51
52         bool abort, realign, trim, trimera;
53         string fastafile, templatefile, outputDir, search, namefile, includeAbunds;
54         int processors, window, iters, increment, numwanted, ksize, match, mismatch, parents, minSimilarity, minCoverage, minBS, minSNP, numSeqs, templateSeqsLength;
55         float divR;
56         Chimera* chimera;
57         
58         vector<string> outputNames;
59         map<string, vector<string> > outputTypes;
60         vector<string> fastaFileNames;
61         vector<string> nameFileNames;
62         
63 };
64
65 /***********************************************************/
66
67 #endif
68
69