]> git.donarmstrong.com Git - mothur.git/blobdiff - splitgroupscommand.cpp
fixed bug with shhh.flow from file path name in write functions, added "smart" featur...
[mothur.git] / splitgroupscommand.cpp
index 113439c9220429f4d9466a72a579c5aa2caa10ae..26716554decad148623563d4b120148325b7477a 100644 (file)
@@ -125,7 +125,7 @@ SplitGroupCommand::SplitGroupCommand(string option)  {
 
                        
                        namefile = validParameter.validFile(parameters, "name", true);
-                       if (namefile == "not open") { abort = true; }
+                       if (namefile == "not open") { namefile = ""; abort = true; }
                        else if (namefile == "not found") { namefile = ""; }    
                        else { m->setNameFile(namefile); }
                
@@ -151,6 +151,11 @@ SplitGroupCommand::SplitGroupCommand(string option)  {
                                                
                        //if the user changes the output directory command factory will send this info to us in the output parameter 
                        outputDir = validParameter.validFile(parameters, "outputdir", false);           if (outputDir == "not found"){  outputDir = m->hasPath(groupfile);      }
+                       
+                       if (namefile == "") {
+                               vector<string> files; files.push_back(fastafile);
+                               parser.getNameFile(files);
+                       }
                }
 
        }