+string BlastDB::scrubName(string seqName) {
+ try {
+
+ string cleanName = "";
+
+ for (int i = 0; i < seqName.length(); i++) {
+ if (isalnum(seqName[i])) { cleanName += seqName[i]; }
+ else { cleanName += "_"; }
+ }
+
+ return cleanName;
+ }
+ catch(exception& e) {
+ m->errorOut(e, "BlastDB", "scrubName");
+ exit(1);
+ }
+}
+/**************************************************************************************************/