]> git.donarmstrong.com Git - mothur.git/blobdiff - rarefact.cpp
added list.seqs command
[mothur.git] / rarefact.cpp
index f1b43fc26553cd739d32d2baeff36bc457df006a..5cd9b99c5051be03b00757df6a99bfb479adabfe 100644 (file)
@@ -81,14 +81,19 @@ try {
                        rcd->registerDisplay(displays[i]);
                }
                
+               //if jumble is false all iters will be the same
+               if (globaldata->jumble == false)  {  nIters = 1;  }
+               
                for(int iter=0;iter<nIters;iter++){
                
                        for(int i=0;i<displays.size();i++){
                                displays[i]->init(label);                 
                        }
-
-                       //randomize the groups
-                       random_shuffle(lookup.begin(), lookup.end());
+                       
+                       if (globaldata->jumble == true)  {
+                               //randomize the groups
+                               random_shuffle(lookup.begin(), lookup.end());
+                       }
                        
                        //make merge the size of lookup[0]
                        SharedRAbundVector* merge = new SharedRAbundVector(lookup[0]->size());