X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mgclustercommand.cpp;fp=mgclustercommand.cpp;h=e5681efb220d1635382ea6b077a36ea4e0f50226;hb=8772a51e7ab31b1c49dada6d38baf1474444943c;hp=a0f33d6f8bba8c2976b0a969924c4082c98ca67a;hpb=e98d569d630c30d1ac3608eb6337bcec4765a724;p=mothur.git 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); + } + } //**********************************************************************************************************************