]> git.donarmstrong.com Git - mothur.git/blobdiff - secondarystructurecommand.cpp
working on current change
[mothur.git] / secondarystructurecommand.cpp
index 2b84cc365d4796363bd3e4c5612abb246cfc5aab..cc53ee0f02741cbe0fc6358a3a08cd56e891cd09 100644 (file)
@@ -127,11 +127,12 @@ AlignCheckCommand::AlignCheckCommand(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"){