]> git.donarmstrong.com Git - mothur.git/blob - chimeraslayercommand.h
removed read.dist, read.otu, read.tree and globaldata. added current to defaults...
[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         
26         vector<string> setParameters();
27         string getCommandName()                 { return "chimera.slayer";              }
28         string getCommandCategory()             { return "Sequence Processing"; }
29         string getHelpString(); 
30         
31         int execute(); 
32         void help() { m->mothurOut(getHelpString()); }          
33         
34 private:
35
36         struct linePair {
37                 unsigned long int start;
38                 unsigned long int end;
39                 linePair(unsigned long int i, unsigned long int j) : start(i), end(j) {}
40         };
41
42         vector<int> processIDS;   //processid
43         vector<linePair*> lines;
44         
45         int driver(linePair*, string, string, string, string);
46         int createProcesses(string, string, string, string);
47         int divideInHalf(Sequence, string&, string&);
48                 
49         #ifdef USE_MPI
50         int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, MPI_File&, vector<unsigned long int>&);
51         #endif
52
53         bool abort, realign, trim, trimera;
54         string fastafile, templatefile, outputDir, search, namefile, includeAbunds;
55         int processors, window, iters, increment, numwanted, ksize, match, mismatch, parents, minSimilarity, minCoverage, minBS, minSNP, numSeqs, templateSeqsLength;
56         float divR;
57         Chimera* chimera;
58         
59         vector<string> outputNames;
60         vector<string> fastaFileNames;
61         vector<string> nameFileNames;
62         
63 };
64
65 /***********************************************************/
66
67 #endif
68
69