Skip to content

Commit

Permalink
Disable tmscore-threshold and lddt-threshold with sort-by-structure-b…
Browse files Browse the repository at this point in the history
…its 0
  • Loading branch information
milot-mirdita committed Sep 8, 2023
1 parent 8af9595 commit b1b4710
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/strucclustutils/structurealign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,20 @@ int structurealign(int argc, const char **argv, const Command& command) {

bool needTMaligner = (par.tmScoreThr > 0);
bool needLDDT = (par.lddtThr > 0);
if(par.sortByStructureBits){
if (par.sortByStructureBits) {
needLDDT = true;
needTMaligner = true;
} else {
if (needTMaligner) {
Debug(Debug::WARNING) << "Cannot use --tmscore-threshold with --sort-by-structure-bits 0\n"
<< "Disabling --tmscore-threshold\n";
needTMaligner = false;
}
if (needLDDT) {
Debug(Debug::WARNING) << "Cannot use --lddt-threshold with --sort-by-structure-bits 0\n"
<< "Disabling --lddt-threshold\n";
needLDDT = false;
}
}
bool needCalpha = (needTMaligner || needLDDT);
IndexReader *qcadbr = NULL;
Expand Down

0 comments on commit b1b4710

Please sign in to comment.