X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothurout.cpp;h=9704464bf80326c87d4afa556e3353b95fcbf37e;hb=529ec122f7cac4af987e121d150b878d7c7a0d5d;hp=dfcf25b4447d28362dae3f27a4e9cfd27e362d8e;hpb=0cefb55a2616975bd4a144fc345693695ffc9bb6;p=mothur.git diff --git a/mothurout.cpp b/mothurout.cpp index dfcf25b..9704464 100644 --- a/mothurout.cpp +++ b/mothurout.cpp @@ -43,7 +43,7 @@ set MothurOut::getCurrentTypes() { types.insert("tree"); types.insert("flow"); types.insert("biom"); - types.insert("counttable"); + types.insert("count"); types.insert("processors"); return types; @@ -79,7 +79,7 @@ void MothurOut::printCurrentFiles() { if (treefile != "") { mothurOut("tree=" + treefile); mothurOutEndLine(); } if (flowfile != "") { mothurOut("flow=" + flowfile); mothurOutEndLine(); } if (biomfile != "") { mothurOut("biom=" + biomfile); mothurOutEndLine(); } - if (counttablefile != "") { mothurOut("counttable=" + counttablefile); mothurOutEndLine(); } + if (counttablefile != "") { mothurOut("count=" + counttablefile); mothurOutEndLine(); } if (processors != "1") { mothurOut("processors=" + processors); mothurOutEndLine(); } } @@ -1052,6 +1052,9 @@ int MothurOut::openInputFile(string fileName, ifstream& fileHandle){ int MothurOut::renameFile(string oldName, string newName){ try { + + if (oldName == newName) { return 0; } + ifstream inTest; int exist = openInputFile(newName, inTest, ""); inTest.close();