1 #ifndef SCREENSEQSCOMMAND_H
2 #define SCREENSEQSCOMMAND_H
8 * Created by Pat Schloss on 6/3/09.
9 * Copyright 2009 Patrick D. Schloss. All rights reserved.
13 #include "command.hpp"
15 class ScreenSeqsCommand : public Command {
18 ScreenSeqsCommand(string);
20 ~ScreenSeqsCommand() {}
22 vector<string> setParameters();
23 string getCommandName() { return "screen.seqs"; }
24 string getCommandCategory() { return "Sequence Processing"; }
25 string getHelpString();
26 string getCitation() { return "http://www.mothur.org/wiki/Screen.seqs"; }
29 void help() { m->mothurOut(getHelpString()); }
35 unsigned long int start;
36 unsigned long int end;
37 linePair(unsigned long int i, unsigned long int j) : start(i), end(j) {}
40 vector<int> processIDS; //processid
41 vector<linePair*> lines;
43 int screenNameGroupFile(set<string>);
44 int screenGroupFile(set<string>);
45 int screenAlignReport(set<string>);
46 int screenQual(set<string>);
48 int driver(linePair*, string, string, string, set<string>&);
49 int createProcesses(string, string, string, set<string>&);
52 int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, vector<unsigned long int>&, set<string>&);
56 string fastafile, namefile, groupfile, alignreport, outputDir, qualfile;
57 int startPos, endPos, maxAmbig, maxHomoP, minLength, maxLength, processors, criteria;
58 vector<string> outputNames;
59 vector<string> optimize;
60 map<string, int> nameMap;
63 int getSummary(vector<unsigned long int>&);
64 int createProcessesCreateSummary(vector<int>&, vector<int>&, vector<int>&, vector<int>&, vector<int>&, string);
65 int driverCreateSummary(vector<int>&, vector<int>&, vector<int>&, vector<int>&, vector<int>&, string, linePair*);