From: Kathryn Iverson Date: Wed, 20 Jun 2012 21:34:14 +0000 (-0400) Subject: edited createRabund function X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=commitdiff_plain;h=8772a51e7ab31b1c49dada6d38baf1474444943c edited createRabund function --- diff --git a/mgclustercommand.cpp b/mgclustercommand.cpp index a0f33d6..e5681ef 100644 --- a/mgclustercommand.cpp +++ b/mgclustercommand.cpp @@ -710,9 +710,16 @@ void MGClusterCommand::sortHclusterFiles(string unsortedDist, string unsortedOve //********************************************************************************************************************** RAbundVector MGClusterCommand::createRabund(ListVector list, map nameMapCounts){ - for(int i = 0; i < list->getNumBins(); i++) { - + try { + RAbundVector rav; + for(int i = 0; i < list->getNumBins(); i++) { rav.push_back(nameMapCounts[i]); } + return rav; } + catch(exception& e) { + m->errorOut(e, "MGClusterCommand", "createRabund"); + exit(1); + } + } //**********************************************************************************************************************