]> git.donarmstrong.com Git - mothur.git/blobdiff - seqsummarycommand.h
started work on sffinfo command. fixed bug across all paralellized commands if the...
[mothur.git] / seqsummarycommand.h
index 9b2be27ef8337e694484927e33298d8ec9841359..3e576a0b8aa276c6134cefb83fea9831d0520661 100644 (file)
 
 #include "mothur.h"
 #include "command.hpp"
-#include "globaldata.hpp"
-#include "readfasta.h"
-#include "readnexus.h"
-#include "readclustal.h"
-#include "readseqsphylip.h"
-
-using namespace std;
 
 class SeqSummaryCommand : public Command {
 public:
-       SeqSummaryCommand();
+       SeqSummaryCommand(string);
        ~SeqSummaryCommand();
        int execute();
+       void help();
        
 private:
-       GlobalData* globaldata; 
+       bool abort;
+       string fastafile, outputDir;
+       int processors;
+       
+       struct linePair {
+               unsigned long int start;
+               int num;
+               linePair(unsigned long int i, long int j) : start(i), num(j) {}
+       };
+       vector<linePair*> lines;
+       vector<int> processIDS;
+       
+       int createProcessesCreateSummary(vector<int>&, vector<int>&, vector<int>&, vector<int>&, vector<int>&, string, string);
+       int driverCreateSummary(vector<int>&, vector<int>&, vector<int>&, vector<int>&, vector<int>&, string, string, linePair*);       
+       int setLines(string);
+
+       #ifdef USE_MPI
+       int MPICreateSummary(int, int, vector<int>&, vector<int>&, vector<int>&, vector<int>&, vector<int>&, MPI_File&, MPI_File&, vector<long>&);      
+       #endif
+
 
 };