]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedrabundvector.cpp
added bootstrap.shared command and fixed some bugs with heatmap
[mothur.git] / sharedrabundvector.cpp
index 4683c59b63050de20e6bb79e2103563478066a71..9634613ded396633062188934cab9f1f4a40e9dc 100644 (file)
@@ -242,7 +242,8 @@ void SharedRAbundVector::push_front(int binSize, int otu, string groupName){
 
 /***********************************************************************/
 void SharedRAbundVector::pop_back(){
-
+       numSeqs -= data[data.size()-1].abundance;
+       numBins--;
        return data.pop_back();
 }
 
@@ -276,7 +277,7 @@ void SharedRAbundVector::print(ostream& output){
        try {
                output << numBins << '\t';
        
-               for(int i=0;i<numBins;i++){             output << data[i].abundance << '\t';            }
+               for(int i=0;i<data.size();i++){         output << data[i].abundance << '\t';            }
                output << endl;
        }
        catch(exception& e) {