X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=deconvolutecommand.h;h=7d4cb50023eb6312b652a8368d2d862882b3ffd4;hb=01f8d2c7d982a6209211f5abbcf2a086fdf60d0a;hp=aaed841ed8012a274cb96c3153463b4c1b0a2bc0;hpb=74c78f9abd9e733f0c2f812efec97a76632fcbf8;p=mothur.git diff --git a/deconvolutecommand.h b/deconvolutecommand.h index aaed841..7d4cb50 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,17 +19,28 @@ class DeconvoluteCommand : public Command { public: - DeconvoluteCommand() {}; - ~DeconvoluteCommand() { delete fastamap; }; - int execute(); + DeconvoluteCommand(string); + DeconvoluteCommand(); + ~DeconvoluteCommand() {} + + vector setParameters(); + string getCommandName() { return "unique.seqs"; } + string getCommandCategory() { return "Sequence Processing"; } + string getOutputFileNameTag(string, string); + 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: - GlobalData* globaldata; - FastaMap* fastamap; - ifstream in; - ofstream out, outFasta; - string filename, outputFileName, outFastafile; + string inFastaName, oldNameMapFName, outputDir; + vector outputNames; + bool abort; }; #endif