X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getgroupscommand.h;h=e0fbad80064157e99c3ff21fb97ddfd95bc97317;hb=2bb9267aa4b4ecdf8488b06605cc9f3f36fa4332;hp=955de627ccb6f4952c6ed3a1444ee2b4d5397187;hpb=ca9ac1d80c62f57270b0dcd49410ebe08a8aecd6;p=mothur.git diff --git a/getgroupscommand.h b/getgroupscommand.h index 955de62..e0fbad8 100644 --- a/getgroupscommand.h +++ b/getgroupscommand.h @@ -26,6 +26,9 @@ public: string getCommandName() { return "get.groups"; } string getCommandCategory() { return "OTU-Based Approaches"; } string getHelpString(); + string getCitation() { return "http://www.mothur.org/wiki/Get.groups"; } + string getDescription() { return "gets sequences from a list, fasta, name, group or taxonomy file from a given group or set of groups"; } + int execute(); void help() { m->mothurOut(getHelpString()); } @@ -33,7 +36,10 @@ public: private: set names; - string accnosfile, fastafile, namefile, groupfile, listfile, taxfile, outputDir, groups; + map uniqueToRedundant; //if a namefile is given and the first column name is not selected + //then the other files need to change the unique name in their file to match. + //only add the names that need to be changed to keep the map search quick + string accnosfile, fastafile, namefile, groupfile, listfile, taxfile, outputDir, groups, sharedfile; bool abort; vector outputNames, Groups; GroupMap* groupMap; @@ -45,6 +51,7 @@ private: int readList(); int readTax(); int fillNames(); + int readShared(); };