]> git.donarmstrong.com Git - mothur.git/blobdiff - clusterfragmentscommand.cpp
fixed bug with shhh.flow from file path name in write functions, added "smart" featur...
[mothur.git] / clusterfragmentscommand.cpp
index ad1bd81b4a9d4554751cfbbc5eb836e107e7b53d..772113baf83e9fbbd057794103f46ffa21c21fda 100644 (file)
@@ -147,7 +147,7 @@ ClusterFragmentsCommand::ClusterFragmentsCommand(string option) {
                        // ...at some point should added some additional type checking...
                        namefile = validParameter.validFile(parameters, "name", true);
                        if (namefile == "not found") { namefile =  "";  }
-                       else if (namefile == "not open") { abort = true; }      
+                       else if (namefile == "not open") { namefile = ""; abort = true; }       
                        else {  readNameFile(); m->setNameFile(namefile); }
                        
                        string temp;
@@ -157,6 +157,11 @@ ClusterFragmentsCommand::ClusterFragmentsCommand(string option) {
                        temp = validParameter.validFile(parameters, "percent", false);          if (temp == "not found"){       temp = "0";                             }
                        m->mothurConvert(temp, percent);
                        
+                       if (namefile == "") {
+                               vector<string> files; files.push_back(fastafile);
+                               parser.getNameFile(files);
+                       }
+                       
                }
                                
        }