X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=collectcommand.cpp;h=95a79d5bc69f763688915ecb998bd47cff162f1e;hb=ec43347d04dbb2a7d9d9ecfb5fc556e21ad8c2bc;hp=0f622c49b2a30632f53e4fa3ec0dfc3196113374;hpb=09a01fb51eea9e81409d367410c831394193fd86;p=mothur.git diff --git a/collectcommand.cpp b/collectcommand.cpp index 0f622c4..95a79d5 100644 --- a/collectcommand.cpp +++ b/collectcommand.cpp @@ -36,7 +36,8 @@ CollectCommand::CollectCommand(){ }else if (globaldata->Estimators[i] == "chao") { cDisplays.push_back(new CollectDisplay(new Chao1(), new ThreeColumnFile(fileNameRoot+"chao"))); }else if (globaldata->Estimators[i] == "ace") { - cDisplays.push_back(new CollectDisplay(new Ace(), new ThreeColumnFile(fileNameRoot+"ace"))); + convert(globaldata->getAbund(), abund); + cDisplays.push_back(new CollectDisplay(new Ace(abund), new ThreeColumnFile(fileNameRoot+"ace"))); }else if (globaldata->Estimators[i] == "jack") { cDisplays.push_back(new CollectDisplay(new Jackknife(), new ThreeColumnFile(fileNameRoot+"jack"))); }else if (globaldata->Estimators[i] == "shannon") { @@ -88,11 +89,12 @@ int CollectCommand::execute(){ order = globaldata->gorder; input = globaldata->ginput; - + set orderList; + while(order != NULL){ + orderList.insert(order->getLabel()); if(globaldata->allLines == 1 || globaldata->lines.count(count) == 1 || globaldata->labels.count(order->getLabel()) == 1){ - cCurve = new Collect(order, cDisplays); convert(globaldata->getFreq(), freq); cCurve->getCurve(freq); @@ -101,12 +103,13 @@ int CollectCommand::execute(){ cout << order->getLabel() << '\t' << count << endl; } - order = (input->getOrderVector()); count++; - } - + set::iterator i; + for(i = globaldata->labels.begin(); i != globaldata->labels.end(); ++i) + if(orderList.count(*i) == 0) + cout << "'" << *i << "'" << " is not a valid label.\n"; for(int i=0;i