X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=shhhercommand.cpp;h=49e2faa03c1cd2eb74ea502ee5952c0512678644;hb=f816b683e586575bfe3479760a8afd5ab08e8573;hp=89d78288639e6cca3e8eebca34dd01174c3963da;hpb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;p=mothur.git diff --git a/shhhercommand.cpp b/shhhercommand.cpp index 89d7828..49e2faa 100644 --- a/shhhercommand.cpp +++ b/shhhercommand.cpp @@ -152,11 +152,11 @@ ShhherCommand::ShhherCommand(string option) { string thisoutputDir = m->hasPath(flowFilesFileName); //if user entered a file with a path then preserve it //flow.files = 9 character offset - compositeFASTAFileName = thisoutputDir + flowFilesFileName.substr(0, flowFilesFileName.length()-10) + "shhh.fasta"; + compositeFASTAFileName = thisoutputDir + m->getRootName(m->getSimpleName(flowFilesFileName)) + "shhh.fasta"; m->openOutputFile(compositeFASTAFileName, temp); temp.close(); - compositeNamesFileName = thisoutputDir + flowFilesFileName.substr(0, flowFilesFileName.length()-10) + "shhh.names"; + compositeNamesFileName = thisoutputDir + m->getRootName(m->getSimpleName(flowFilesFileName)) + "shhh.names"; m->openOutputFile(compositeNamesFileName, temp); temp.close(); }