]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedcommand.cpp
bugs fixes while testing for 1.5 release
[mothur.git] / sharedcommand.cpp
index 26ba2211906fa025e3807aedf8c13ef3d913e413..9afb401014faaf097a1a30c2b1802d82ae8e659f 100644 (file)
@@ -156,9 +156,9 @@ void SharedCommand::printSharedData(vector<SharedRAbundVector*> thislookup) {
                        out << thislookup[i]->getLabel() << '\t' << thislookup[i]->getGroup() << '\t';
                        thislookup[i]->print(out);
                        
+                       RAbundVector rav = thislookup[i]->getRAbundVector();
                        openOutputFileAppend(fileroot + thislookup[i]->getGroup() + ".rabund", *(filehandles[thislookup[i]->getGroup()]));
-                       (*filehandles[thislookup[i]->getGroup()]) << thislookup[i]->getLabel()  << '\t' << thislookup[i]->getGroup()  << '\t';
-                       thislookup[i]->print(*(filehandles[thislookup[i]->getGroup()]));
+                       rav.print(*(filehandles[thislookup[i]->getGroup()]));
                        (*(filehandles[thislookup[i]->getGroup()])).close();
                }