]> git.donarmstrong.com Git - mothur.git/blobdiff - getrelabundcommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / getrelabundcommand.cpp
index 5e48203f87e11fe14f54033b966b0bbd55bdde60..e79ccc9a3b3c9ec4812dc219af6dbe0428d5ece9 100644 (file)
@@ -263,6 +263,13 @@ int GetRelAbundCommand::execute(){
                m->mothurOut(outputFileName); m->mothurOutEndLine(); outputNames.push_back(outputFileName); outputTypes["relabund"].push_back(outputFileName);
                m->mothurOutEndLine();
                
+               //set relabund file as new current relabundfile
+               string current = "";
+               itTypes = outputTypes.find("relabund");
+               if (itTypes != outputTypes.end()) {
+                       if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setRelAbundFile(current); }
+               }
+               
                return 0;
        }
        catch(exception& e) {