]> git.donarmstrong.com Git - mothur.git/blobdiff - counttable.h
added SequenceCountParser class to parse the count table by group. added count parame...
[mothur.git] / counttable.h
index 8c970199babf9d45f3a624d3456d39732fc3e5e2..adef8530e9d6e7d07ce16c23a3524c16f962d0b4 100644 (file)
@@ -37,6 +37,7 @@
 
 
 #include "mothurout.h"
+#include "listvector.hpp"
 
 class CountTable {
     
@@ -50,6 +51,12 @@ class CountTable {
         bool hasGroupInfo() { return hasGroups; }
         int getNumGroups() { return groups.size(); }
         vector<string> 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<int>); //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<int> 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
@@ -58,7 +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<string> getNamesOfSeqs();
+        int mergeCounts(string, string); //combines counts for 2 seqs, saving under the first name passed in.
+        ListVector getListVector();
     
     private:
         string filename;