]> git.donarmstrong.com Git - mothur.git/blobdiff - getsabundcommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / getsabundcommand.cpp
index 2ae807c65c7d9f4ec814564fb5823ccd3f925471..0533af3604bd6361dadae6294efeb11f6c6c8fd2 100644 (file)
@@ -248,6 +248,13 @@ int GetSAbundCommand::execute(){
                m->mothurOut(filename); m->mothurOutEndLine();  outputNames.push_back(filename); outputTypes["sabund"].push_back(filename);
                m->mothurOutEndLine();
                
+               //set sabund file as new current sabundfile
+               string current = "";
+               itTypes = outputTypes.find("sabund");
+               if (itTypes != outputTypes.end()) {
+                       if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setSabundFile(current); }
+               }
+               
                return 0;               
        }