]> git.donarmstrong.com Git - mothur.git/blobdiff - deuniqueseqscommand.cpp
working on current change
[mothur.git] / deuniqueseqscommand.cpp
index aed53037c152ded2b13e00b1dfbf30ff739d341d..2ba6f3d2363d86cc49108e2cb3db71fddd1ae879 100644 (file)
@@ -114,7 +114,7 @@ DeUniqueSeqsCommand::DeUniqueSeqsCommand(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); }   
                        
                        //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"){  
@@ -128,7 +128,7 @@ DeUniqueSeqsCommand::DeUniqueSeqsCommand(string option)  {
                                nameFile = m->getNameFile(); 
                                if (nameFile != "") { m->mothurOut("Using " + nameFile + " as input file for the name parameter."); m->mothurOutEndLine(); }
                                else {  m->mothurOut("You have no current namefile and the name parameter is required."); m->mothurOutEndLine(); abort = true; }
-                       }
+                       }else { m->setNameFile(nameFile); }
                }
 
        }