X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=subsamplecommand.cpp;h=8c5761d7209df23b3a8127475772e3d80b89967e;hb=dc383fb61b6d165a8d36e6108df8bc7129243ae6;hp=35441013919fbfe55452532e735b5bd1d7673f2f;hpb=49d2b7459c5027557564b21e9487dadafbbbdc96;p=mothur.git diff --git a/subsamplecommand.cpp b/subsamplecommand.cpp index 3544101..8c5761d 100644 --- a/subsamplecommand.cpp +++ b/subsamplecommand.cpp @@ -569,8 +569,8 @@ int SubSampleCommand::getSubSampleFasta() { delete uniqueCommand; m->mothurCalling = false; - m->renameFile(filenames["name"][0], outputNameFileName); - m->renameFile(filenames["fasta"][0], outputFileName); + m->renameFile(filenames["name"][0], outputNameFileName); + m->renameFile(filenames["fasta"][0], outputFileName); outputTypes["name"].push_back(outputNameFileName); outputNames.push_back(outputNameFileName); @@ -808,7 +808,7 @@ int SubSampleCommand::processShared(vector& thislookup) { string thisOutputDir = outputDir; if (outputDir == "") { thisOutputDir += m->hasPath(sharedfile); } - string outputFileName = thisOutputDir + m->getRootName(m->getSimpleName(sharedfile)) + thislookup[0]->getLabel() + getOutputFileNameTag("shared", sharedfile); + string outputFileName = thisOutputDir + m->getRootName(m->getSimpleName(sharedfile)) + thislookup[0]->getLabel() + "." +getOutputFileNameTag("shared", sharedfile); SubSample sample; vector subsampledLabels = sample.getSample(thislookup, size);