X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getlistcountcommand.cpp;h=2f194a8068555fb9f962e725bd9eec977d2fa174;hb=250e3b11b1c9c1e1ad458ab6c7e71ac2e67e11d9;hp=a4d7b83397f83bf6ae3dd21627566252035b328f;hpb=1a5c2356c1b955c6ec024b2baf9f46377ee7c72e;p=mothur.git diff --git a/getlistcountcommand.cpp b/getlistcountcommand.cpp index a4d7b83..2f194a8 100644 --- a/getlistcountcommand.cpp +++ b/getlistcountcommand.cpp @@ -260,19 +260,20 @@ void GetListCountCommand::process(ListVector* list) { m->mothurOut(list->getLabel()); m->mothurOutEndLine(); //for each bin in the list vector + vector binLabels = list->getLabels(); for (int i = 0; i < list->getNumBins(); i++) { if (m->control_pressed) { break; } binnames = list->get(i); if (sort == "otu") { - out << i+1 << '\t' << binnames << endl; + out << binLabels[i] << '\t' << binnames << endl; }else{ //sort = name vector names; m->splitAtComma(binnames, names); for (int j = 0; j < names.size(); j++) { - out << names[j] << '\t' << i+1 << endl; + out << names[j] << '\t' << binLabels[i] << endl; } } }