]> git.donarmstrong.com Git - mothur.git/blobdiff - counttable.h
changes while testing
[mothur.git] / counttable.h
index 68ba8d211cae1a12aa1d39a76f720a0998a87ad9..51d0b4544bc73c7e832826bad702028f0143a549 100644 (file)
@@ -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<string>&, map<string, string>&, set<string>&); //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<string> 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<string> getNamesOfSeqs(string);
         int mergeCounts(string, string); //combines counts for 2 seqs, saving under the first name passed in.
         ListVector getListVector();
+        map<string, int> getNameMap();
     
     private:
         string filename;