]> git.donarmstrong.com Git - mothur.git/blobdiff - removeotuscommand.cpp
working on current change
[mothur.git] / removeotuscommand.cpp
index 6c8cf6a76561c151eead8d4ac151c286ba0283ad..0fbed18b8be943fc4134cc18555c5a25cbd25b74 100644 (file)
@@ -75,6 +75,7 @@ RemoveOtusCommand::RemoveOtusCommand(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();
@@ -133,7 +134,8 @@ RemoveOtusCommand::RemoveOtusCommand(string option)  {
                        //check for required parameters
                        accnosfile = validParameter.validFile(parameters, "accnos", true);
                        if (accnosfile == "not open") { abort = true; }
-                       else if (accnosfile == "not found") {  accnosfile = ""; }       
+                       else if (accnosfile == "not found") {  accnosfile = ""; }
+                       else { m->setAccnosFile(accnosfile); }
                        
                        groupfile = validParameter.validFile(parameters, "group", true);
                        if (groupfile == "not open") { abort = true; }
@@ -141,7 +143,7 @@ RemoveOtusCommand::RemoveOtusCommand(string option)  {
                                groupfile = m->getGroupFile(); 
                                if (groupfile != "") { m->mothurOut("Using " + groupfile + " as input file for the group parameter."); m->mothurOutEndLine(); }
                                else {  m->mothurOut("You have no current group file and the group parameter is required."); m->mothurOutEndLine(); abort = true; }
-                       }       
+                       }else { m->setGroupFile(groupfile); }   
                        
                        listfile = validParameter.validFile(parameters, "list", true);
                        if (listfile == "not open") { abort = true; }
@@ -149,7 +151,7 @@ RemoveOtusCommand::RemoveOtusCommand(string option)  {
                                listfile = m->getListFile(); 
                                if (listfile != "") { m->mothurOut("Using " + listfile + " as input file for the list parameter."); m->mothurOutEndLine(); }
                                else {  m->mothurOut("You have no current list file and the list parameter is required."); m->mothurOutEndLine(); abort = true; }
-                       }       
+                       }else { m->setListFile(listfile); }     
                        
                        groups = validParameter.validFile(parameters, "groups", false);                 
                        if (groups == "not found") { groups = ""; }