X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=classifyseqscommand.h;h=16549135aacbe25e36d89f21c503f1baae2fe659;hb=e6c4a7223199d800d496356604eb34dfe273673d;hp=ed2819bcc6c7a3adf335b8e7cd79ceb29e3ae01a;hpb=ef3f6d42fe720cd6d91419e5e32f8c04d8765010;p=mothur.git diff --git a/classifyseqscommand.h b/classifyseqscommand.h index ed2819b..1654913 100644 --- a/classifyseqscommand.h +++ b/classifyseqscommand.h @@ -12,7 +12,7 @@ #include "mothur.h" #include "command.hpp" -#include "alignment.hpp" +//#include "alignment.hpp" #include "classify.h" //KNN and Bayesian methods modeled from algorithms in @@ -28,30 +28,49 @@ class ClassifySeqsCommand : public Command { public: - ClassifySeqsCommand(string); + ClassifySeqsCommand(string); + ClassifySeqsCommand(); ~ClassifySeqsCommand(); + vector getRequiredParameters(); + vector getValidParameters(); + vector getRequiredFiles(); + map > getOutputFiles() { return outputTypes; } int execute(); void help(); private: struct linePair { - int start; - int numSeqs; - linePair(int i, int j) : start(i), numSeqs(j) {} + unsigned long int start; + unsigned long int end; + linePair(unsigned long int i, unsigned long int j) : start(i), end(j) {} }; + vector processIDS; //processid vector lines; + vector fastaFileNames; + vector namefileNames; + vector groupfileNames; + vector outputNames; + map > nameMap; + map >::iterator itNames; + map > outputTypes; Classify* classify; - string fastaFileName, templateFileName, distanceFileName, search, method, taxonomyFileName; - int processors, kmerSize, numWanted, cutoff; + string fastaFileName, templateFileName, distanceFileName, namefile, search, method, taxonomyFileName, outputDir, groupfile; + int processors, kmerSize, numWanted, cutoff, iters; float match, misMatch, gapOpen, gapExtend; - bool abort; + bool abort, probs; - int driver(linePair*, string, string); + int driver(linePair*, string, string, string); void appendTaxFiles(string, string); - void createProcesses(string, string); + int createProcesses(string, string, string); + string addUnclassifieds(string, int); + + int MPIReadNamesFile(string); + #ifdef USE_MPI + int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, vector&); + #endif }; #endif