]> git.donarmstrong.com Git - mothur.git/blobdiff - readotucommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / readotucommand.cpp
index 67575561721451bfe172c7235bb172ed24606155..3d0b94d84fb4ec54fe14e4b07a6adfde21f6f432 100644 (file)
@@ -310,8 +310,22 @@ int ReadOtuCommand::execute(){
                        
                        outputTypes = shared->getOutputFiles();
                        
+                       //set rabund file as new current rabundfile
+                       string current = "";
+                       itTypes = outputTypes.find("rabund");
+                       if (itTypes != outputTypes.end()) {
+                               if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setRabundFile(current); }
+                       }
+                       
+                       itTypes = outputTypes.find("shared");
+                       if (itTypes != outputTypes.end()) {
+                               if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setSharedFile(current); }
+                       }                       
+                       
                        delete shared;
                }
+               
+                               
                return 0;
        }
        catch(exception& e) {