X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=deconvolutecommand.h;h=21a008190fdc168a9259c1abe4f8461c99fc87cd;hb=4de093e3b92bdab1579565cb2873553412f6671e;hp=c80bb360533a8b08e819d820d72f431f722c9e1b;hpb=bfbc55964f1977da72c2cea984288a427d370a59;p=mothur.git diff --git a/deconvolutecommand.h b/deconvolutecommand.h index c80bb36..21a0081 100644 --- a/deconvolutecommand.h +++ b/deconvolutecommand.h @@ -10,29 +10,34 @@ */ #include "command.hpp" -#include "utilities.hpp" #include "fastamap.h" -#include "globaldata.hpp" -/* The deconvolute command reads a fasta file, finds the duplicate sequences and outputs a names file +/* 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. */ -using namespace std; 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 getHelpString(); + string getCitation() { return "http://www.mothur.org/wiki/Unique.seqs"; } + + 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