X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=counttable.h;h=51d0b4544bc73c7e832826bad702028f0143a549;hb=3914b0d6480f67df53b1e838f51c4e6155710434;hp=68ba8d211cae1a12aa1d39a76f720a0998a87ad9;hpb=6c2b1e530a5c0bb87040e58a3e410097acdfcc3d;p=mothur.git diff --git a/counttable.h b/counttable.h index 68ba8d2..51d0b45 100644 --- a/counttable.h +++ b/counttable.h @@ -47,9 +47,11 @@ class CountTable { CountTable() { m = MothurOut::getInstance(); hasGroups = false; total = 0; uniques = 0; } ~CountTable() {} + //reads and creates smart enough to eliminate groups with zero counts int createTable(set&, map&, set&); //seqNames, seqName->group, groupNames int createTable(string, string, bool); //namefile, groupfile, createGroup - int readTable(string); + int readTable(string, bool); + int printTable(string); int printHeaders(ofstream&); int printSeq(ofstream&, string); @@ -60,6 +62,7 @@ class CountTable { int getNumGroups() { return groups.size(); } vector getNamesOfGroups() { return groups; } //returns group names, if no group info vector is blank. int addGroup(string); + int removeGroup(string); int renameSeq(string, string); //used to change name of sequence for use with trees int setAbund(string, string, int); //set abundance number of seqs for that group for that seq @@ -83,6 +86,7 @@ class CountTable { vector getNamesOfSeqs(string); int mergeCounts(string, string); //combines counts for 2 seqs, saving under the first name passed in. ListVector getListVector(); + map getNameMap(); private: string filename;