]> git.donarmstrong.com Git - mothur.git/blobdiff - chimeracheckcommand.h
added MPI code, broke up chimera.seqs into 5 separated commands, added parse.sff...
[mothur.git] / chimeracheckcommand.h
diff --git a/chimeracheckcommand.h b/chimeracheckcommand.h
new file mode 100644 (file)
index 0000000..6db61bd
--- /dev/null
@@ -0,0 +1,57 @@
+#ifndef CHIMERACHECKCOMMAND_H
+#define CHIMERACHECKCOMMAND_H
+
+/*
+ *  chimeracheckcommand.h
+ *  Mothur
+ *
+ *  Created by westcott on 3/31/10.
+ *  Copyright 2010 Schloss Lab. All rights reserved.
+ *
+ */
+
+#include "mothur.h"
+#include "command.hpp"
+#include "chimera.h"
+
+
+/***********************************************************/
+
+class ChimeraCheckCommand : public Command {
+public:
+       ChimeraCheckCommand(string);
+       ~ChimeraCheckCommand();
+       int execute();
+       void help();
+       
+               
+private:
+
+       struct linePair {
+               int start;
+               int numSeqs;
+               linePair(long int i, int j) : start(i), numSeqs(j) {}
+       };
+       vector<int> processIDS;   //processid
+       vector<linePair*> lines;
+       
+       int driver(linePair*, string, string);
+       int createProcesses(string, string);
+               
+       #ifdef USE_MPI
+       int driverMPI(int, int, MPI_File&, MPI_File&, vector<long>&);
+       #endif
+
+       bool abort, svg;
+       string fastafile, templatefile, namefile, outputDir;
+       int processors, increment, ksize, numSeqs, templateSeqsLength;
+       Chimera* chimera;
+       
+       
+};
+
+/***********************************************************/
+
+#endif
+
+