- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function ValidCalculator. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the ValidCalculator class function ValidCalculator. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
if ((sharedsummary.find(calculator)) != (sharedsummary.end())) {
return true;
}else {
if ((sharedsummary.find(calculator)) != (sharedsummary.end())) {
return true;
}else {
- cout << calculator << " is not a valid estimator for the summary.shared command and will be disregarded. Valid estimators are ";
+ m->mothurOut(calculator + " is not a valid estimator for the summary.shared command and will be disregarded. Valid estimators are ");
for (it = sharedsummary.begin(); it != sharedsummary.end(); it++) {
for (it = sharedsummary.begin(); it != sharedsummary.end(); it++) {
- cout << it->first << ", ";
+ m->mothurOut(it->first + ", ");
}
}
- cout << endl;
+ m->mothurOutEndLine();
return false; }
}else if (parameter == "sharedrarefaction") {
//is it valid
if ((sharedrarefaction.find(calculator)) != (sharedrarefaction.end())) {
return true;
}else {
return false; }
}else if (parameter == "sharedrarefaction") {
//is it valid
if ((sharedrarefaction.find(calculator)) != (sharedrarefaction.end())) {
return true;
}else {
- cout << calculator << " is not a valid estimator for the rarefaction.shared command and will be disregarded. Valid estimator is ";
+ m->mothurOut(calculator + " is not a valid estimator for the rarefaction.shared command and will be disregarded. Valid estimator is ");
for (it = sharedrarefaction.begin(); it != sharedrarefaction.end(); it++) {
for (it = sharedrarefaction.begin(); it != sharedrarefaction.end(); it++) {
- cout << it->first << ", ";
+ m->mothurOut(it->first + ", ");
}
}
- cout << endl;
+ m->mothurOutEndLine();
return false; }
}else if (parameter == "vennsingle") {
//is it valid
if ((vennsingle.find(calculator)) != (vennsingle.end())) {
return true;
}else {
return false; }
}else if (parameter == "vennsingle") {
//is it valid
if ((vennsingle.find(calculator)) != (vennsingle.end())) {
return true;
}else {
- cout << calculator << " is not a valid estimator for the venn command in single mode and will be disregarded. Valid estimators are ";
+ m->mothurOut(calculator + " is not a valid estimator for the venn command in single mode and will be disregarded. Valid estimators are ");
for (it = vennsingle.begin(); it != vennsingle.end(); it++) {
for (it = vennsingle.begin(); it != vennsingle.end(); it++) {
- cout << it->first << ", ";
+ m->mothurOut(it->first + ", ");
}
}
- cout << endl;
+ m->mothurOutEndLine();
return false; }
}else if (parameter == "vennshared") {
//is it valid
if ((vennshared.find(calculator)) != (vennshared.end())) {
return true;
}else {
return false; }
}else if (parameter == "vennshared") {
//is it valid
if ((vennshared.find(calculator)) != (vennshared.end())) {
return true;
}else {
- cout << calculator << " is not a valid estimator for the venn command in shared mode and will be disregarded. Valid estimators are ";
+ m->mothurOut(calculator + " is not a valid estimator for the venn command in shared mode and will be disregarded. Valid estimators are ");
for (it = vennshared.begin(); it != vennshared.end(); it++) {
for (it = vennshared.begin(); it != vennshared.end(); it++) {
- cout << it->first << ", ";
+ m->mothurOut(it->first + ", ");
}
}
- cout << endl;
+ m->mothurOutEndLine();
return false; }
}else if (parameter == "treegroup") {
//is it valid
if ((treegroup.find(calculator)) != (treegroup.end())) {
return true;
}else {
return false; }
}else if (parameter == "treegroup") {
//is it valid
if ((treegroup.find(calculator)) != (treegroup.end())) {
return true;
}else {
- cout << calculator << " is not a valid estimator for the tree.shared command and will be disregarded. Valid estimators are ";
+ m->mothurOut(calculator + " is not a valid estimator for the tree.shared command and will be disregarded. Valid estimators are ");
for (it = treegroup.begin(); it != treegroup.end(); it++) {
for (it = treegroup.begin(); it != treegroup.end(); it++) {
- cout << it->first << ", ";
+ m->mothurOut(it->first + ", ");
}
}
- cout << endl;
+ m->mothurOutEndLine();
return false; }
}else if (parameter == "matrix") {
//is it valid
if ((matrix.find(calculator)) != (matrix.end())) {
return true;
}else {
return false; }
}else if (parameter == "matrix") {
//is it valid
if ((matrix.find(calculator)) != (matrix.end())) {
return true;
}else {
- cout << calculator << " is not a valid estimator for the matrix.output command and will be disregarded. Valid estimators are ";
+ m->mothurOut(calculator + " is not a valid estimator for the matrix.output command and will be disregarded. Valid estimators are ");
for (it = matrix.begin(); it != matrix.end(); it++) {
for (it = matrix.begin(); it != matrix.end(); it++) {
- cout << it->first << ", ";
+ m->mothurOut(it->first + ", ");
}
}
- cout << endl;
+ m->mothurOutEndLine();
return false; }
}else if (parameter == "heat") {
//is it valid
if ((heat.find(calculator)) != (heat.end())) {
return true;
}else {
return false; }
}else if (parameter == "heat") {
//is it valid
if ((heat.find(calculator)) != (heat.end())) {
return true;
}else {
- cout << calculator << " is not a valid estimator for the heatmap.sim command and will be disregarded. Valid estimators are ";
+ m->mothurOut(calculator + " is not a valid estimator for the heatmap.sim command and will be disregarded. Valid estimators are ");
for (it = heat.begin(); it != heat.end(); it++) {
for (it = heat.begin(); it != heat.end(); it++) {
- cout << it->first << ", ";
+ m->mothurOut(it->first + ", ");
}
}
- cout << endl;
+ m->mothurOutEndLine();
return false; }
}else if (parameter == "boot") {
//is it valid
if ((boot.find(calculator)) != (boot.end())) {
return true;
}else {
return false; }
}else if (parameter == "boot") {
//is it valid
if ((boot.find(calculator)) != (boot.end())) {
return true;
}else {
- cout << calculator << " is not a valid estimator for the bootstrap.shared command and will be disregarded. Valid estimators are ";
+ m->mothurOut(calculator + " is not a valid estimator for the bootstrap.shared command and will be disregarded. Valid estimators are ");
for (it = boot.begin(); it != boot.end(); it++) {
for (it = boot.begin(); it != boot.end(); it++) {
- cout << it->first << ", ";
+ m->mothurOut(it->first + ", ");
}
}
- cout << endl;
+ m->mothurOutEndLine();
return false; }
}else if (parameter == "distance") {
//is it valid
if ((distance.find(calculator)) != (distance.end())) {
return true;
}else {
return false; }
}else if (parameter == "distance") {
//is it valid
if ((distance.find(calculator)) != (distance.end())) {
return true;
}else {
- cout << calculator << " is not a valid estimator for the distance command and will be disregarded. Valid calculators are ";
+ m->mothurOut(calculator + " is not a valid estimator for the distance command and will be disregarded. Valid calculators are ");
for (it = distance.begin(); it != distance.end(); it++) {
for (it = distance.begin(); it != distance.end(); it++) {
- cout << it->first << ", ";
+ m->mothurOut(it->first + ", ");
}
}
- cout << endl;
+ m->mothurOutEndLine();
return false; }
//not a valid parameter
}else { return false; }
}
catch(exception& e) {
return false; }
//not a valid parameter
}else { return false; }
}
catch(exception& e) {
- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function isValidCalculator. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the ValidCalculator class function isValidCalculator. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function initialSingle. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the ValidCalculator class function initialSingle. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function initialShared. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the ValidCalculator class function initialShared. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function initialRarefaction. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the ValidCalculator class function initialRarefaction. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function initialSummary. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the ValidCalculator class function initialSummary. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function initialSharedSummary. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the ValidCalculator class function initialSharedSummary. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function initialSharedRarefact. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the ValidCalculator class function initialSharedRarefact. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function initialSingle. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the ValidCalculator class function initialSingle. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function initialSingle. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the ValidCalculator class function initialSingle. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function initialTreeGroups. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the ValidCalculator class function initialTreeGroups. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function initialHeat. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the ValidCalculator class function initialHeat. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function initialMatrix. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the ValidCalculator class function initialMatrix. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function initialBoot. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the ValidCalculator class function initialBoot. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function initialDistance. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "An unknown error has occurred in the ValidCalculator class function initialDistance. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- cout << "Standard Error: " << e.what() << " has occurred in the ValidCalculator class Function printCalc. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ m->errorOut(e, "ValidCalculator", "printCalc");
exit(1);
}
exit(1);
}
- catch(...) {
- cout << "An unknown error has occurred in the ValidCalculator class function printCalc. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";