Skip to content

Commit

Permalink
Removes extra white space from nmds
Browse files Browse the repository at this point in the history
Issue mothur#34
  • Loading branch information
mothur-westcott committed Jun 17, 2015
1 parent 7fc4ad4 commit 018897e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/commands/nmdscommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ int NMDSCommand::execute(){
if (m->control_pressed) { out.close(); out2.close(); for (int k = 0; k < outputNames.size(); k++) { m->mothurRemove(outputNames[k]); } return 0; }

//output results
out << "Config" << (j+1) << '\t';
for (int k = 0; k < i; k++) { out << "axis" << (k+1) << '\t'; }
out << "Config" << (j+1);
for (int k = 0; k < i; k++) { out << '\t' << "axis" << (k+1); }
out << endl;
out2 << i << '\t' << (j+1) << '\t' << stress << '\t' << rsquared << endl;

Expand Down Expand Up @@ -289,8 +289,8 @@ int NMDSCommand::execute(){
outBest.setf(ios::fixed, ios::floatfield);
outBest.setf(ios::showpoint);

outBest << "group" << '\t';
for (int k = 0; k < bestConfig.size(); k++) { outBest << "axis" << (k+1) << '\t'; }
outBest << "group";
for (int k = 0; k < bestConfig.size(); k++) { outBest << '\t' << "axis" << (k+1); }
outBest << endl;

output(bestConfig, names, outBest);
Expand Down Expand Up @@ -498,10 +498,10 @@ int NMDSCommand::output(vector< vector<double> >& config, vector<string>& names,

for (int i = 0; i < names.size(); i++) {

out << names[i] << '\t';
out << names[i];

for (int j = 0; j < config.size(); j++) {
out << config[j][i] << '\t';
out << '\t' << config[j][i];
}

out << endl;
Expand Down

0 comments on commit 018897e

Please sign in to comment.