]> git.donarmstrong.com Git - mothur.git/blobdiff - mothurout.cpp
added abundance and sample parameters to get.coremicrobiome command.
[mothur.git] / mothurout.cpp
index 0431d36796dd32cf4ac404dee2843150a4b5b110..61b39514e43b79bc146eb3e37ed4dc8d41017a62 100644 (file)
@@ -1929,6 +1929,26 @@ void MothurOut::splitAtDash(string& estim, set<int>& container) {
                exit(1);
        }       
 }
+/***********************************************************************/
+string MothurOut::makeList(vector<string>& names) {
+       try {
+               string list = "";
+        
+        if (names.size() == 0) { return list; }
+               
+        for (int i = 0; i < names.size()-1; i++) { list += names[i] + ",";  }
+        
+        //get last name
+        list += names[names.size()-1];
+        
+        return list;
+    }
+       catch(exception& e) {
+               errorOut(e, "MothurOut", "makeList");
+               exit(1);
+       }       
+}
+
 /***********************************************************************/
 //This function parses the a string and puts peices in a vector
 void MothurOut::splitAtComma(string& estim, vector<string>& container) {