X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=corraxescommand.cpp;fp=corraxescommand.cpp;h=c27eb4b9ac335112f19244c708cee9bb8630feda;hb=e41b86a600fe30f5df9507d7e55027e7b8bd7dd6;hp=a1c3a3d6cd9e6849fb5f86be42a1d46bcd9bc138;hpb=53171f07cc0c0e560e2b4ba2946f690d59fc2dc4;p=mothur.git diff --git a/corraxescommand.cpp b/corraxescommand.cpp index a1c3a3d..c27eb4b 100644 --- a/corraxescommand.cpp +++ b/corraxescommand.cpp @@ -321,7 +321,7 @@ int CorrAxesCommand::calcPearson(map >& axes, ofstream& ou //for each otu for (int i = 0; i < lookupFloat[0]->getNumBins(); i++) { - if (metadatafile == "") { out << i+1; } + if (metadatafile == "") { out << m->currentBinLabels[i]; } else { out << metadataLabels[i]; } //find the averages this otu - Y @@ -456,7 +456,7 @@ int CorrAxesCommand::calcSpearman(map >& axes, ofstream& o //for each otu for (int i = 0; i < lookupFloat[0]->getNumBins(); i++) { - if (metadatafile == "") { out << i+1; } + if (metadatafile == "") { out << m->currentBinLabels[i]; } else { out << metadataLabels[i]; } //find the ranks of this otu - Y @@ -609,7 +609,7 @@ int CorrAxesCommand::calcKendall(map >& axes, ofstream& ou //for each otu for (int i = 0; i < lookupFloat[0]->getNumBins(); i++) { - if (metadatafile == "") { out << i+1; } + if (metadatafile == "") { out << m->currentBinLabels[i]; } else { out << metadataLabels[i]; } //find the ranks of this otu - Y