X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=deconvolutecommand.h;h=673ffc9e4d2e689cd32c6b16867089fe43f216d1;hb=96dbe925073caefaed6e6db85659c144a806aeb1;hp=fe5c0db5587d9909fdad12d1f65cb916f5901043;hpb=c5c7502f435e1413c19e373dab1dfebcaa67588d;p=mothur.git diff --git a/deconvolutecommand.h b/deconvolutecommand.h index fe5c0db..673ffc9 100644 --- a/deconvolutecommand.h +++ b/deconvolutecommand.h @@ -11,27 +11,37 @@ #include "command.hpp" #include "fastamap.h" -#include "globaldata.hpp" +#include "counttable.h" -/* 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 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, countfile; + vector outputNames; + bool abort; }; #endif