]> git.donarmstrong.com Git - mothur.git/blobdiff - aligncommand.h
fixing bugs while testing
[mothur.git] / aligncommand.h
index b5ff7825c7ae06fb8351a2ed9b398379d6abbc9a..ef5a92e4b8aad04651ded1ed8caf58dc58c16b30 100644 (file)
  *
  */
 
+#include "mothur.h"
 #include "command.hpp"
-#include "globaldata.hpp"
+#include "database.hpp"
+#include "alignment.hpp"
+#include "alignmentdb.h"
 
 class AlignCommand : public Command {
        
 public:
-       AlignCommand(); 
+       AlignCommand(string);   
+       AlignCommand();
        ~AlignCommand();
-       int execute();  
-
+       
+       vector<string> setParameters();
+       string getCommandName()                 { return "align.seqs";                  }
+       string getCommandCategory()             { return "Sequence Processing"; }
+       string getHelpString(); 
+       
+       int execute(); 
+       void help() { m->mothurOut(getHelpString()); }  
+       
 private:
-       GlobalData* globaldata;
-       string candidateFileName, templateFileName, distanceFileName;
-       int kmerSize;
-       float match, misMatch, gapOpen, gapExtend;
-       ofstream out;
-       ifstream in;
+       struct linePair {
+               unsigned long int start;
+               unsigned long int end;
+               linePair(unsigned long int i, unsigned long int j) : start(i), end(j) {}
+       };
+       vector<int> processIDS;   //processid
+       vector<linePair*> lines;
+       bool MPIWroteAccnos;
+       
+       AlignmentDB* templateDB;
+       Alignment* alignment;
+       
+       int driver(linePair*, string, string, string, string);
+       int createProcesses(string, string, string, string);
+       void appendAlignFiles(string, string); 
+       void appendReportFiles(string, string);
+       
+       #ifdef USE_MPI
+       int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, MPI_File&, vector<unsigned long int>&);
+       #endif
+       
+       string candidateFileName, templateFileName, distanceFileName, search, align, outputDir;
+       float match, misMatch, gapOpen, gapExtend, threshold;
+       int processors, kmerSize;
+       vector<string> candidateFileNames;
+       vector<string> outputNames;
+       
+       bool abort, flip, calledHelp;
 
 };
 
-
-
-#endif
\ No newline at end of file
+#endif