]> git.donarmstrong.com Git - mothur.git/blobdiff - weighted.h
added sequence name to error string in fastq.info. Changed np_shannon to npshannon.
[mothur.git] / weighted.h
index ca9f0378ffc96b545912742e10aab2242651558a..c23a11599b4b8d74fdfacd05a5a02ae727834455 100644 (file)
@@ -19,7 +19,7 @@
 class Weighted : public TreeCalculator  {
        
        public:
-               Weighted(TreeMap* t) : tmap(t) {};
+               Weighted(TreeMap* t, bool r) : tmap(t), includeRoot(r) {};
                ~Weighted() {};
                
                EstOutput getValues(Tree*, string, string);
@@ -33,13 +33,14 @@ class Weighted : public TreeCalculator  {
                };
                vector<linePair> lines;
 
-               GlobalData* globaldata;
                EstOutput data;
                TreeMap* tmap;
                map<string, int>::iterator it;
                map<string, double> WScore; //a score for each group combination i.e. AB, AC, BC.
                int processors;
                string outputDir;
+               map< vector<string>, set<int> > rootForGrouping;  //maps a grouping combo to the root for that combo
+               bool includeRoot;
                
                EstOutput driver(Tree*, vector< vector<string> >, int, int); 
                EstOutput createProcesses(Tree*, vector< vector<string> >);