X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getseqscommand.h;h=0f606ffb59ac884b46ac97d861aa3542786d1793;hb=e0ce7cbc93d7d2fbb753ca694182db092a0ea0e7;hp=b249072e41aba8b7ff0501c1fc946b90c48dfd22;hpb=89f19f9c6ab89c2f6c7c6921a328ae87bce6f8e3;p=mothur.git diff --git a/getseqscommand.h b/getseqscommand.h index b249072..0f606ff 100644 --- a/getseqscommand.h +++ b/getseqscommand.h @@ -18,20 +18,27 @@ class GetSeqsCommand : public Command { GetSeqsCommand(string); GetSeqsCommand(); - ~GetSeqsCommand(){}; - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); - + ~GetSeqsCommand(){} + + vector setParameters(); + string getCommandName() { return "get.seqs"; } + string getCommandCategory() { return "Sequence Processing"; } + string getHelpString(); + string getCitation() { return "http://www.mothur.org/wiki/Get.seqs"; } + string getDescription() { return "gets sequences from a list, fasta, name, group, alignreport, quality or taxonomy file"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } + + private: set names; vector outputNames; - string accnosfile, fastafile, namefile, groupfile, alignfile, listfile, taxfile, qualfile, outputDir; + string accnosfile, accnosfile2, fastafile, namefile, groupfile, alignfile, listfile, taxfile, qualfile, outputDir; bool abort, dups; - map > outputTypes; + + //for debug + map > sanity; //maps file type to names chosen for file. something like "fasta" -> vector. If running in debug mode this is filled and we check to make sure all the files have the same names. If they don't we output the differences for the user. int readFasta(); int readName(); @@ -41,6 +48,10 @@ class GetSeqsCommand : public Command { int readList(); int readTax(); int readQual(); + int compareAccnos(); + int runSanityCheck(); + int createMisMatchFile(ofstream&, string, string, set, set); + };