]> git.donarmstrong.com Git - mothur.git/blobdiff - raredisplay.cpp
fixed xp user bug with rarefact commands and cluster error checking
[mothur.git] / raredisplay.cpp
index 983ed102adc08f5629e061013b9d19c1fa49a28a..3d50b2612f9c9cc8df9de5b48e5e55e260806fc6 100644 (file)
@@ -15,6 +15,7 @@ void RareDisplay::init(string label){
        try {
                this->label = label;
                if(nIters != 1){
+                       tempInFile.clear();
                        openOutputFile(tempOutName, tempOutFile);
                        openInputFile(tempInName, tempInFile);
                }
@@ -68,9 +69,9 @@ void RareDisplay::update(SAbundVector* rank){
 };
 
 /***********************************************************************/
-void RareDisplay::update(SharedRAbundVector* shared1, SharedRAbundVector* shared2, int numSeqs, int numGroupComb) {
+void RareDisplay::update(vector<SharedRAbundVector*> shared, int numSeqs, int numGroupComb) {
        try {
-               vector<double> data = estimate->getValues(shared1, shared2); 
+               vector<double> data = estimate->getValues(shared); 
                double newNSeqs = data[0];
                
                if(nIters != 1){
@@ -134,6 +135,7 @@ void RareDisplay::reset(){
 
 void RareDisplay::close(){
        try {
+               
                output->initFile(label);
        
                openInputFile(tempInName, tempInFile);