]> git.donarmstrong.com Git - mothur.git/blobdiff - clearcutcommand.cpp
minor mods to seq.error
[mothur.git] / clearcutcommand.cpp
index afb215932958e273093726a3b71a398faabc4dc2..29a5d725ff121b47b5c8f3132f54776f3e8a34ff 100644 (file)
@@ -108,6 +108,7 @@ ClearcutCommand::ClearcutCommand(string option)  {
                
                //allow user to run help
                if(option == "help") { help(); abort = true; calledHelp = true; }
+               else if(option == "citation") { citation(); abort = true; calledHelp = true;}
                
                else {
                        vector<string> myArray = setParameters();
@@ -154,12 +155,12 @@ ClearcutCommand::ClearcutCommand(string option)  {
                        fastafile = validParameter.validFile(parameters, "fasta", true);
                        if (fastafile == "not open") { fastafile = ""; abort = true; }
                        else if (fastafile == "not found") { fastafile = ""; }  
-                       else { inputFile = fastafile;  }
+                       else { inputFile = fastafile;  m->setFastaFile(fastafile); }
                        
                        phylipfile = validParameter.validFile(parameters, "phylip", true);
                        if (phylipfile == "not open") { phylipfile = ""; abort = true; }
                        else if (phylipfile == "not found") { phylipfile = ""; }
-                       else { inputFile = phylipfile;  }
+                       else { inputFile = phylipfile;  m->setPhylipFile(phylipfile); }
                                
                        if ((phylipfile == "") && (fastafile == "")) {  
                                //is there are current file available for either of these?