]> git.donarmstrong.com Git - mothur.git/blobdiff - groupmap.h
pat's differences before v.1.8
[mothur.git] / groupmap.h
index 54225e22a0ffab29c3ef7081aec8e75257d6d2d7..a99ad119db44c2fd3bb6f78b696fc2d9ddf170af 100644 (file)
@@ -19,14 +19,16 @@ public:
        GroupMap() {};
        GroupMap(string);
        ~GroupMap();
-       void readMap();
+       int 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.
+       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;
@@ -35,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