AlignmentDB::AlignmentDB(string fastaFileName, string method, int kmerSize, float gapOpen, float gapExtend, float match, float misMatch){ // This assumes that the template database is in fasta format, may
try { // need to alter this in the future?
longest = 0;
-
+
ifstream fastaFile;
openInputFile(fastaFileName, fastaFile);
if (temp.getName() != "") {
templateSequences.push_back(temp);
//save longest base
- if (temp.getUnaligned().length() > longest) { longest = temp.getUnaligned().length(); }
+ if (temp.getUnaligned().length() > longest) { longest = temp.getUnaligned().length()+1; }
}
}