]> git.donarmstrong.com Git - mothur.git/blobdiff - getsharedotucommand.cpp
added save parameter to align.seqs, chimera commands, classify.seqs, and seq.error...
[mothur.git] / getsharedotucommand.cpp
index 06e199f7a93c96e71ba5cb15f1cafd21c8ca2d8e..046460d0f1d11f345c14ddd99b687fddbafa8ec9 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include "getsharedotucommand.h"
+#include "sharedutilities.h"
 
 //**********************************************************************************************************************
 vector<string> GetSharedOTUCommand::setParameters(){   
@@ -226,6 +227,10 @@ int GetSharedOTUCommand::execute(){
                        userGroups = "unique.";
                        for(int i = 0; i < Groups.size(); i++) {  userGroups += Groups[i] + "-";  }
                        userGroups = userGroups.substr(0, userGroups.length()-1);
+               }else{
+                       //sanity check for group names
+                       SharedUtil util;
+                       util.setGroups(Groups, groupMap->namesOfGroups);
                }
        
                //put groups in map to find easier