X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=groupmap.h;fp=groupmap.h;h=bdcd61e7c763cc10e31088d3292064887a8070a8;hp=d6984952188de368c765bf2997198f1fefb8bce5;hb=9bbd9b071066b7b11c1ab95aa01942abc933e0fb;hpb=af0a94ea8f02421b2b73e77e68753a2b4c37768e diff --git a/groupmap.h b/groupmap.h index d698495..bdcd61e 100644 --- a/groupmap.h +++ b/groupmap.h @@ -34,19 +34,22 @@ public: for (int i = 0; i < namesOfGroups.size(); i++) { groupIndex[namesOfGroups[i]] = i; } return namesOfGroups; } + vector getNamesSeqs(); void setNamesOfGroups(vector sn) { namesOfGroups = sn; } - map groupIndex; //groupname, vectorIndex in namesOfGroups. - used by collectdisplays and libshuff commands. int getNumSeqs() { return groupmap.size(); } - vector getNamesSeqs(); vector getNamesSeqs(vector); //get names of seqs belonging to a group or set of groups int getNumSeqs(string); //return the number of seqs in a given group - + int getCopy(GroupMap*); + + + map groupIndex; //groupname, vectorIndex in namesOfGroups. - used by collectdisplays and libshuff commands. + private: vector namesOfGroups; MothurOut* m; ifstream fileHandle; string groupFileName; - int index; + int index; map::iterator it; void setNamesOfGroups(string); map groupmap; //sequence name and groupname