X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=chimeraslayercommand.h;h=cfa934abf6655e9605d104300b90e0d590ce179f;hb=19fcbbdba99658f5eca244803280f9ee7f9f6607;hp=aa9b5e7102a324bce97095c2fce7d78f470ab3fc;hpb=8bc3e5b38c2317a1715f53be22fa96455868c281;p=mothur.git diff --git a/chimeraslayercommand.h b/chimeraslayercommand.h index aa9b5e7..cfa934a 100644 --- a/chimeraslayercommand.h +++ b/chimeraslayercommand.h @@ -14,22 +14,24 @@ #include "command.hpp" #include "chimera.h" - /***********************************************************/ class ChimeraSlayerCommand : public Command { public: ChimeraSlayerCommand(string); ChimeraSlayerCommand(); - ~ChimeraSlayerCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + ~ChimeraSlayerCommand() {} + + vector setParameters(); + string getCommandName() { return "chimera.slayer"; } + string getCommandCategory() { return "Sequence Processing"; } + string getHelpString(); + string getCitation() { return "Haas BJ, Gevers D, Earl A, Feldgarden M, Ward DV, Giannokous G, Ciulla D, Tabbaa D, Highlander SK, Sodergren E, Methe B, Desantis TZ, Petrosino JF, Knight R, Birren BW (2011). Chimeric 16S rRNA sequence formation and detection in Sanger and 454-pyrosequenced PCR amplicons. Genome Res. \nhttp://www.mothur.org/wiki/Chimera.slayer"; } + string getDescription() { return "detect chimeric sequences"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } - private: struct linePair { @@ -41,22 +43,24 @@ private: vector processIDS; //processid vector lines; - int driver(linePair*, string, string, string); - int createProcesses(string, string, string); + int driver(linePair*, string, string, string, string); + int createProcesses(string, string, string, string); + int divideInHalf(Sequence, string&, string&); + map sortFastaFile(string, string); #ifdef USE_MPI - int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, vector&); + int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, MPI_File&, vector&); #endif - bool abort, realign; - string fastafile, templatefile, outputDir, search; + bool abort, realign, trim, trimera, save; + string fastafile, templatefile, outputDir, search, namefile; int processors, window, iters, increment, numwanted, ksize, match, mismatch, parents, minSimilarity, minCoverage, minBS, minSNP, numSeqs, templateSeqsLength; float divR; Chimera* chimera; vector outputNames; - map > outputTypes; vector fastaFileNames; + vector nameFileNames; };