]> git.donarmstrong.com Git - mothur.git/blobdiff - groupmap.h
finished chimeraslayer method and added get.listcount command
[mothur.git] / groupmap.h
index de69ca4d94c5e98342c666c7de0a768f61a3b267..e52ada56056e14cf8df6f4a2b7e541d7c8b1fcc7 100644 (file)
@@ -9,11 +9,7 @@
  *
  */
 
-#include <map>
-#include <string>
-#include <iostream>
-#include <fstream>
-#include "utilities.hpp"
+#include "mothur.h"
 
 /* This class is a representation of the groupfile.  It is used by all the shared commands to determine what group a 
        certain sequence belongs to. */
@@ -25,11 +21,14 @@ public:
        ~GroupMap();
        void readMap();
        int getNumGroups();
+       bool isValidGroup(string);  //return true if string is a valid group
        string getGroup(string);
        void setGroup(string, string);
        vector<string> namesOfGroups;
        map<string, int> groupIndex;  //groupname, vectorIndex in namesOfGroups. - used by collectdisplays.
-               
+       int getNumSeqs()  {  return groupmap.size();  }
+       vector<string> getNamesSeqs();
+                       
 private:
        ifstream fileHandle;
        string groupFileName;