Skip to content

Commit

Permalink
Fix issue #393
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-steinegger authored Dec 8, 2024
1 parent 0dd4b7f commit dd579d9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/strucclustutils/structureconvertalis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,20 @@ R"html(<!DOCTYPE html>
Sequence::extractProfileConsensus(targetSeqData, targetEntryLen, *subMat, targetProfData);
}
}
for(size_t i = 0; i < outcodes.size(); i++) {
bool computed = false;
switch (outcodes[i]) {
case LocalParameters::OUTFMT_U:
case LocalParameters::OUTFMT_T:
tmres = tmaligner->computeTMscore(targetCaData, &targetCaData[res.dbLen], &targetCaData[res.dbLen+res.dbLen], res.dbLen,
res.qStartPos, res.dbStartPos, tmpBt, res.dbLen);
computed = true;
break;
}
if(computed){
break;
}
}
for(size_t i = 0; i < outcodes.size(); i++) {
switch (outcodes[i]) {
case Parameters::OUTFMT_QUERY:
Expand Down Expand Up @@ -1022,6 +1036,8 @@ R"html(<!DOCTYPE html>
result.append(" ");
result.append(targetId);
result.append("\n");
tmres = tmaligner->computeTMscore(targetCaData, &targetCaData[res.dbLen], &targetCaData[res.dbLen+res.dbLen], res.dbLen,
res.qStartPos, res.dbStartPos, tmpBt, res.dbLen);
for(unsigned int tpos = 0; tpos < res.dbLen; tpos++){
size_t tId = tDbr->sequenceReader->getId(res.dbKey);
char* targetSeqData = (char*) tDbr->sequenceReader->getData(tId, thread_idx);
Expand Down

0 comments on commit dd579d9

Please sign in to comment.