X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=raredisplay.cpp;h=3d50b2612f9c9cc8df9de5b48e5e55e260806fc6;hb=dc08123b7f14e2305e5bb2b3a8fcef96fc829b07;hp=983ed102adc08f5629e061013b9d19c1fa49a28a;hpb=c5c7502f435e1413c19e373dab1dfebcaa67588d;p=mothur.git diff --git a/raredisplay.cpp b/raredisplay.cpp index 983ed10..3d50b26 100644 --- a/raredisplay.cpp +++ b/raredisplay.cpp @@ -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 shared, int numSeqs, int numGroupComb) { try { - vector data = estimate->getValues(shared1, shared2); + vector 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);