]> git.donarmstrong.com Git - mothur.git/blobdiff - aligncommand.h
adding mothurout.h and .cpp to repo
[mothur.git] / aligncommand.h
index cf30a6b456dfcf803b137a2500a10dd36f7a5f25..f0496a54a9070b31dcb699a0deefc7cb51fc8a50 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();
-               int execute();  
+public:
+       AlignCommand(string);   
+       ~AlignCommand();
+       int execute(); 
+       void help();    
        
-       private:
-               GlobalData* globaldata;
-               string candidateFileName, templateFileName, distanceFileName;
-               int kmerSize;
-               float match, misMatch, gapOpen, gapExtend;
-               ofstream out;
-               ifstream in;
-
+private:
+       struct linePair {
+               int start;
+               int numSeqs;
+               linePair(long int i, int j) : start(i), numSeqs(j) {}
+       };
+       vector<int> processIDS;   //processid
+       vector<linePair*> lines;
+       
+       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);
+       
+       string candidateFileName, templateFileName, distanceFileName, search, align, outputDir;
+       float match, misMatch, gapOpen, gapExtend, threshold;
+       int processors, kmerSize;
+       vector<string> candidateFileNames;
+       
+       bool abort, flip;
 };
 
-
-
-#endif
\ No newline at end of file
+#endif