From: Kathryn Iverson Date: Wed, 20 Jun 2012 20:56:35 +0000 (-0400) Subject: added createRabund function to mgcluster X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=commitdiff_plain;h=e98d569d630c30d1ac3608eb6337bcec4765a724 added createRabund function to mgcluster --- diff --git a/mgclustercommand.cpp b/mgclustercommand.cpp index c4cdb50..a0f33d6 100644 --- a/mgclustercommand.cpp +++ b/mgclustercommand.cpp @@ -235,12 +235,12 @@ int MGClusterCommand::execute(){ RAbundVector* rabund = NULL; if(large) { map nameMapCounts = m->readNames(namefile); - RAbundVector* rabund = newFunctionToCreateRabund(list, nameMapCounts); + RAbundVector* rabund = createRabund(list, nameMapCounts); }else { RAbundVector* rabund = new RAbundVector(list->getRAbundVector()); } - + //list = new ListVector(nameMap->getListVector()); //RAbundVector* rabund = new RAbundVector(list->getRAbundVector()); @@ -709,7 +709,12 @@ void MGClusterCommand::sortHclusterFiles(string unsortedDist, string unsortedOve //********************************************************************************************************************** +RAbundVector MGClusterCommand::createRabund(ListVector list, map nameMapCounts){ + for(int i = 0; i < list->getNumBins(); i++) { + + } +} - +//********************************************************************************************************************** diff --git a/mgclustercommand.h b/mgclustercommand.h index ea2c1de..889586a 100644 --- a/mgclustercommand.h +++ b/mgclustercommand.h @@ -61,6 +61,7 @@ private: ListVector* mergeOPFs(map, float); void sortHclusterFiles(string, string); vector getSeqs(ifstream&); + RAbundVector createRabund(ListVector, map); };