]> git.donarmstrong.com Git - mothur.git/blobdiff - collectdisplay.h
changes while testing
[mothur.git] / collectdisplay.h
index d33efe9792332902559d4a600bc3c5581b557185..781cea1824dc77cb445819c94aed3173786baa94 100644 (file)
@@ -30,8 +30,12 @@ public:
                //figure out what groups are being compared in getValues
                //because we randomizes the order we need to put the results in the correct column in the output file
                int group1Index, group2Index, pos;
-               group1Index = shared[0]->getGroupIndex();
-               group2Index = shared[1]->getGroupIndex();
+               
+               vector<string> mGroups = m->getGroups();
+               for (int i = 0; i < mGroups.size(); i++) {
+                       if (shared[0]->getGroup() == mGroups[i]) { group1Index = i; }
+                       if (shared[1]->getGroup() == mGroups[i]) { group2Index = i; }
+               }
                
                numGroupComb = 0;
                int n = 1;
@@ -46,7 +50,7 @@ public:
                        }
                        n++;
                }
-               
+                       
                if ((estimate->getMultiple() == true) && all) { 
                        numGroupComb++; 
                        groupData.resize((numGroupComb*data.size()), 0);
@@ -81,6 +85,7 @@ public:
        
        
        bool isCalcMultiple()   { return estimate->getMultiple(); }
+       bool calcNeedsAll()     { return estimate->getNeedsAll(); }
        bool hasLciHci()        {
                if (estimate->getCols() == 3) { return true; } 
                else{ return false; }