]> git.donarmstrong.com Git - mothur.git/blobdiff - sensspeccommand.cpp
fixed bug in chimera.uchime
[mothur.git] / sensspeccommand.cpp
index c7f67b40b0e10ae14741600f9b8b3b8d7e0adaa2..213a2ca99da988257a46ba8e91cb5e4123b5bb0e 100644 (file)
@@ -66,6 +66,7 @@ SensSpecCommand::SensSpecCommand(string option)  {
                
                //allow user to run help
                if(option == "help") { help(); abort = true; calledHelp = true; }
+               else if(option == "citation") { citation(); abort = true; calledHelp = true;}
                
                else {
                        string temp;
@@ -189,7 +190,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) {