]> git.donarmstrong.com Git - mothur.git/blobdiff - collectsharedcommand.cpp
deleted read.shared command and added its functionality to read.otu.
[mothur.git] / collectsharedcommand.cpp
index c473c2d77e819164d62799095ea6bf849d27c42a..e61fb9bd02bad10c693bab5ce8a54ffa2b66f03f 100644 (file)
@@ -31,9 +31,6 @@ CollectSharedCommand::CollectSharedCommand(){
                format = globaldata->getFormat();
                validCalculator = new ValidCalculators();
                
-               //set users groups
-               setGroups();
-               
                int i;
                for (i=0; i<globaldata->Estimators.size(); i++) {
                        if (validCalculator->isValidCalculator("shared", globaldata->Estimators[i]) == true) { 
@@ -112,6 +109,9 @@ int CollectSharedCommand::execute(){
                        order = SharedList->getSharedOrderVector();
                }
                set<string> orderList;
+               
+               //set users groups
+               setGroups();
 
                while(order != NULL){
                        orderList.insert(order->getLabel());