/******************************************************/
void ErrorCheck::refresh() {
+
//columnfile = globaldata->getColumnFile();
//phylipfile = globaldata->getPhylipFile();
//listfile = globaldata->getListFile();
//method = globaldata->getMethod();
//randomtree = globaldata->getRandomTree();
//sharedfile = globaldata->getSharedFile();
+
}
/*******************************************************/
//is it a valid command
if (validCommand->isValidCommand(commandName) != true) { return false; }
-
string parameter, value;
//reads in parameters and values
if (parameter == "name" ) { namefile = value; }
if (parameter == "order" ) { orderfile = value; }
if (parameter == "fasta" ) { fastafile = value; }
+ if (parameter == "nexus" ) { nexusfile = value; }
+ if (parameter == "clustal" ) { clustalfile = value; }
if (parameter == "tree" ) { treefile = value; }
- if (parameter == "group" ) { groupfile = value; }
- if (parameter == "shared" ) { sharedfile = value; }
+ if (parameter == "group" ) { groupfile = value; }
+ if (parameter == "shared" ) { sharedfile = value; }
if (parameter == "cutoff" ) { cutoff = value; }
if (parameter == "precision" ) { precision = value; }
if (parameter == "iters" ) { iters = value; }
if (parameter == "line" ) { line = value; }
if (parameter == "label" ) { label = value; }
if (parameter == "abund" ) { abund = value; }
- if (parameter == "random" ) { randomtree = value; }
- if (parameter == "sorted" ) { sorted = value; }
+ if (parameter == "random" ) { randomtree = value; }
+ if (parameter == "sorted" ) { sorted = value; }
+ if (parameter == "trump" ) { trump = value; }
+ if (parameter == "soft" ) { soft = value; }
+ if (parameter == "filter" ) { filter = value; }
if (parameter == "scale" ) { scale = value; }
-
+
}
//gets the last parameter and value
if (parameter == "group" ) { groupfile = value; }
if (parameter == "shared" ) { sharedfile = value; }
if (parameter == "fasta" ) { fastafile = value; }
+ if (parameter == "nexus" ) { nexusfile = value; }
+ if (parameter == "clustal" ) { clustalfile = value; }
if (parameter == "tree" ) { treefile = value; }
if (parameter == "cutoff" ) { cutoff = value; }
if (parameter == "precision" ) { precision = value; }
if (parameter == "random" ) { randomtree = value; }
if (parameter == "abund" ) { abund = value; }
if (parameter == "sorted" ) { sorted = value; }
+ if (parameter == "trump" ) { trump = value; }
+ if (parameter == "soft" ) { soft = value; }
+ if (parameter == "filter" ) { filter = value; }
if (parameter == "scale" ) { scale = value; }
+
}
}
}
}else if (commandName == "read.tree") {
validateTreeFiles(); //checks the treefile and groupfile parameters
+ }else if (commandName == "read.seqs") {
+ if ((fastafile == "") && (nexusfile == "") && (clustalfile == "") && (phylipfile == "")) { cout << "You must enter a fastafile, nexusfile, or clustalfile with the read.seqs() command." << endl; return false; }
}else if (commandName == "deconvolute") {
if (fastafile == "") { cout << "You must enter a fastafile with the deconvolute() command." << endl; return false; }
validateReadFiles();
}
}
+ if (commandName == "filter.seqs"){
+ if ((globaldata->getFastaFile() == "") && (globaldata->getNexusFile() == "") && (globaldata->getClustalFile() == "") && (globaldata->getPhylipFile() == "")) {
+ cout << "You must read either a fasta, nexus, clustal, or phylip file before you can use the filter.seqs command." << endl; return false;
+ }
+ }
+
if ((commandName == "bin.seqs")) {
if ((globaldata->getListFile() == "")) { cout << "You must read a list file before you can use the bin.seqs command." << endl; return false; }
validateBinFiles();
groupfile = "";
orderfile = "";
sharedfile = "";
+ fastafile = "";
+ nexusfile = "";
+ clustalfile = "";
line = "";
label = "";
method = "furthest";