]> git.donarmstrong.com Git - mothur.git/blobdiff - sensspeccommand.cpp
1.18.0
[mothur.git] / sensspeccommand.cpp
index c7f67b40b0e10ae14741600f9b8b3b8d7e0adaa2..3eb422e54c1943b71c59e719ce840cbf9675448a 100644 (file)
@@ -189,7 +189,7 @@ SensSpecCommand::SensSpecCommand(string option)  {
                        
                        lineLabel = validParameter.validFile(parameters, "label", false);       if (lineLabel == "not found") { lineLabel = ""; }
                        
-                       sensSpecFileName = listFile.substr(0,listFile.find_last_of('.')) + ".sensspec";
+                       sensSpecFileName = outputDir + m->getRootName(m->getSimpleName(listFile)) + ".sensspec";
                }
        }
        catch(exception& e) {