]> git.donarmstrong.com Git - mothur.git/blobdiff - groupmap.h
fixed splash page citation
[mothur.git] / groupmap.h
index d69699d382530f688a0f6023f90b1ffed1bdfffe..fd6c14605065ea3fd1f12613d89b6bca9a1e0861 100644 (file)
@@ -25,8 +25,11 @@ public:
        string getGroup(string);
        void setGroup(string, string);
        vector<string> namesOfGroups;
-       map<string, int> groupIndex;  //groupname, vectorIndex in namesOfGroups. - used by collectdisplays.
-               
+       map<string, int> groupIndex;  //groupname, vectorIndex in namesOfGroups. - used by collectdisplays and libshuff commands.
+       int getNumSeqs()  {  return groupmap.size();  }
+       vector<string> getNamesSeqs();
+       int getNumSeqs(string); //return the number of seqs in a given group
+                       
 private:
        ifstream fileHandle;
        string groupFileName;
@@ -34,6 +37,7 @@ private:
        map<string, string>::iterator it;
        void setNamesOfGroups(string); 
        map<string, string> groupmap; //sequence name and groupname
+       map<string, int> seqsPerGroup;  //maps groupname to number of seqs in that group
 };
 
 #endif