X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=deconvolutecommand.h;h=487c4601780a209418be72b8eb8c04edd0a55442;hb=2009a1a1f47e7467094d844e7c07ab8ddf7bb447;hp=0b6eb5e1f8fbce6e0f9ba9c5cccaee56739990dc;hpb=0470f6d037aacb3563c3f7010708120a4a67d4e6;p=mothur.git diff --git a/deconvolutecommand.h b/deconvolutecommand.h index 0b6eb5e..487c460 100644 --- a/deconvolutecommand.h +++ b/deconvolutecommand.h @@ -11,7 +11,6 @@ #include "command.hpp" #include "fastamap.h" -#include "globaldata.hpp" /* The unique.seqs command reads a fasta file, finds the duplicate sequences and outputs a names file containing 2 columns. The first being the groupname and the second the list of identical sequence names. */ @@ -20,23 +19,27 @@ class DeconvoluteCommand : public Command { public: - DeconvoluteCommand(string); - ~DeconvoluteCommand() { delete fastamap; }; - int execute(); - void help(); + DeconvoluteCommand(string); + DeconvoluteCommand(); + ~DeconvoluteCommand() {} -private: - GlobalData* globaldata; - FastaMap* fastamap; - ifstream in; - ofstream out, outFasta; - string filename, outputFileName, outFastafile; - OptionParser* parser; - map parameters; - map::iterator it; - bool abort; + vector setParameters(); + string getCommandName() { return "unique.seqs"; } + string getCommandCategory() { return "Sequence Processing"; } + string getHelpString(); + string getCitation() { return "http://www.mothur.org/wiki/Unique.seqs"; } + string getDescription() { return "creates a fasta containing the unique sequences as well as a namesfile with the names each sequence represents"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } + + +private: + string inFastaName, oldNameMapFName, outputDir; + vector outputNames; + bool abort; }; #endif