From: kiverson Date: Fri, 22 Jun 2012 19:12:47 +0000 (-0400) Subject: removed comments X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=commitdiff_plain;h=13f0aaa1f941bb5c066e626331549fa177810732 removed comments --- diff --git a/mgclustercommand.cpp b/mgclustercommand.cpp index 42f6d0a..06f0519 100644 --- a/mgclustercommand.cpp +++ b/mgclustercommand.cpp @@ -235,16 +235,16 @@ int MGClusterCommand::execute(){ read = new ReadBlast(blastfile, cutoff, penalty, length, minWanted, hclusterWanted); read->read(nameMap); -// list = new ListVector(nameMap->getListVector()); -// RAbundVector* rabund = NULL; -// -// if(large) { -// map nameMapCounts = m->readNames(namefile); -// createRabund(nameMapCounts); -// rabund = &rav; -// }else { -// rabund = new RAbundVector(list->getRAbundVector()); -// } + list = new ListVector(nameMap->getListVector()); + RAbundVector* rabund = NULL; + + if(large) { + map nameMapCounts = m->readNames(namefile); + createRabund(nameMapCounts); + rabund = &rav; + }else { + rabund = new RAbundVector(list->getRAbundVector()); + } list = new ListVector(nameMap->getListVector()); @@ -714,22 +714,22 @@ void MGClusterCommand::sortHclusterFiles(string unsortedDist, string unsortedOve } //********************************************************************************************************************** -// -//void MGClusterCommand::createRabund(map nameMapCounts){ -// try { -// //RAbundVector rav; -// map::iterator it; -// //it = nameMapCounts.begin(); -// //for(int i = 0; i < list->getNumBins(); i++) { rav.push_back((*it).second); it++; } -// for ( it=nameMapCounts.begin(); it!=nameMapCounts.end(); it++ ) { rav.push_back( it->second ); } -// //return rav; -// } -// catch(exception& e) { -// m->errorOut(e, "MGClusterCommand", "createRabund"); -// exit(1); -// } -// -//} + +void MGClusterCommand::createRabund(map nameMapCounts){ + try { + //RAbundVector rav; + map::iterator it; + //it = nameMapCounts.begin(); + //for(int i = 0; i < list->getNumBins(); i++) { rav.push_back((*it).second); it++; } + for ( it=nameMapCounts.begin(); it!=nameMapCounts.end(); it++ ) { rav.push_back( it->second ); } + //return rav; + } + catch(exception& e) { + m->errorOut(e, "MGClusterCommand", "createRabund"); + exit(1); + } + +} //********************************************************************************************************************** diff --git a/mgclustercommand.h b/mgclustercommand.h index a727c97..96410bf 100644 --- a/mgclustercommand.h +++ b/mgclustercommand.h @@ -47,7 +47,7 @@ private: HCluster* hcluster; ListVector* list; ListVector oldList; -// RAbundVector rav; + RAbundVector rav; vector overlapMatrix; vector outputNames; @@ -62,7 +62,7 @@ private: ListVector* mergeOPFs(map, float); void sortHclusterFiles(string, string); vector getSeqs(ifstream&); -// void createRabund(map); + void createRabund(map); };