validateReadFiles();
}
- //are you trying to cluster before you have read something
+ //are you trying to cluster before you have read something
if (((commandName == "cluster") && (globaldata->gSparseMatrix == NULL)) ||
((commandName == "cluster") && (globaldata->gListVector == NULL))) {
cout << "Before you use the cluster command, you first need to read in a distance matrix." << endl;
}
}
- if ((commandName == "unifrac.weighted") || (commandName == "unifrac.unweighted")) {
+ if ((commandName == "unifrac.weighted") || (commandName == "unifrac.unweighted") || (commandName == "concensus")) {
if (globaldata->gTree.size() == 0) {//no trees were read
- cout << "You must execute the read.tree command, before you may execute the unifrac.weighted or unifrac.unweighted command." << endl; return false; }
+ cout << "You must execute the read.tree command, before you may execute the unifrac.weighted, unifrac.unweighted or concensus command." << endl; return false; }
}
//check for valid method