X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=lefsecommand.cpp;h=0403c910705313432fa7320150326927d03c783b;hp=8d1768c2b1d87bc840de743cc5d1dbdc0801b7da;hb=cf9987b67aa49777a4c91c2d21f96e58bf17aa82;hpb=d1c97b8c04bb75faca1e76ffad60b37a4d789d3d diff --git a/lefsecommand.cpp b/lefsecommand.cpp index 8d1768c..0403c91 100644 --- a/lefsecommand.cpp +++ b/lefsecommand.cpp @@ -1009,8 +1009,8 @@ int LefseCommand::printResults(vector< vector > means, map if (maxMean > logMaxMean) { logMaxMean = maxMean; } logMaxMean = log10(logMaxMean); - out << m->currentBinLabels[i] << '\t' << logMaxMean << '\t'; - if (m->debug) { temp = m->currentBinLabels[i] + '\t' + toString(logMaxMean) + '\t'; } + out << m->currentSharedBinLabels[i] << '\t' << logMaxMean << '\t'; + if (m->debug) { temp = m->currentSharedBinLabels[i] + '\t' + toString(logMaxMean) + '\t'; } map::iterator it = sigLDA.find(i); if (it != sigLDA.end()) { @@ -1040,7 +1040,7 @@ bool LefseCommand::printToCoutForRTesting(vector< vector >& adjustedLook for (map::iterator it = bins.begin(); it != bins.end(); it++) { if (m->control_pressed) { break; } - cout << m->currentBinLabels[it->first] << " <- c("; + cout << m->currentSharedBinLabels[it->first] << " <- c("; for (int h = 0; h < rand_s.size()-1; h++) { cout << (adjustedLookup[count][rand_s[h]]) << ", "; } cout << (adjustedLookup[count][rand_s[rand_s.size()-1]]) << ")\n"; count++; @@ -1096,7 +1096,7 @@ bool LefseCommand::printToCoutForRTesting(vector< vector >& adjustedLook for (map::iterator it = bins.begin(); it != bins.end(); it++) { if (m->control_pressed) { break; } - tempOutput += "\"" + m->currentBinLabels[it->first] + "\"=" + m->currentBinLabels[it->first] + ","; + tempOutput += "\"" + m->currentSharedBinLabels[it->first] + "\"=" + m->currentSharedBinLabels[it->first] + ","; } //tempOutput = tempOutput.substr(0, tempOutput.length()-1); tempOutput += " class=treatments"; @@ -1109,7 +1109,7 @@ bool LefseCommand::printToCoutForRTesting(vector< vector >& adjustedLook for (map::iterator it = bins.begin(); it != bins.end(); it++) { if (m->control_pressed) { break; } - tempOutput += m->currentBinLabels[it->first] + "+"; + tempOutput += m->currentSharedBinLabels[it->first] + "+"; } tempOutput = tempOutput.substr(0, tempOutput.length()-1); //rip off extra plus sign tempOutput += "), data = dat, tol = 1e-10))"; @@ -1168,7 +1168,7 @@ int LefseCommand::makeShared(int numDesignLines) { lookup.push_back(temp); } - m->currentBinLabels.clear(); + m->currentSharedBinLabels.clear(); int count = 0; while (!in.eof()) { if (m->control_pressed) { return 0; } @@ -1189,7 +1189,7 @@ int LefseCommand::makeShared(int numDesignLines) { lookup[i-1]->push_back(value, toString(i-1)); //cout << pieces[i] << '\t'; } - m->currentBinLabels.push_back(toString(count)); + m->currentSharedBinLabels.push_back(toString(count)); //m->currentBinLabels.push_back(pieces[0]); //cout << line<< endl; //cout << endl;