X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=deconvolutecommand.h;h=487c4601780a209418be72b8eb8c04edd0a55442;hb=2c97dd48b8e27ee0a6a86c7a082f4c504c3357c6;hp=2ccc20a633b882475099132269eb0142cf55adcf;hpb=16bea3130e36addc54e2116dfbcd02d706ebee45;p=mothur.git diff --git a/deconvolutecommand.h b/deconvolutecommand.h index 2ccc20a..487c460 100644 --- a/deconvolutecommand.h +++ b/deconvolutecommand.h @@ -9,32 +9,37 @@ * */ -#include -#include #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"; } + 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