From 8772a51e7ab31b1c49dada6d38baf1474444943c Mon Sep 17 00:00:00 2001 From: Kathryn Iverson Date: Wed, 20 Jun 2012 17:34:14 -0400 Subject: [PATCH] edited createRabund function --- mgclustercommand.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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); + } + } //********************************************************************************************************************** -- 2.39.2