X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getcoremicrobiomecommand.cpp;h=2a81aceaec825d29de3a2373d461466fb28aa93c;hb=6b32d112bb60e9f7eb6d4407a4eed4c49b67bced;hp=5fbb78131ed3ceda425516bdcd2766f3c1eb196f;hpb=1a5c2356c1b955c6ec024b2baf9f46377ee7c72e;p=mothur.git 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]); } } }