X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=counttable.h;h=c0ced354ef8bac6b013105c6bd3fe0fdfb21a3cf;hp=68ba8d211cae1a12aa1d39a76f720a0998a87ad9;hb=250e3b11b1c9c1e1ad458ab6c7e71ac2e67e11d9;hpb=6c2b1e530a5c0bb87040e58a3e410097acdfcc3d diff --git a/counttable.h b/counttable.h index 68ba8d2..c0ced35 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, 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;