X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=getlistcountcommand.cpp;h=2f194a8068555fb9f962e725bd9eec977d2fa174;hp=a4d7b83397f83bf6ae3dd21627566252035b328f;hb=499f4ac6e321f9f03d4c3aa25c3b6880892c8b83;hpb=a935b75dd890da5ae7f09e5e6179f90ab2955348 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; } } }