Skip to content

Commit

Permalink
Merge commit 'ea47a9229d9c37c223209767085d1bdde19099d6'
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-steinegger committed Jan 10, 2025
2 parents 12b76f3 + ea47a92 commit 591cd2c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/mmseqs/src/prefiltering/PrefilteringIndexReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ void PrefilteringIndexReader::createIndexFile(const std::string &outDB,
IndexTable indexTable(adjustAlphabetSize, kmerSize, false);
SequenceLookup *sequenceLookup = NULL;
IndexBuilder::fillDatabase(&indexTable,
(maskMode == 1 || maskLowerCase == 1) ? &sequenceLookup : NULL,
(maskMode == 0 && maskLowerCase == 0) ? &sequenceLookup : NULL,
(maskMode == 1 || maskNrepeats > 0 || maskLowerCase == 1) ? &sequenceLookup : NULL,
(maskMode == 0 && maskNrepeats == 0 && maskLowerCase == 0) ? &sequenceLookup : NULL,
*subMat, s3, s2, &seq, dbr1, dbFrom, dbFrom + dbSize, kmerThr,
maskMode, maskLowerCase, maskProb, maskNrepeats, targetSearchMode);
indexTable.printStatistics(subMat->num2aa);
Expand Down
3 changes: 2 additions & 1 deletion lib/mmseqs/src/prefiltering/ungappedprefilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ int prefilterInternal(int argc, const char **argv, const Command &command, int m
if (par.gpu == true) {
const bool isGpuDb = DBReader<unsigned int>::getExtendedDbtype(tdbr->getDbtype()) & Parameters::DBTYPE_EXTENDED_GPU;
if (isGpuDb == false) {
Debug(Debug::ERROR) << "Database " << FileUtil::baseName(par.db2) << " is not a valid GPU database\n";
Debug(Debug::ERROR) << "Database " << FileUtil::baseName(par.db2) << " is not a valid GPU database\n"
<< "Please call: makepaddedseqdb " << FileUtil::baseName(par.db2) << " " << FileUtil::baseName(par.db2) << "_pad\n";
EXIT(EXIT_FAILURE);
}
}
Expand Down
3 changes: 2 additions & 1 deletion lib/mmseqs/src/util/gpuserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ int gpuserver(int argc, const char **argv, const Command& command) {

const bool isGpuDb = DBReader<unsigned int>::getExtendedDbtype(dbr->getDbtype()) & Parameters::DBTYPE_EXTENDED_GPU;
if (isGpuDb == false) {
Debug(Debug::ERROR) << "Database " << FileUtil::baseName(par.db1) << " is not a valid GPU database\n";
Debug(Debug::ERROR) << "Database " << FileUtil::baseName(par.db1) << " is not a valid GPU database\n"
<< "Please call: makepaddedseqdb " << FileUtil::baseName(par.db2) << " " << FileUtil::baseName(par.db2) << "_pad\n";
EXIT(EXIT_FAILURE);
}

Expand Down

0 comments on commit 591cd2c

Please sign in to comment.