X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=groupmap.h;h=5397e02e7c158e5074a7f8e626d813561cc6d9b6;hp=d6984952188de368c765bf2997198f1fefb8bce5;hb=ef4c1b4dfeecc17a0ad5c1c114c748a0443a88ac;hpb=035f86272c776e1cccaa47021e26782e49cd41e7 diff --git a/groupmap.h b/groupmap.h index d698495..5397e02 100644 --- a/groupmap.h +++ b/groupmap.h @@ -34,19 +34,25 @@ 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*); + int renameSeq(string, string); + int print(ofstream&); + int print(ofstream&, vector); //print certain groups + + + 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