X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=normalizesharedcommand.cpp;fp=normalizesharedcommand.cpp;h=1000e4243e0c6fbf15f5e384871131f74d2a4ea5;hb=499f4ac6e321f9f03d4c3aa25c3b6880892c8b83;hp=acd8208ea7ebb20a3d3810d254d0b24f5386d4d3;hpb=a935b75dd890da5ae7f09e5e6179f90ab2955348;p=mothur.git diff --git a/normalizesharedcommand.cpp b/normalizesharedcommand.cpp index acd8208..1000e42 100644 --- a/normalizesharedcommand.cpp +++ b/normalizesharedcommand.cpp @@ -458,7 +458,7 @@ int NormalizeSharedCommand::execute(){ int NormalizeSharedCommand::normalize(vector& thisLookUp){ try { //save mothurOut's binLabels to restore for next label - vector saveBinLabels = m->currentBinLabels; + vector saveBinLabels = m->currentSharedBinLabels; if (pickedGroups) { eliminateZeroOTUS(thisLookUp); } @@ -540,7 +540,7 @@ int NormalizeSharedCommand::normalize(vector& thisLookUp){ out.close(); - m->currentBinLabels = saveBinLabels; + m->currentSharedBinLabels = saveBinLabels; return 0; } @@ -555,7 +555,7 @@ int NormalizeSharedCommand::normalize(vector& thisLook try { //save mothurOut's binLabels to restore for next label - vector saveBinLabels = m->currentBinLabels; + vector saveBinLabels = m->currentSharedBinLabels; map variables; variables["[filename]"] = outputDir + m->getRootName(m->getSimpleName(inputfile)); @@ -629,7 +629,7 @@ int NormalizeSharedCommand::normalize(vector& thisLook out.close(); - m->currentBinLabels = saveBinLabels; + m->currentSharedBinLabels = saveBinLabels; return 0; } @@ -675,7 +675,7 @@ int NormalizeSharedCommand::eliminateZeroOTUS(vector& thisl for (int h = 0; h < diff; h++) { binLabel += "0"; } } binLabel += sbinNumber; - if (i < m->currentBinLabels.size()) { binLabel = m->currentBinLabels[i]; } + if (i < m->currentSharedBinLabels.size()) { binLabel = m->currentSharedBinLabels[i]; } newBinLabels.push_back(binLabel); } @@ -684,7 +684,7 @@ int NormalizeSharedCommand::eliminateZeroOTUS(vector& thisl for (int j = 0; j < thislookup.size(); j++) { delete thislookup[j]; } thislookup = newLookup; - m->currentBinLabels = newBinLabels; + m->currentSharedBinLabels = newBinLabels; return 0; @@ -731,7 +731,7 @@ int NormalizeSharedCommand::eliminateZeroOTUS(vector& for (int h = 0; h < diff; h++) { binLabel += "0"; } } binLabel += sbinNumber; - if (i < m->currentBinLabels.size()) { binLabel = m->currentBinLabels[i]; } + if (i < m->currentSharedBinLabels.size()) { binLabel = m->currentSharedBinLabels[i]; } newBinLabels.push_back(binLabel); } @@ -740,7 +740,7 @@ int NormalizeSharedCommand::eliminateZeroOTUS(vector& for (int j = 0; j < thislookup.size(); j++) { delete thislookup[j]; } thislookup = newLookup; - m->currentBinLabels = newBinLabels; + m->currentSharedBinLabels = newBinLabels; return 0;