X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=getcoremicrobiomecommand.cpp;h=2a81aceaec825d29de3a2373d461466fb28aa93c;hp=5fbb78131ed3ceda425516bdcd2766f3c1eb196f;hb=499f4ac6e321f9f03d4c3aa25c3b6880892c8b83;hpb=a935b75dd890da5ae7f09e5e6179f90ab2955348 diff --git a/getcoremicrobiomecommand.cpp b/getcoremicrobiomecommand.cpp index 5fbb781..2a81ace 100644 --- a/getcoremicrobiomecommand.cpp +++ b/getcoremicrobiomecommand.cpp @@ -352,14 +352,14 @@ int GetCoreMicroBiomeCommand::createTable(vector& look for (int k = 0; k < counts[j]; k++) { table[j][k]++; } if ((abund == -1) && (samples != -1)) { //we want all OTUs with this number of samples - if (counts[j] >= samples) { otuNames[j].push_back(m->currentBinLabels[i]); } + if (counts[j] >= samples) { otuNames[j].push_back(m->currentSharedBinLabels[i]); } }else if ((abund != -1) && (samples == -1)) { //we want all OTUs with this relabund if (j == abund) { - for (int k = 0; k < counts[j]; k++) { otuNames[k+1].push_back(m->currentBinLabels[i]); } + for (int k = 0; k < counts[j]; k++) { otuNames[k+1].push_back(m->currentSharedBinLabels[i]); } } }else if ((abund != -1) && (samples != -1)) { //we want only OTUs with this relabund for this number of samples if ((j == abund) && (counts[j] >= samples)) { - otuNames[j].push_back(m->currentBinLabels[i]); + otuNames[j].push_back(m->currentSharedBinLabels[i]); } } }