Skip to content

Commit 7406a37

Browse files
committed
[FIX] index compatibility detection for BLASTN
1 parent 8b781d3 commit 7406a37

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/lambda.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,9 @@ loadDbIndexFromDisk(TGlobalHolder & globalHolder,
253253
path += ".sa";
254254

255255
// Check if the index is of the old format (pre 0.9.0) by looking for different files
256-
if ((TGlobalHolder::alphReduction && fileExists(toCString(path + ".txt.concat"))) ||
257-
(!TGlobalHolder::alphReduction && TGlobalHolder::indexIsFM && !fileExists(toCString(path + ".lf.drv.wtc.24"))))
256+
if ((globalHolder.blastProgram != BlastProgram::BLASTN) && // BLASTN indexes are compatible
257+
((TGlobalHolder::alphReduction && fileExists(toCString(path + ".txt.concat"))) ||
258+
(!TGlobalHolder::alphReduction && TGlobalHolder::indexIsFM && !fileExists(toCString(path + ".lf.drv.wtc.24")))))
258259
{
259260
std::cerr << ((options.verbosity == 0) ? strIdent : std::string())
260261
<< " failed.\n"

0 commit comments

Comments
 (0)