]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedcommand.cpp
added classify.shared command and random forest files. added count file to pcr.seqs...
[mothur.git] / sharedcommand.cpp
index 39801063110e6ca91a3f9029caf5c7b6eb8d6e91..542f8d346447322aea63491e092b97632449bd62 100644 (file)
@@ -188,7 +188,11 @@ SharedCommand::SharedCommand(string option)  {
              countfile = validParameter.validFile(parameters, "count", true);
              if (countfile == "not open") { countfile = ""; abort = true; }    
              else if (countfile == "not found") { countfile = ""; }
-             else {  m->setCountTableFile(countfile); }
+             else {  
+                 m->setCountTableFile(countfile); 
+                 CountTable temp;
+                 if (!temp.testGroups(countfile)) { m->mothurOut("[ERROR]: Your count file does not have group info, aborting."); m->mothurOutEndLine(); abort=true; }
+             }
                         
             if ((biomfile == "") && (listfile == "")) { 
                                //is there are current file available for either of these?