X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=makebiomcommand.cpp;fp=makebiomcommand.cpp;h=248b3c8194d27e05e9e8b15359cf6de5b9c2395a;hb=a935b75dd890da5ae7f09e5e6179f90ab2955348;hp=7cf8295fb48e02b0dce58b32432d39c736695259;hpb=d1c97b8c04bb75faca1e76ffad60b37a4d789d3d;p=mothur.git diff --git a/makebiomcommand.cpp b/makebiomcommand.cpp index 7cf8295..248b3c8 100644 --- a/makebiomcommand.cpp +++ b/makebiomcommand.cpp @@ -596,8 +596,9 @@ vector MakeBiomCommand::getMetaData(vector& lookup, for (int h = 0; h < diff; h++) { binLabel += "0"; } } binLabel += sbinNumber; + binLabel = m->getSimpleLabel(binLabel); labelTaxMap[binLabel] = taxs[i]; - }else { labelTaxMap[otuLabels[i]] = taxs[i]; } + }else { labelTaxMap[m->getSimpleLabel(otuLabels[i])] = taxs[i]; } } @@ -610,7 +611,7 @@ vector MakeBiomCommand::getMetaData(vector& lookup, if (m->control_pressed) { return metadata; } - it = labelTaxMap.find(m->currentBinLabels[i]); + it = labelTaxMap.find(m->getSimpleLabel(m->currentBinLabels[i])); if (it == labelTaxMap.end()) { m->mothurOut("[ERROR]: can't find taxonomy information for " + m->currentBinLabels[i] + ".\n"); m->control_pressed = true; } else {