if (parameter == "ends" ) { ends = value; }
if (parameter == "processors" ) { processors = value; }
if (parameter == "size" ) { size = value; }
-
if (parameter == "template") { templatefile = value; }
if (parameter == "search") { search = value; }
if (parameter == "ksize") { ksize = value; }
if (parameter == "mismatch") { mismatch = value; }
if (parameter == "gapopen") { gapopen = value; }
if (parameter == "gapextend" ) { gapextend = value; }
-
+
}
}
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)) {
cout << "Before you use the get.oturep command, you first need to read in a distance matrix." << endl;
int ableToOpen;
if (fastafile == "") {
- cout << "fasta is a required parameter for bin.seqs and get.oturep commands." << endl; errorFree = false;
+ cout << "fasta is a required parameter for bin.seqs, get.oturep and get.repseqs commands." << endl; errorFree = false;
}else if (fastafile != "") {
//is it a valid filename'
ableToOpen = openInputFile(fastafile, filehandle);
filehandle.close();
//unable to open
if (ableToOpen == 1) { errorFree = false; }
+ }else if (groupfile != "") {
+ //is it a valid filename'
+ ifstream filehandle;
+ int ableToOpen = openInputFile(groupfile, filehandle);
+ filehandle.close();
+ //unable to open
+ if (ableToOpen == 1) { errorFree = false; }
}
+
}
catch(exception& e) {
cout << "Standard Error: " << e.what() << " has occurred in the ErrorCheck class Function validateBinFiles. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";