if (parameter == "fileroot" ) { fileroot = value; }
if (parameter == "line" ) { line = value; }
if (parameter == "label" ) { label = value; }
- if (parameter == "randomtree" ) { randomtree = value; }
+ if (parameter == "random" ) { randomtree = value; }
}
if (parameter == "fileroot" ) { fileroot = value; }
if (parameter == "line" ) { line = value; }
if (parameter == "label" ) { label = value; }
- if (parameter == "randomtree" ) { randomtree = value; }
+ if (parameter == "random" ) { randomtree = value; }
}
}
//make sure the user does not use both the line and label parameters
if ((line != "") && (label != "")) { cout << "You may use either the line or label parameters, but not both." << endl; return false; }
- //make sure you have a valid random tree value
- if ((randomtree != "0") && (randomtree != "1")) { cout << randomtree << " is not a valid randomtree value. Valid values for randomtree are 0, (meaning you have read your own trees) or 1 (meaning you want to random distribution of trees)." << endl; return false; }
-
if (commandName == "read.dist") {
validateReadFiles();
validateReadDist();
if (commandName == "parsimony") {
//are you trying to use parsimony without reading a tree or saying you want random distribution
- if (randomtree == "0") {
+ if (randomtree == "") {
if (globaldata->gTree.size() == 0) {
- cout << "You must read a treefile and a groupfile or set the randomtree parameter to 1, before you may execute the parsimony command." << endl; return false; }
+ cout << "You must read a treefile and a groupfile or set the randomtree parameter to the output filename you wish, before you may execute the parsimony command." << endl; return false; }
}
}