]> git.donarmstrong.com Git - mothur.git/blobdiff - seqsummarycommand.cpp
working on current change
[mothur.git] / seqsummarycommand.cpp
index 620de95c333cdee1360157f7aa7068f3ce1f1f62..8c7b9b69525abe705d432069043b4288c9830e23 100644 (file)
@@ -116,11 +116,12 @@ SeqSummaryCommand::SeqSummaryCommand(string option)  {
                                fastafile = m->getFastaFile(); 
                                if (fastafile != "") { m->mothurOut("Using " + fastafile + " as input file for the fasta parameter."); m->mothurOutEndLine(); }
                                else {  m->mothurOut("You have no current fastafile and the fasta parameter is required."); m->mothurOutEndLine(); abort = true; }
-                       }       
+                       }else { m->setFastaFile(fastafile); }   
                        
                        namefile = validParameter.validFile(parameters, "name", true);
                        if (namefile == "not open") { namefile = ""; abort = true; }
                        else if (namefile == "not found") { namefile = "";  }   
+                       else { m->setNameFile(namefile); }
                        
                        //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"){