RAbundVector* rabund = NULL;
if(large) {
map<string, int> 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());
//**********************************************************************************************************************
+RAbundVector MGClusterCommand::createRabund(ListVector list, map<string, int> nameMapCounts){
+ 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);
+ }
+
+}
-
+//**********************************************************************************************************************