]> git.donarmstrong.com Git - mothur.git/blobdiff - rarefact.cpp
added ability for user to select which groups to analyze with the collect.shared...
[mothur.git] / rarefact.cpp
index e776393b47318e8a7f9b79016433f75a8ba049d9..c064125c37e846c538075f04d652eca6ec336708 100644 (file)
@@ -85,10 +85,10 @@ try {
                        lookup.clear();
                
                        //create and initialize vector of sharedvectors, one for each group
-                       for (int i = 0; i < globaldata->gGroupmap->getNumGroups(); i++) { 
+                       for (int i = 0; i < globaldata->Groups.size(); i++) { 
                                SharedRAbundVector* temp = new SharedRAbundVector(sharedorder->getNumBins());
                                temp->setLabel(sharedorder->getLabel());
-                               temp->setGroup(globaldata->gGroupmap->namesOfGroups[i]);
+                               temp->setGroup(globaldata->Groups[i]);
                                lookup.push_back(temp);
                        }