]> git.donarmstrong.com Git - mothur.git/blobdiff - venncommand.cpp
some bug fixes
[mothur.git] / venncommand.cpp
index 35c814d2625a4f236667646801e01eb1b6c056bd..192611d15e01e2a307e5fca00287a817812968a9 100644 (file)
@@ -128,8 +128,11 @@ VennCommand::VennCommand(string option)  {
                                        }
                                }
                                
-                               venn = new Venn(outputDir);
+                               //if the users entered no valid calculators don't execute command
+                               if (vennCalculators.size() == 0) { m->mothurOut("No valid calculators given, please correct."); m->mothurOutEndLine(); abort = true;  }
+                               else {  venn = new Venn(outputDir);  }
                        }
+                       
                }
 
                
@@ -188,9 +191,6 @@ int VennCommand::execute(){
                string lastLabel;
                vector<string> outputNames;
                
-               //if the users entered no valid calculators don't execute command
-               if (vennCalculators.size() == 0) { return 0; }
-               
                if (format == "sharedfile") {
                        //you have groups
                        read = new ReadOTUFile(globaldata->inputFileName);