X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getseqscommand.h;h=0f606ffb59ac884b46ac97d861aa3542786d1793;hb=d205e70ae86dbee2efc2df02f2717975854de6ba;hp=8b38a76f4a3c2bdcfbd0855d6a8be0ff3bad1714;hpb=4ba6188707e67c638ea5ee3c787d5d07ccd07e3e;p=mothur.git diff --git a/getseqscommand.h b/getseqscommand.h index 8b38a76..0f606ff 100644 --- a/getseqscommand.h +++ b/getseqscommand.h @@ -16,22 +16,42 @@ class GetSeqsCommand : public Command { public: - GetSeqsCommand(string); - ~GetSeqsCommand(){}; - int execute(); - void help(); - + GetSeqsCommand(string); + GetSeqsCommand(); + ~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; - string accnosfile, fastafile, namefile, groupfile, alignfile, listfile; - bool abort; + vector outputNames; + string accnosfile, accnosfile2, fastafile, namefile, groupfile, alignfile, listfile, taxfile, qualfile, outputDir; + bool abort, dups; + + //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. - void readFasta(); - void readName(); - void readGroup(); - void readAlign(); - void readAccnos(); - void readList(); + int readFasta(); + int readName(); + int readGroup(); + int readAlign(); + int readAccnos(); + int readList(); + int readTax(); + int readQual(); + int compareAccnos(); + int runSanityCheck(); + int createMisMatchFile(ofstream&, string, string, set, set); + };