X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getseqscommand.h;h=c5b6ca4141afc00c12b646ea34604b898b1c4131;hb=1a968f34ae2d2680eaf189a197d1a21b8dfd6c03;hp=2bd0754b93715a347e517d7b11be3bf8f478e944;hpb=c53c53b0280452e1c3a087fbf807b2e508cd66c4;p=mothur.git diff --git a/getseqscommand.h b/getseqscommand.h index 2bd0754..c5b6ca4 100644 --- a/getseqscommand.h +++ b/getseqscommand.h @@ -16,21 +16,44 @@ 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 getOutputPattern(string); + 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; - bool abort; + vector outputNames; + string accnosfile, accnosfile2, fastafile, namefile, countfile, groupfile, alignfile, listfile, taxfile, qualfile, outputDir; + bool abort, dups; + map uniqueMap; + //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(); + int readFasta(); + int readName(); + int readGroup(); + int readCount(); + int readAlign(); + int readList(); + int readTax(); + int readQual(); + int compareAccnos(); + int runSanityCheck(); + int createMisMatchFile(ofstream&, string, string, set, set); + };