]> git.donarmstrong.com Git - mothur.git/blobdiff - preclustercommand.cpp
working on current change
[mothur.git] / preclustercommand.cpp
index 9299a6c6fc26e222869d515eb3fc362d0671bced..f13b29cc7307595460876dc482e510d2996c8d2d 100644 (file)
@@ -124,6 +124,7 @@ PreClusterCommand::PreClusterCommand(string option) {
                                else {  m->mothurOut("You have no current fastafile and the fasta parameter is required."); m->mothurOutEndLine(); abort = true; }
                        }
                        else if (fastafile == "not open") { abort = true; }     
+                       else { m->setFastaFile(fastafile); }
                        
                        //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"){  
@@ -136,7 +137,7 @@ PreClusterCommand::PreClusterCommand(string option) {
                        namefile = validParameter.validFile(parameters, "name", true);
                        if (namefile == "not found") { namefile =  "";  }
                        else if (namefile == "not open") { abort = true; }      
-                       else {  readNameFile();  }
+                       else {  readNameFile();  m->setNameFile(namefile); }
                        
                        string temp     = validParameter.validFile(parameters, "diffs", false);                         if(temp == "not found"){        temp = "1"; }
                        convert(temp, diffs);