From 7f708111e16093634c2b96c5695a44d1d218520d Mon Sep 17 00:00:00 2001 From: Pat Schloss Date: Tue, 10 Apr 2012 17:55:01 -0400 Subject: [PATCH] fixing outputdir bug in shhhercommand.cpp --- shhhercommand.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shhhercommand.cpp b/shhhercommand.cpp index 70aee3c..d8f538b 100644 --- a/shhhercommand.cpp +++ b/shhhercommand.cpp @@ -148,11 +148,11 @@ ShhherCommand::ShhherCommand(string option) { ofstream temp; //flow.files = 9 character offset - compositeFASTAFileName = flowFilesFileName.substr(0, flowFilesFileName.length()-10) + "shhh.fasta"; + compositeFASTAFileName = outputDir + flowFilesFileName.substr(0, flowFilesFileName.length()-10) + "shhh.fasta"; m->openOutputFile(compositeFASTAFileName, temp); temp.close(); - compositeNamesFileName = flowFilesFileName.substr(0, flowFilesFileName.length()-10) + "shhh.names"; + compositeNamesFileName = outputDir + flowFilesFileName.substr(0, flowFilesFileName.length()-10) + "shhh.names"; m->openOutputFile(compositeNamesFileName, temp); temp.close(); } @@ -1734,7 +1734,7 @@ void ShhherCommand::writeSequences(vector otuCounts){ outputNames.push_back(fastaFileName); if(compositeFASTAFileName != ""){ - m->appendFiles(fastaFileName, thisOutputDir + compositeFASTAFileName); + m->appendFiles(fastaFileName, compositeFASTAFileName); } } catch(exception& e) { @@ -1772,7 +1772,7 @@ void ShhherCommand::writeNames(vector otuCounts){ if(compositeNamesFileName != ""){ - m->appendFiles(nameFileName, thisOutputDir + uchimecompositeNamesFileName); + m->appendFiles(nameFileName, uchimecompositeNamesFileName); } } catch(exception& e) { -- 2.39.2