X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=counttable.h;h=adef8530e9d6e7d07ce16c23a3524c16f962d0b4;hb=c7e8c2d15bd7cedcfdf18675cb0ea1a0dcd0e3c0;hp=8baff3080a5f5124214e0b6b6834a899b356f0f9;hpb=28bcfc4a41b8b82f66636587e0d4d355d07cbdd1;p=mothur.git diff --git a/counttable.h b/counttable.h index 8baff30..adef853 100644 --- a/counttable.h +++ b/counttable.h @@ -51,6 +51,12 @@ class CountTable { bool hasGroupInfo() { return hasGroups; } int getNumGroups() { return groups.size(); } vector getNamesOfGroups() { return groups; } //returns group names, if no group info vector is blank. + + int push_back(string); //add a sequence + int push_back(string, int); //add a sequence + int push_back(string, vector); //add a sequence with group info + int get(string); //returns unique sequence index for reading distance matrices like NameAssignment + int size() { return indexNameMap.size(); } vector getGroupCounts(string); //returns group counts for a seq passed in, if no group info is in file vector is blank. Order is the same as the groups returned by getGroups function. int getGroupCount(string, string); //returns number of seqs for that group for that seq @@ -59,11 +65,10 @@ class CountTable { int getNumSeqs() { return total; } //return total number of seqs int getNumUniqueSeqs() { return uniques; } //return number of unique/representative seqs int getGroupIndex(string); //returns index in getGroupCounts vector of specific group + vector getNamesOfSeqs(); int mergeCounts(string, string); //combines counts for 2 seqs, saving under the first name passed in. - int get(string); //returns unique sequence index for reading distance matrices like NameAssignment ListVector getListVector(); - int size() { return indexNameMap.size(); } private: string filename;