//**********************************************************************************************************************
int MGClusterCommand::execute(){
try {
- cout << "1" << endl;
if (abort == true) { if (calledHelp) { return 0; } return 2; }
//read names file
}
- list = new ListVector(nameMap->getListVector());
- RAbundVector* rabund = new RAbundVector(list->getRAbundVector());
+ //list = new ListVector(nameMap->getListVector());
+ //rabund = new RAbundVector(list->getRAbundVector());
if (m->control_pressed) { outputTypes.clear(); delete nameMap; delete read; delete list; delete rabund; return 0; }
m->mothurRemove(overlapFile);
}
- delete list;
- delete rabund;
+ delete list;
+ if (!large) {delete rabund;}
listFile.close();
sabundFile.close();
rabundFile.close();
void MGClusterCommand::createRabund(map<string, int> nameMapCounts){
try {
- //RAbundVector rav;
- map<string,int>::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");