]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedsabundvector.cpp
added trim.seqs command
[mothur.git] / sharedsabundvector.cpp
index 8b6f8faa8695b8acb4a36730519ea6e751df8fb3..51058cf585fb511655a97d9b1a15d108dab99df5 100644 (file)
@@ -9,16 +9,11 @@
 
 #include "sharedsabundvector.h"
 #include "sabundvector.hpp"
-#include "datavector.hpp"
-#include "utilities.hpp"
-#include <exception>
-
-using namespace std;
 
 
 /***********************************************************************/
 
-SharedSAbundVector::SharedSAbundVector() : DataVector(), maxRank(0), numBins(0), numSeqs(0){};
+SharedSAbundVector::SharedSAbundVector() : DataVector(), maxRank(0), numBins(0), numSeqs(0){}
 
 /***********************************************************************/
 
@@ -30,7 +25,7 @@ SharedSAbundVector::SharedSAbundVector(int size) :    DataVector(), maxRank(0), num
                        newGuy.abundance = 0;
                        data.push_back(newGuy);
                }
-};
+}
 
 /***********************************************************************/
 
@@ -256,6 +251,8 @@ SharedOrderVector SharedSAbundVector::getSharedOrderVector() {
                rav = this->getSharedRAbundVector();
                ov = rav.getSharedOrderVector();
                
+               ov.updateStats();
+               
                return ov;
        }
        catch(exception& e) {