if (parameter == "ends" ) { ends = value; }
if (parameter == "processors" ) { processors = value; }
if (parameter == "size" ) { size = value; }
- if (parameter == "template") { templatefile = value; }
+ if (parameter == "candidate") { candidatefile = value; }
if (parameter == "search") { search = value; }
if (parameter == "ksize") { ksize = value; }
if (parameter == "align") { align = value; }
if (parameter == "ends" ) { ends = value; }
if (parameter == "processors" ) { processors = value; }
if (parameter == "size" ) { size = value; }
- if (parameter == "template") { templatefile = value; }
+ if (parameter == "candidate") { candidatefile = value; }
if (parameter == "search") { search = value; }
if (parameter == "ksize") { ksize = value; }
if (parameter == "align") { align = value; }
}
}
- if ((commandName == "filter.seqs") || (commandName == "dist.seqs") || (commandName == "align.seqs")) {
+ if ((commandName == "filter.seqs") || (commandName == "dist.seqs")) {
if ((fastafile == "") && (nexusfile == "") && (clustalfile == "") && (phylipfile == "")) {
- cout << "You must enter either a fasta, nexus, clustal, or phylip file before you can use the filter.seqs, dist.seqs or align.seqs command." << endl; return false;
- }else if ((commandName == "align.seqs") && (templatefile == "")) {
- cout << "You must enter a template to use the align.seqs command." << endl; return false;
+ cout << "You must enter either a fasta, nexus, clustal, or phylip file before you can use the filter.seqs or dist.seqs command." << endl; return false;
+ }
+ validateSeqsFiles();
+ }
+
+ if (commandName == "align.seqs") {
+ if ((fastafile == "") || (candidatefile == "")) {
+ cout << "You must enter fasta and a candidate file to use the align.seqs command." << endl; return false;
}
validateSeqsFiles();
}
validateBinFiles();
}
- if ((commandName == "get.repseqs")) {
- if ((globaldata->getListFile() == "")) { cout << "You must read a list file before you can use the get.repseqs command." << endl; return false; }
- else if (groupfile == "") { cout << "You must provide a groupfile before you can use the get.repseqs command." << endl; return false; }
- validateBinFiles();
- }
-
if ((commandName == "get.oturep")) {
if ((globaldata->gSparseMatrix == NULL) || (globaldata->gListVector == NULL)) {
errorFree = false;
}
}
- }else if (templatefile != "") {
- ableToOpen = openInputFile(templatefile, filehandle);
+ }else if (candidatefile != "") {
+ ableToOpen = openInputFile(candidatefile, filehandle);
filehandle.close();
if (ableToOpen == 1) { //unable to open
errorFree = false;
fastafile = "";
nexusfile = "";
clustalfile = "";
- templatefile = "";
+ candidatefile = "";
line = "";
label = "";
method = "furthest";