X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=corraxescommand.cpp;h=72fa03b75edc196aafcaaa4b6ade6f95d1106d48;hp=853c174ac63012c2ebf8d21800c4886138f8ab16;hb=b206f634aae1b4ce13978d203247fb64757d5482;hpb=1a5c2356c1b955c6ec024b2baf9f46377ee7c72e diff --git a/corraxescommand.cpp b/corraxescommand.cpp index 853c174..72fa03b 100644 --- a/corraxescommand.cpp +++ b/corraxescommand.cpp @@ -339,7 +339,7 @@ int CorrAxesCommand::calcPearson(map >& axes, ofstream& ou //for each otu for (int i = 0; i < lookupFloat[0]->getNumBins(); i++) { - if (metadatafile == "") { out << m->currentBinLabels[i]; } + if (metadatafile == "") { out << m->currentSharedBinLabels[i]; } else { out << metadataLabels[i]; } //find the averages this otu - Y @@ -474,7 +474,7 @@ int CorrAxesCommand::calcSpearman(map >& axes, ofstream& o //for each otu for (int i = 0; i < lookupFloat[0]->getNumBins(); i++) { - if (metadatafile == "") { out << m->currentBinLabels[i]; } + if (metadatafile == "") { out << m->currentSharedBinLabels[i]; } else { out << metadataLabels[i]; } //find the ranks of this otu - Y @@ -627,7 +627,7 @@ int CorrAxesCommand::calcKendall(map >& axes, ofstream& ou //for each otu for (int i = 0; i < lookupFloat[0]->getNumBins(); i++) { - if (metadatafile == "") { out << m->currentBinLabels[i]; } + if (metadatafile == "") { out << m->currentSharedBinLabels[i]; } else { out << metadataLabels[i]; } //find the ranks of this otu - Y @@ -834,7 +834,7 @@ int CorrAxesCommand::eliminateZeroOTUS(vector& thisloo 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); } @@ -843,7 +843,7 @@ int CorrAxesCommand::eliminateZeroOTUS(vector& thisloo for (int j = 0; j < thislookup.size(); j++) { delete thislookup[j]; } thislookup = newLookup; - m->currentBinLabels = newBinLabels; + m->currentSharedBinLabels = newBinLabels; return 0;