]> git.donarmstrong.com Git - mothur.git/blobdiff - heatmapsimcommand.cpp
fixed sub.sample so that it will eliminate samples with abundances that are less...
[mothur.git] / heatmapsimcommand.cpp
index 0ba5ef1f28261307e91d678a73b4993ff38fa0ec..dd8fa4c7ecf647f4cc3ab9b8657cb7c3f019d1ac 100644 (file)
@@ -512,8 +512,8 @@ int HeatMapSimCommand::runCommandDist() {
                                map<string, int>::iterator itA = nameMap->find(first);
                                map<string, int>::iterator itB = nameMap->find(second);
                                
-                               if(itA == nameMap->end()){  cerr << "AAError: Sequence '" << first << "' was not found in the names file, please correct\n"; exit(1);  }
-                               if(itB == nameMap->end()){  cerr << "ABError: Sequence '" << second << "' was not found in the names file, please correct\n"; exit(1);  }
+                               if(itA == nameMap->end()){  m->mothurOut("AAError: Sequence '" + first + "' was not found in the names file, please correct\n"); exit(1);  }
+                               if(itB == nameMap->end()){  m->mothurOut("ABError: Sequence '" + second + "' was not found in the names file, please correct\n"); exit(1);  }
                                
                                //save distance
                                matrix[itA->second][itB->second] = dist;