]> git.donarmstrong.com Git - mothur.git/blob - screenseqscommand.h
started work on sffinfo command. fixed bug across all paralellized commands if the...
[mothur.git] / screenseqscommand.h
1 #ifndef SCREENSEQSCOMMAND_H
2 #define SCREENSEQSCOMMAND_H
3
4 /*
5  *  screenseqscommand.h
6  *  Mothur
7  *
8  *  Created by Pat Schloss on 6/3/09.
9  *  Copyright 2009 Patrick D. Schloss. All rights reserved.
10  *
11  */
12 #include "mothur.h"
13 #include "command.hpp"
14
15 class ScreenSeqsCommand : public Command {
16         
17 public:
18         ScreenSeqsCommand(string);
19         ~ScreenSeqsCommand();
20         int execute();
21         void help();
22         
23 private:
24
25         struct linePair {
26                 unsigned long int start;
27                 int numSeqs;
28                 linePair(unsigned long int i, int j) : start(i), numSeqs(j) {}
29         };
30         vector<int> processIDS;   //processid
31         vector<linePair*> lines;
32
33         int screenNameGroupFile(set<string>);
34         int screenGroupFile(set<string>);
35         int screenAlignReport(set<string>);
36         
37         int driver(linePair*, string, string, string, string, set<string>&);
38         int createProcesses(string, string, string, string, set<string>&);
39         
40         #ifdef USE_MPI
41         int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, MPI_File&, vector<long>&, set<string>&);
42         #endif
43
44         bool abort;
45         string fastafile, namefile, groupfile, alignreport, outputDir;
46         int startPos, endPos, maxAmbig, maxHomoP, minLength, maxLength, processors;
47         vector<string> outputNames;
48 };
49
50 #endif