queryFileName = toString(randNumber) + ".candidate.unaligned.fasta";
blastFileName = toString(randNumber) + ".blast";
+}
+/**************************************************************************************************/
+
+BlastDB::BlastDB() : Database() {
+
+ globaldata = GlobalData::getInstance();
+ count = 0;
+
+ int randNumber = rand();
+ dbFileName = toString(randNumber) + ".template.unaligned.fasta";
+ queryFileName = toString(randNumber) + ".candidate.unaligned.fasta";
+ blastFileName = toString(randNumber) + ".blast";
+
}
/**************************************************************************************************/
}
m8FileHandle.close();
- string root = dbFileName;
- string temp = dbFileName + ".nsq";
- remove(temp.c_str());
- temp = dbFileName + ".nsi";
- remove(temp.c_str());
-
- temp = dbFileName + ".nsd";
- remove(temp.c_str());
-
- temp = dbFileName + ".nin";
- remove(temp.c_str());
-
- temp = dbFileName + ".nhr";
- remove(temp.c_str());
-
-
-
return topMatches;
}
catch(exception& e) {
unalignedFastaFile << '>' << count << endl; // sequences, which will be input to formatdb
unalignedFastaFile << seq.getUnaligned() << endl;
unalignedFastaFile.close();
-
+
count++;
}
catch(exception& e) {
exit(1);
}
}
+/**************************************************************************************************/
/**************************************************************************************************/