Skip to content

Commit

Permalink
override GOOD_SEQID with seqid if higher
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Feb 8, 2024
1 parent 3ebb73b commit 04efe47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prody/proteins/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,8 +997,8 @@ def mapChainOntoChain(mobile, target, **kwargs):
simple_target, simple_mobile)
_seqid, _cover = calcScores(n_match, n_mapped, len(simple_target))

trivial_seqid = GOOD_SEQID if pwalign else seqid
trivial_cover = GOOD_COVERAGE if pwalign else coverage
trivial_seqid = max(GOOD_SEQID, seqid) if pwalign else seqid
trivial_cover = max(GOOD_COVERAGE, coverage) if pwalign else coverage
if _seqid >= trivial_seqid and _cover >= trivial_cover:
LOGGER.debug('\tMapped: {0} residues match with {1:.0f}% '
'sequence identity and {2:.0f}% overlap.'
Expand Down

0 comments on commit 04efe47

Please sign in to comment.