Skip to content

Commit

Permalink
Squashed 'lib/mmseqs/' changes from 416fc728..934db4f9
Browse files Browse the repository at this point in the history
934db4f9 Adjust createindex to handle maskNlower
0266ea53 Add better error message
c5ca4c3f Improve error message
6c267ec1 Improve error message

git-subtree-dir: lib/mmseqs
git-subtree-split: 934db4f98e8d75427d83f47a606b5d7528f92606
  • Loading branch information
martin-steinegger committed Jan 10, 2025
1 parent a132328 commit ea47a92
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 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 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 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 ea47a92

Please sign in to comment.