X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=makelefsecommand.cpp;h=c859bfbc230201e4be1ef73ab19ed56f28b3412d;hp=73f9db202a0171bd49623ab685f88f9b38593dc5;hb=cf9987b67aa49777a4c91c2d21f96e58bf17aa82;hpb=d1c97b8c04bb75faca1e76ffad60b37a4d789d3d diff --git a/makelefsecommand.cpp b/makelefsecommand.cpp index 73f9db2..c859bfb 100644 --- a/makelefsecommand.cpp +++ b/makelefsecommand.cpp @@ -289,7 +289,7 @@ int MakeLefseCommand::runRelabund(map& consTax, vectorgetNumBins(); i++) { //process each otu if (m->control_pressed) { break; } - string nameOfOtu = m->currentBinLabels[i]; + string nameOfOtu = m->currentSharedBinLabels[i]; if (constaxonomyfile != "") { //try to find the otuName in consTax to replace with consensus taxonomy map::iterator it = consTax.find(nameOfOtu); if (it != consTax.end()) { @@ -299,7 +299,7 @@ int MakeLefseCommand::runRelabund(map& consTax, vectorremoveConfidences(nameOfOtu); for (int j = 0; j < nameOfOtu.length()-1; j++) { - if (nameOfOtu[j] == ';') { fixedName += "_" + m->currentBinLabels[i] + '|'; } + if (nameOfOtu[j] == ';') { fixedName += "_" + m->currentSharedBinLabels[i] + '|'; } else { fixedName += nameOfOtu[j]; } } nameOfOtu = fixedName;