X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=seqsummarycommand.h;h=fb24141f08a1314a386bc58899ec57ecf6c56e56;hb=32abf5d58aed8087cd0bcb32d7aa9053f103f2c1;hp=01dd450194c2f454ddd1b6c44de3fda99cde0798;hpb=faf4e99552d6fb4595ff348b1f909ddc74536da2;p=mothur.git diff --git a/seqsummarycommand.h b/seqsummarycommand.h index 01dd450..fb24141 100644 --- a/seqsummarycommand.h +++ b/seqsummarycommand.h @@ -12,18 +12,44 @@ #include "mothur.h" #include "command.hpp" -#include "globaldata.hpp" - - class SeqSummaryCommand : public Command { public: + SeqSummaryCommand(string); SeqSummaryCommand(); ~SeqSummaryCommand(); + vector getRequiredParameters(); + vector getValidParameters(); + vector getRequiredFiles(); + map > getOutputFiles() { return outputTypes; } int execute(); + void help(); private: - GlobalData* globaldata; + bool abort; + string fastafile, outputDir, namefile; + int processors; + vector outputNames; + map > outputTypes; + map nameMap; + + struct linePair { + unsigned long int start; + unsigned long int end; + linePair(unsigned long int i, unsigned long int j) : start(i), end(j) {} + }; + + vector lines; + vector processIDS; + + int createProcessesCreateSummary(vector&, vector&, vector&, vector&, vector&, string, string); + int driverCreateSummary(vector&, vector&, vector&, vector&, vector&, string, string, linePair*); + int readNames(); + + #ifdef USE_MPI + int MPICreateSummary(int, int, vector&, vector&, vector&, vector&, vector&, MPI_File&, MPI_File&, vector&); + #endif + };